/* User Page Tracker Profile Display Styles */

.upt-profile-section {
    margin: 20px 0;
}

.upt-profile-section.upt-standalone {
    margin: 0;
}

.upt-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.upt-stat-card {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.upt-stat-card h3 {
    font-size: 2em;
    margin: 0 0 10px 0;
    color: #0073aa;
}

.upt-stat-card p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.upt-top-pages {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
}

.upt-top-pages h3 {
    margin-top: 0;
    color: #23282d;
}

.upt-top-pages ul {
    margin: 0;
    padding-left: 20px;
}

.upt-top-pages li {
    margin: 10px 0;
    line-height: 1.5;
}

.upt-top-pages a {
    text-decoration: none;
}

.upt-top-pages .view-count {
    color: #666;
    font-size: 0.9em;
    margin-left: 5px;
}

.upt-filters {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 15px;
    margin: 20px 0;
    display: flex;
    gap: 15px;
    align-items: end;
    flex-wrap: wrap;
}

.upt-filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.upt-filter-group label {
    font-weight: 600;
    color: #23282d;
}

.upt-filter-group input[type="date"] {
    padding: 5px 10px;
    border: 1px solid #7e8993;
    border-radius: 3px;
}

#upt-page-views-table {
    margin: 20px 0;
}

#upt-page-views-table th,
#upt-page-views-table td {
    vertical-align: middle;
}

#upt-page-views-table td a {
    text-decoration: none;
}

#upt-page-views-table td a:hover {
    text-decoration: underline;
}

.dataTables_wrapper {
    margin: 20px 0;
}

.dataTables_length,
.dataTables_filter {
    margin-bottom: 15px;
}

.dataTables_info,
.dataTables_paginate {
    margin-top: 15px;
}

.upt-admin-dashboard {
    max-width: 1200px;
}

.upt-admin-dashboard h2 {
    margin-top: 30px;
    margin-bottom: 20px;
}

.upt-user-selector {
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
}

.upt-user-selector label {
    font-weight: 600;
    margin-right: 10px;
}

.upt-settings-actions {
    margin-top: 30px;
    padding: 20px;
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
}

.upt-settings-actions h2 {
    margin-top: 0;
}

.upt-settings-actions button {
    margin-right: 10px;
}

.button-danger {
    background: #d63638;
    border-color: #d63638;
    color: #fff;
}

.button-danger:hover {
    background: #b32d2e;
    border-color: #b32d2e;
}

@media screen and (max-width: 782px) {
    .upt-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .upt-filter-group {
        width: 100%;
    }
    
    .upt-filter-group input[type="date"] {
        width: 100%;
    }
}