/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #1a1a1a;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Main container */
.container {
    max-width: 800px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

/* Page heading */
.page-heading {
    font-size: 1.1rem;
    font-weight: 400;
    color: #aaaaaa;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.page-heading a {
    color: #aaaaaa;
    text-decoration: underline;
}

/* Question section */
.question-container {
    margin-bottom: 20px;
}

.question {
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.date {
    font-size: 0.9rem;
    color: #aaaaaa;
    font-weight: 300;
}

/* Attribution */
.attribution {
    margin-top: 20px;
}

.attribution p {
    font-size: 0.85rem;
    color: #aaaaaa;
    font-weight: 300;
}

.attribution a {
    color: #aaaaaa;
    text-decoration: underline;
}

/* Button */
.btn {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
    padding: 12px 24px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    font-family: inherit;
}

.btn:hover {
    background-color: #ffffff;
    color: #1a1a1a;
}

.btn:active {
    transform: scale(0.98);
}

/* Version number */
.version {
    position: fixed;
    bottom: 10px;
    right: 10px;
    font-size: 0.65rem;
    color: #666666;
    font-weight: 300;
}

/* Responsive design */
@media (max-width: 768px) {
    .question {
        font-size: 1.5rem;
    }

    .btn {
        font-size: 0.9rem;
        padding: 10px 20px;
    }

    .page-heading {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .question {
        font-size: 1.25rem;
    }

    .date,
    .attribution p {
        font-size: 0.75rem;
    }

    .page-heading {
        font-size: 0.9rem;
    }

    .version {
        font-size: 0.6rem;
        bottom: 8px;
        right: 8px;
    }

    .history-link {
        font-size: 0.8rem;
    }

    .table-container {
        padding: 10px;
    }

    table th,
    table td {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}

/* History-Lane link */
.history-link {
    display: inline-block;
    margin-top: 30px;
    font-size: 0.9rem;
    color: #aaaaaa;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.history-link:hover {
    color: #ffffff;
}

/* Back link */
.back-link {
    display: inline-block;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #aaaaaa;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #ffffff;
}

/* Table container and styling */
.table-container {
    width: 100%;
    max-width: 900px;
    margin: 10px auto 30px auto;
    padding: 20px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: transparent;
}

thead {
    border-bottom: 1px solid #444444;
}

th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 400;
    color: #aaaaaa;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

tbody tr {
    border-bottom: 1px solid #2a2a2a;
}

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

td {
    padding: 16px;
    color: #ffffff;
    font-size: 1rem;
    vertical-align: top;
}

td:first-child {
    color: #aaaaaa;
    font-size: 0.9rem;
    white-space: nowrap;
    width: 120px;
}

/* Empty state message */
.empty-message {
    text-align: center;
    color: #aaaaaa;
    font-size: 1rem;
    margin: 20px 0;
}

/* Loading state */
.loading {
    text-align: center;
    color: #aaaaaa;
    font-size: 1rem;
    margin: 20px 0;
}

/* Date controls */
.date-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 20px 0 10px 0;
    width: 100%;
}

.date-controls label {
    font-size: 0.9rem;
    color: #aaaaaa;
    font-weight: 300;
}

/* Horizontal row for date input and buttons */
.date-input-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.date-controls input[type="text"] {
    background-color: #2a2a2a;
    color: #ffffff;
    border: 1px solid #444444;
    padding: 10px 16px;
    font-size: 1rem;
    border-radius: 4px;
    font-family: inherit;
    text-align: center;
    transition: border-color 0.3s ease;
    min-width: 80px;
    max-width: 100px;
}

.date-controls input[type="text"]::placeholder {
    color: #666666;
}

.date-controls input[type="text"]:hover {
    border-color: #ffffff;
}

.date-controls input[type="text"]:focus {
    outline: none;
    border-color: #ffffff;
}

.date-controls .button {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
    padding: 10px 20px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    font-family: inherit;
}

.date-controls .button:hover {
    background-color: #ffffff;
    color: #1a1a1a;
}

.date-controls .button:active {
    transform: scale(0.98);
}

.date-controls .button.secondary {
    border-color: #666666;
    color: #aaaaaa;
}

.date-controls .button.secondary:hover {
    background-color: #666666;
    color: #ffffff;
    border-color: #666666;
}

/* Date select dropdowns */
.date-select {
    background-color: #2a2a2a;
    color: #ffffff;
    border: 1px solid #444444;
    padding: 10px 12px;
    font-size: 1rem;
    border-radius: 4px;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.3s ease;
    min-width: 100px;
}

.date-select option {
    background-color: #2a2a2a;
    color: #ffffff;
}

.date-select:hover {
    border-color: #ffffff;
}

.date-select:focus {
    outline: none;
    border-color: #ffffff;
}

/* Date navigation links */
.date-navigation {
    display: flex;
    gap: 20px;
    margin-top: 5px;
    margin-bottom: 0;
}

.date-navigation .nav-link {
    color: #aaaaaa;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    cursor: pointer;
}

.date-navigation .nav-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Responsive date controls */
@media (max-width: 768px) {
    .date-controls {
        gap: 8px;
    }

    .date-input-row {
        gap: 8px;
    }

    .date-select {
        font-size: 0.9rem;
        padding: 8px 10px;
        min-width: 90px;
    }

    .date-controls .button {
        font-size: 0.9rem;
        padding: 8px 16px;
    }

    .date-navigation .nav-link {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .date-controls {
        gap: 6px;
    }

    .date-controls label {
        font-size: 0.85rem;
    }

    .date-input-row {
        gap: 6px;
        flex-direction: column;
    }

    .date-select {
        font-size: 0.85rem;
        padding: 8px 10px;
        width: 100%;
        min-width: auto;
    }

    .date-controls .button {
        font-size: 0.85rem;
        padding: 8px 14px;
        width: 100%;
    }

    .date-navigation {
        gap: 15px;
    }

    .date-navigation .nav-link {
        font-size: 0.8rem;
    }
}
