:root {
    --background: #121212;
    --text: #e0e0e0;
    --primary: #bb86fc;
    --secondary: #03dac6;
    --accent: #cf6679;
    --card-bg: #1e1e1e;
    --card-hover: #2c2c2c;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
}

.container {
    width: 95%;
    max-width: 1200px;
    margin: 10px auto;
    padding: 15px;
}

h1 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.report-card {
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    padding: 1rem;
    margin-bottom: 0.5rem; /* Reduced margin between cards */
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.report-card:hover {
    background-color: var(--card-hover);
    transform: translateY(-2px);
}

.report-card h2 {
    font-size: 1.2rem;
    color: var(--primary);
    margin: 0 0 0.5rem;
}

.report-card a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.report-card a:hover {
    color: var(--accent);
}

.dashed-underline {
    border-bottom: 1px dashed var(--accent);
    padding-bottom: 2px;
}

.stats {
    font-size: 0.9rem;
    color: var(--text);
    opacity: 0.8;
}

.stats span {
    font-weight: 500;
}

.date-carousel {
    display: flex;
    overflow-x: auto;
    padding: 0.5rem;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    margin-bottom: 1rem;
}

.hw-item {
    flex: 0 0 auto;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    background-color: var(--background);
}

.hw-item:hover, .hw-item.active {
    background-color: var(--primary);
    color: var(--background);
}

.unresolved-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    z-index: 1000;
}

.unresolved-popup h2 {
    color: var(--primary);
    margin-top: 0;
}

.unresolved-popup h3 {
    color: var(--secondary);
    margin-top: 1rem;
}

.unresolved-popup ul {
    padding-left: 1.5rem;
}

.unresolved-popup button {
    display: block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: var(--accent);
    color: var(--background);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.unresolved-popup button:hover {
    background-color: #a0515c;
}

/* Scrollbar styling for Webkit browsers */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

@media (max-width: 768px) {
    .container {
        width: 100%;
        padding: 10px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .report-card {
        padding: 0.75rem;
    }
}