:root {
    --primary-color: #2563eb;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --success-color: #10b981;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    background: linear-gradient(135deg, #f6f8fd 0%, #eef2f6 100%);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.5;
    padding: 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
}

h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.last-updated {
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: #f1f5f9;
    padding: 0.5rem 1rem;
    border-radius: 999px;
}

#summary-time {
    font-weight: 600;
    color: var(--primary-color);
}

.card {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th {
    background: #f8fafc;
    padding: 1rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    vertical-align: middle;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: #f8fafc;
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar {
    width: 36px;
    height: 36px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.username {
    font-weight: 500;
}

.font-bold {
    font-weight: 600;
    color: var(--text-primary);
}

.text-sm {
    font-size: 0.875rem;
}

.text-gray {
    color: var(--text-secondary);
}

.mono {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

tr {
    animation: fadeIn 0.3s ease-out backwards;
}

tr:nth-child(1) {
    animation-delay: 0.05s;
}

tr:nth-child(2) {
    animation-delay: 0.1s;
}

tr:nth-child(3) {
    animation-delay: 0.15s;
}

tr:nth-child(4) {
    animation-delay: 0.2s;
}

tr:nth-child(5) {
    animation-delay: 0.25s;
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    /* Card layout on mobile for better readability */
    .table-container {
        overflow: visible;
    }

    table {
        display: block;
    }

    thead {
        display: none;
    }

    tbody {
        display: block;
    }

    tr {
        display: block;
        background: #ffffff;
        border: 1px solid var(--border-color);
        border-radius: 14px;
        margin-bottom: 0.75rem;
        box-shadow: 0 2px 6px -2px rgb(0 0 0 / 0.08);
        animation: fadeIn 0.3s ease-out backwards;
    }

    td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.65rem 0.9rem;
        border-bottom: 1px solid var(--border-color);
        font-size: 0.92rem;
        white-space: nowrap;
    }

    td:last-child {
        border-bottom: none;
    }

    td::before {
        content: attr(data-label);
        font-size: 0.72rem;
        font-weight: 600;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: var(--text-secondary);
        margin-right: 1rem;
        white-space: nowrap;
    }

    .user-cell {
        justify-content: flex-end;
        gap: 0.75rem;
        text-align: right;
    }

    .avatar {
        display: none;
    }
}
