/* User Activity Report Styles - Dark Mode */

/* Export Dropdown Styles */
.export-dropdown {
    position: relative;
    display: inline-block;
}

.export-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    min-width: 200px;
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.export-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.export-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: #e2e8f0;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.export-option:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(34, 197, 94, 0.1));
    color: #3b82f6;
}

.export-option:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.export-option:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.export-icon {
    font-size: 1.2rem;
}

.export-icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    vertical-align: middle;
}

body {
    background: #0f172a;
    color: #e2e8f0;
}

/* Navigation Bar */
.navbar {
    background: #1e293b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    padding: 15px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #334155;
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo styling to match landing page gradient */
.navbar .logo {
    font-size: 24px;
    font-weight: 600;
    background: linear-gradient(135deg, #3b82f6, #22c55e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
    text-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

/* Make sure the highlight class also uses the gradient when used within logo */
.navbar .logo .highlight {
    background: linear-gradient(135deg, #3b82f6, #22c55e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.company-info {
    color: #94a3b8;
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-secondary, .btn-primary {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-secondary {
    background: #334155;
    color: #e2e8f0;
    border: 1px solid #475569;
}

.btn-secondary:hover {
    background: #475569;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #22c55e 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.report-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px;
}

.report-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #334155;
}

.report-header h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #3fa032 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.report-subtitle {
    color: #94a3b8;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.report-date {
    color: #64748b;
    font-size: 0.9rem;
}

/* Summary Cards */
.summary-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.summary-card {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    border: 1px solid #334155;
    transition: transform 0.2s, box-shadow 0.2s;
}

.summary-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
}

.summary-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6 0%, #22c55e 100%);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.summary-content {
    flex: 1;
}

.summary-number {
    font-size: 2rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 5px;
}

.summary-label {
    color: #94a3b8;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Chart Sections */
.chart-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.chart-section.full-width {
    grid-template-columns: 1fr;
}

.chart-container {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    border: 1px solid #334155;
}

.chart-container.full-width {
    grid-column: 1 / -1;
}

.chart-container h2 {
    font-size: 1.3rem;
    color: #f1f5f9;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #334155;
}

.chart-wrapper {
    position: relative;
    height: 300px;
}

.chart-wrapper canvas {
    max-height: 300px;
}

/* Table Section */
.table-section {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    border: 1px solid #334155;
    margin-bottom: 40px;
}

.table-section h2 {
    font-size: 1.5rem;
    color: #f1f5f9;
    margin-bottom: 20px;
}

.table-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 250px;
    padding: 10px 15px;
    border: 1px solid #475569;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s, background 0.2s;
    background: #0f172a;
    color: #e2e8f0;
}

.search-input::placeholder {
    color: #64748b;
}

.search-input:focus {
    outline: none;
    border-color: #64748b;
    background: #1e293b;
}

.filter-select {
    padding: 10px 15px;
    border: 1px solid #475569;
    border-radius: 8px;
    font-size: 0.95rem;
    background: #0f172a;
    color: #e2e8f0;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.filter-select:focus {
    outline: none;
    border-color: #3b82f6;
    background: #1e293b;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #334155;
}

.user-stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.user-stats-table thead {
    background: #0f172a;
}

.user-stats-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #94a3b8;
    border-bottom: 2px solid #334155;
    white-space: nowrap;
}

.user-stats-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #334155;
    color: #cbd5e1;
}

.user-stats-table tbody tr {
    background: #1e293b;
    transition: background 0.2s;
}

.user-stats-table tbody tr:hover {
    background: #334155;
}

.user-stats-table tbody tr:last-child td {
    border-bottom: none;
}

.user-name {
    font-weight: 600;
    color: #f1f5f9;
}

.user-email {
    color: #94a3b8;
    font-size: 0.85rem;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.active {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid #22c55e;
}

.status-badge.inactive {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid #ef4444;
}

.progress-bar-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mini-progress-bar {
    flex: 1;
    height: 6px;
    background: #334155;
    border-radius: 3px;
    overflow: hidden;
    min-width: 60px;
}

.mini-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #22c55e 100%);
    border-radius: 3px;
    transition: width 0.3s;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

.progress-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #cbd5e1;
    min-width: 40px;
}

/* Activity Section */
.activity-section {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    border: 1px solid #334155;
}

.activity-section h2 {
    font-size: 1.5rem;
    color: #f1f5f9;
    margin-bottom: 20px;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    padding: 15px;
    background: #0f172a;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.activity-item:hover {
    background: #1e293b;
    transform: translateX(4px);
}

.activity-info {
    flex: 1;
}

.activity-user {
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 4px;
}

.activity-action {
    color: #94a3b8;
    font-size: 0.9rem;
}

.activity-time {
    color: #64748b;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Export Button */
#exportBtn {
    background: linear-gradient(135deg, #3b82f6 0%, #22c55e 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

#exportBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-content {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .nav-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .btn-secondary, .btn-primary {
        flex: 1;
    }
    
    .chart-section {
        grid-template-columns: 1fr;
    }
    
    .summary-section {
        grid-template-columns: 1fr;
    }
    
    .report-header h1 {
        font-size: 2rem;
    }
    
    .table-controls {
        flex-direction: column;
    }
    
    .search-input {
        width: 100%;
    }
}

/* Loading State */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #334155;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* No Data State */
.no-data {
    text-align: center;
    padding: 40px;
    color: #64748b;
}

.no-data-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.no-data-text {
    font-size: 1.1rem;
    color: #94a3b8;
}
