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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
    padding: 2rem 1rem;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header */
header {
    margin-bottom: 2.5rem;
    text-align: center;
}

h1 {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: #000;
    letter-spacing: -0.5px;
}

/* Form styles */
#schedule-form {
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.form-group {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.form-group > label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: #000;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Date input */
input[type="date"] {
    font-family: 'Inter', sans-serif;
    padding: 0.75rem 1rem;
    border: 2px solid #000;
    border-radius: 0;
    font-size: 1rem;
    background: #fff;
    color: #000;
    width: 100%;
    max-width: 280px;
    text-align: center;
}

input[type="date"]:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 1px #000;
}

/* Schedule type button group */
.schedule-type-group {
    display: flex;
    gap: 0;
    justify-content: center;
    width: 100%;
    max-width: 280px;
}

.schedule-type-btn {
    display: block;
    cursor: pointer;
    flex: 1;
}

.schedule-type-btn input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.schedule-type-btn span {
    display: block;
    padding: 0.75rem 0;
    border: 2px solid #000;
    margin-left: -2px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    transition: background-color 0.15s, color 0.15s;
}

.schedule-type-btn:first-child span {
    margin-left: 0;
}

.schedule-type-btn:hover span {
    background-color: #f5f5f5;
}

.schedule-type-btn input[type="radio"]:checked + span {
    background-color: #000;
    color: #fff;
    position: relative;
    z-index: 1;
}

/* Submit button */
.btn-primary {
    padding: 1rem 3rem;
    background-color: #fff;
    color: #000;
    border: 2px solid #000;
    border-radius: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background-color: #f5f5f5;
}

.btn-primary.submitted {
    background-color: #000;
    color: #fff;
}

/* Copy button */
.btn-copy {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.32rem 0.8rem;
    background-color: #fff;
    color: #000;
    border: 1px solid #000;
    font-family: 'Inter', sans-serif;
    font-size: 0.64rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.btn-copy:hover {
    background-color: #f5f5f5;
}

/* Error message */
.error-message {
    display: block;
    color: #dc2626;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Output section */
#output-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #000;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#output-section.hidden {
    display: none;
}

.output-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.output-header h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#schedule-info {
    background-color: #f5f5f5;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #333;
    text-align: center;
    width: 100%;
}

/* Table styles */
#schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: left;
}

#schedule-table th,
#schedule-table td {
    padding: 0.875rem 0.5rem;
    border-bottom: 1px solid #ddd;
}

#schedule-table th {
    font-weight: 500;
    color: #000;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #000;
}

#schedule-table tbody tr:hover {
    background-color: #fafafa;
}

#schedule-table th:last-child,
#schedule-table td:last-child {
    text-align: right;
    white-space: nowrap;
    color: #333;
}

/* Highlight release date row */
#schedule-table tr.release-date-row {
    background-color: #000;
    color: #fff;
    font-weight: 500;
}

#schedule-table tr.release-date-row:hover {
    background-color: #222;
}

#schedule-table tr.release-date-row td {
    color: #fff;
    border-bottom-color: #000;
}

/* Copy feedback */
.copy-feedback {
    margin-top: 1rem;
    padding: 0.5rem 0.75rem;
    background-color: #000;
    color: #fff;
    font-size: 0.8rem;
    text-align: center;
    display: inline-block;
}

.copy-feedback.hidden {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 500px) {
    body {
        padding: 1.5rem 1rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    .schedule-type-btn span {
        font-size: 0.8rem;
    }

    #schedule-table {
        font-size: 0.85rem;
    }

    #schedule-table th,
    #schedule-table td {
        padding: 0.75rem 0.25rem;
    }
}
