/* Reports Page - Modern Colorful Design */
/* Following UI Style Guide principles */

/* ===== Page Header ===== */
#page-reports .page-header {
    margin-bottom: 24px;
}

#page-reports .page-title {
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#page-reports .header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

#page-reports #report-type-select {
    padding: 8px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.85rem;
    cursor: pointer;
}

#page-reports #report-type-select:focus {
    outline: none;
    border-color: #06b6d4;
    box-shadow: 0 0 0 3px #06b6d420;
}

#page-reports .btn-primary {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    border: none;
    color: white;
    box-shadow: 0 4px 16px #06b6d440;
}

#page-reports .btn-primary:hover {
    box-shadow: 0 6px 24px #06b6d460;
    transform: translateY(-1px);
}

/* ===== Reports Card ===== */
#page-reports .card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
}

#page-reports .card h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, #06b6d415 0%, transparent 50%);
}

#page-reports .card h3::before {
    content: '📊';
    font-size: 1.25rem;
}

/* ===== Reports List ===== */
#reports-list {
    padding: 16px;
}

/* ===== Report Item ===== */
.report-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.report-item:last-child {
    margin-bottom: 0;
}

.report-item:hover {
    border-color: #06b6d440;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transform: translateX(4px);
}

/* Report Icon */
.report-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #06b6d420, #06b6d410);
    border: 1px solid #06b6d430;
    flex-shrink: 0;
}

/* Report Content */
.report-content {
    flex: 1;
    min-width: 0;
}

.report-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 4px;
    text-transform: capitalize;
}

.report-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.report-meta .activity-time {
    color: #06b6d4;
}

/* Report Actions */
.report-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.report-actions .btn-sm {
    padding: 6px 14px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.report-actions .btn-sm:first-child:hover {
    background: #06b6d420;
    border-color: #06b6d4;
    color: #06b6d4;
}

.report-actions .btn-sm:last-child:hover {
    background: #22c55e20;
    border-color: #22c55e;
    color: #22c55e;
}

/* ===== Report Type Badges ===== */
.report-type-badge {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
}

.report-type-badge.daily {
    background: #3b82f620;
    color: #3b82f6;
}

.report-type-badge.weekly {
    background: #a855f720;
    color: #a855f7;
}

.report-type-badge.performance {
    background: #22c55e20;
    color: #22c55e;
}

.report-type-badge.action {
    background: #f59e0b20;
    color: #f59e0b;
}

/* ===== Animation ===== */
.report-item {
    animation: reportSlideIn 0.3s ease forwards;
    opacity: 0;
}

@keyframes reportSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.report-item:nth-child(1) { animation-delay: 0ms; }
.report-item:nth-child(2) { animation-delay: 50ms; }
.report-item:nth-child(3) { animation-delay: 100ms; }
.report-item:nth-child(4) { animation-delay: 150ms; }
.report-item:nth-child(5) { animation-delay: 200ms; }

/* ===== Empty State ===== */
#page-reports .empty-state {
    padding: 60px 20px;
    text-align: center;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .report-item {
        flex-direction: column;
        text-align: center;
    }

    .report-actions {
        width: 100%;
        justify-content: center;
    }

    #page-reports .header-actions {
        flex-wrap: wrap;
    }
}
