/**
 * Time Tracker - Custom Styles
 * Version: 2.0.0
 */

/* ============================================================================
   Stats Grid
   ============================================================================ */

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

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(26, 29, 35, 0.8), rgba(18, 21, 26, 0.8));
    border: 1px solid rgba(100, 108, 255, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(100, 108, 255, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(100, 108, 255, 0.2), rgba(100, 108, 255, 0.1));
    color: #646cff;
    font-size: 1.25rem;
}

.stat-icon.users {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
    color: #10b981;
}

.stat-icon.rooms {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.1));
    color: #f59e0b;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
}

/* ============================================================================
   Section Headers
   ============================================================================ */

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-header i {
    font-size: 1.25rem;
    color: #646cff;
}

.section-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.section-header.users i {
    color: #10b981;
}

.section-header.rooms i {
    color: #f59e0b;
}

/* ============================================================================
   Data List
   ============================================================================ */

.data-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.data-card {
    background: linear-gradient(135deg, rgba(26, 29, 35, 0.6), rgba(18, 21, 26, 0.6));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.data-card:hover {
    border-color: rgba(100, 108, 255, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.data-card-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

.data-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(100, 108, 255, 0.15), rgba(100, 108, 255, 0.05));
    color: #646cff;
    font-size: 1.125rem;
}

.data-avatar.room {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05));
    color: #f59e0b;
}

.data-info {
    flex: 1;
    min-width: 0;
}

.data-name {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.data-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.data-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.data-meta i {
    font-size: 0.7rem;
    opacity: 0.7;
}

.data-time {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.time-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: #646cff;
    line-height: 1.2;
}

.time-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.data-card-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

.data-card-footer span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.data-card-footer i {
    font-size: 0.7rem;
    opacity: 0.6;
}

/* ============================================================================
   Empty State
   ============================================================================ */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

/* ============================================================================
   Results Container
   ============================================================================ */

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .data-card-main {
        flex-wrap: wrap;
    }
    
    .data-time {
        width: 100%;
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        gap: 0.5rem;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .time-value {
        font-size: 1rem;
    }
    
    .time-label {
        font-size: 0.7rem;
    }
}

/* ============================================================================
   Animations
   ============================================================================ */

.animate-card-appear {
    animation: cardAppear 0.4s ease-out forwards;
    opacity: 0;
    transform: translateY(10px);
}

@keyframes cardAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ============================================================================
   Section Box Override
   ============================================================================ */

.section-box-compact {
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(26, 29, 35, 0.7), rgba(18, 21, 26, 0.7));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    backdrop-filter: blur(12px);
}
