/* ============================================
   Time Report Page - Specific styles
   ============================================ */

/* ============================================
   Chart Section
   ============================================ */
.chart-section {
    padding: 2rem;
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.section-header h2 {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.chart-container {
    position: relative;
    height: 350px;
}

/* ============================================
   Weekly Summaries
   ============================================ */
.weekly-summaries {
    display: grid;
    gap: 2rem;
}

.week-card {
    overflow: hidden;
    margin-bottom: 2rem;
}

.week-card:last-child {
    margin-bottom: 0;
}

.week-header {
    background: linear-gradient(135deg, var(--week-header-start) 0%, var(--week-header-end) 100%);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.week-header::-webkit-details-marker {
    display: none;
}

.week-header:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--week-header-end) 100%);
}

.week-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.week-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.collapse-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    margin-left: 1rem;
}

.week-card[open] .collapse-icon {
    transform: rotate(180deg);
}

.week-header .hours-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.week-content {
    padding: 1.5rem;
}

.week-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.meta-item .icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   Activities List
   ============================================ */
.activities-list {
    list-style: none;
}

.activities-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.activities-list li:last-child {
    border-bottom: none;
}

.activity-bullet {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-content .title {
    font-weight: 500;
    color: var(--text-color);
}

.activity-content .details {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.activity-duration {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-color);
    background: rgba(49, 130, 206, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* Dark theme overrides */
@media (prefers-color-scheme: dark) {
    .activity-duration {
        background: rgba(66, 153, 225, 0.2);
    }
}

/* ============================================
   Data Tables
   ============================================ */
.table-section {
    margin-bottom: 2rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.data-table thead {
    background: var(--table-header-bg);
    color: var(--table-header-text);
}

.data-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: none;
}

.data-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
}

.data-table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.data-table td {
    padding: 0.875rem 1rem;
    color: var(--text-color);
}

.data-table td:first-child {
    font-weight: 500;
}

.data-table td:not(:first-child) {
    text-align: left;
}

@media (prefers-color-scheme: dark) {
    .data-table tbody tr:hover {
        background-color: rgba(255, 255, 255, 0.05);
    }
}

/* ============================================
   Responsive - Report Page
   ============================================ */
@media (max-width: 768px) {
    .week-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}
