:root {
    --bg-primary: #ffffff;
    --bg-card: #ffffff;
    --bg-hover: rgba(0, 0, 0, 0.04);
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --accent-color: #3b82f6;
    --accent-hover: #2563eb;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --bg-hover: rgba(255, 255, 255, 0.1);
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --border-light: #475569;
    --accent-color: #60a5fa;
    --accent-hover: #93c5fd;
    --success-color: #34d399;
    --error-color: #f87171;
    --warning-color: #fbbf24;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    transition: var(--transition-slow);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    transition: var(--transition-slow);
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes themeTransition {
    0% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(0.9);
    }
    100% {
        filter: brightness(1);
    }
}

.theme-changing {
    animation: themeTransition 0.6s ease-in-out;
}

.theme-toggle {
    width: 64px;
    height: 32px;
    background: var(--border-color);
    border-radius: 100px;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.theme-toggle.active {
    background: linear-gradient(135deg, var(--accent-color), var(--success-color));
}

.toggle-slider {
    width: 24px;
    height: 24px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform: translateX(0);
    box-shadow: var(--shadow-sm);
}

.theme-toggle.active .toggle-slider {
    transform: translateX(32px);
}

.toggle-icon {
    width: 14px;
    height: 14px;
    transition: var(--transition);
    opacity: 0.8;
}

.sun-icon {
    fill: #f59e0b;
    margin-left: 1px;
    margin-bottom: 20px;
}

.moon-icon {
    fill: #cbd5e1;
    margin-left: -13px;
    margin-bottom: 20px;
}

.theme-toggle.active .sun-icon {
    opacity: 0;
}

.theme-toggle.active .moon-icon {
    opacity: 1;
}

.theme-toggle:not(.active) .sun-icon {
    opacity: 1;
}

.theme-toggle:not(.active) .moon-icon {
    opacity: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    animation: slideUp 0.6s ease-out 0.2s both;
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0.25rem;
    background: linear-gradient(90deg, var(--accent-color), var(--success-color));
}

.schedule-header h1 {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, var(--accent-color), var(--success-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition-slow);
}

.update-date {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 0.025em;
    transition: var(--transition-slow);
}

.document-content {
    font-size: 1.0625rem;
    line-height: 1.75;
    transition: var(--transition-slow);
}

.document-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2.5rem 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--bg-card);
    transition: var(--transition);
}

.document-content th {
    background: linear-gradient(135deg, var(--accent-color), var(--success-color));
    color: white;
    font-weight: 600;
    padding: 1.125rem 1.5rem;
    text-align: left;
    font-size: 1rem;
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.document-content th::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 100%);
    transform: translateX(-100%);
}

.document-content th:hover::after {
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.document-content td {
    padding: 1rem 1.5rem;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
}

.document-content td:hover {
    background: color-mix(in srgb, var(--bg-card) 95%, black 5%);
    filter: brightness(0.95);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

[data-theme="dark"] .document-content td:hover {
    background: color-mix(in srgb, var(--bg-card) 95%, white 5%);
    filter: brightness(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.document-content tr:nth-child(even) td {
    background: var(--bg-secondary);
}

.document-content tr {
    animation: fadeIn 0.5s ease-out backwards;
}

.document-content tr:nth-child(1) { animation-delay: 0.1s; }
.document-content tr:nth-child(2) { animation-delay: 0.2s; }
.document-content tr:nth-child(3) { animation-delay: 0.3s; }
.document-content tr:nth-child(4) { animation-delay: 0.4s; }
.document-content tr:nth-child(5) { animation-delay: 0.5s; }

.document-content h1,
.document-content h2,
.document-content h3 {
    color: var(--text-primary);
    margin: 2rem 0 1rem;
    font-weight: 700;
    transition: var(--transition-slow);
}

.document-content h1 {
    font-size: 2rem;
}

.document-content h2 {
    font-size: 1.75rem;
}

.document-content h3 {
    font-size: 1.5rem;
}

.document-content p {
    margin: 1.25rem 0;
    color: var(--text-secondary);
    transition: var(--transition-slow);
}

.document-content ul,
.document-content ol {
    margin: 1.25rem 0;
    padding-left: 2rem;
    transition: var(--transition-slow);
}

.document-content li {
    margin: 0.75rem 0;
    color: var(--text-secondary);
    transition: var(--transition-slow);
}

.no-schedule {
    text-align: center;
    padding: 6rem 2rem;
}

.no-schedule p {
    font-size: 1.375rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 500;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, var(--accent-color), var(--success-color));
    color: white;
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: 2px solid transparent;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.nav-link:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 255, 255, 0.2);
}

.nav-link:active {
    transform: translateY(0);
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.upload-page {
    min-height: 100vh;
    background: var(--bg-primary);
    padding-top: 1rem;
}

.upload-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-light);
    position: relative;
}

.upload-header h1 {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, var(--accent-color), var(--success-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition-slow);
}

.upload-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
    transition: var(--transition-slow);
}

.upload-form {
    animation: slideUp 0.6s ease-out 0.3s both;
}

.file-drop-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 2rem;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.file-drop-area:hover,
.file-drop-area.dragover {
    border-color: var(--accent-color);
    background: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.file-drop-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(59, 130, 246, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.file-drop-area:hover::before {
    opacity: 1;
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.upload-text h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
    transition: var(--transition-slow);
}

.upload-text p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    transition: var(--transition-slow);
}

.file-input {
    display: none;
}

.file-info {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-top: 2rem;
    border: 1px solid var(--border-color);
    animation: slideUp 0.3s ease-out;
    display: none;
}

.file-info.visible {
    display: block;
}

.file-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.file-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition-slow);
}

.file-name::before {
    content: '📄';
    font-size: 1.25rem;
}

.file-size {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: var(--transition-slow);
}

.file-progress {
    margin-top: 1rem;
}

.progress-bar {
    height: 0.5rem;
    background: var(--border-color);
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), var(--success-color));
    width: 0%;
    transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 1rem;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: var(--transition-slow);
}

.requirements {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin: 2rem 0;
    border-left: 4px solid var(--accent-color);
    transition: var(--transition-slow);
}

.requirements h4 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    font-weight: 600;
    transition: var(--transition-slow);
}

.requirements ul {
    list-style: none;
    padding: 0;
}

.requirements li {
    color: var(--text-secondary);
    margin-bottom: 0.875rem;
    font-size: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    transition: var(--transition-slow);
}

.requirements li:before {
    content: "✓";
    color: var(--success-color);
    font-weight: bold;
    flex-shrink: 0;
    font-size: 1.125rem;
}

.upload-btn {
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--accent-color), var(--success-color));
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.upload-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.upload-btn:active:not(:disabled) {
    transform: translateY(-1px);
}

.upload-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.upload-btn.loading {
    pointer-events: none;
}

.upload-btn.loading span {
    opacity: 0;
}

.upload-btn.loading::after {
    content: '';
    position: absolute;
    width: 1.5rem;
    height: 1.5rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.upload-status {
    margin-top: 1.5rem;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    animation: slideUp 0.3s ease-out;
    display: none;
    border: 1px solid transparent;
}

.upload-status.visible {
    display: block;
}

.upload-status.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border-color: rgba(16, 185, 129, 0.2);
}

.upload-status.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
    border-color: rgba(239, 68, 68, 0.2);
}

.action-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-light);
}

.success-message {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--success-color);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    margin-top: 2rem;
    text-align: center;
    font-weight: 500;
    animation: slideUp 0.3s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.success-message::before {
    content: '✓';
    font-size: 1.25rem;
    font-weight: bold;
}

.date-picker {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 1001;
}

.date-picker-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    min-width: 200px;
    justify-content: space-between;
}

.date-picker-btn:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.date-picker-btn.active {
    background: linear-gradient(135deg, var(--accent-color), var(--success-color));
    color: white;
    border-color: var(--accent-color);
}

.date-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-top: 0.5rem;
    padding: 0.75rem 0;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1002;
}

.date-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.date-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.date-item {
    padding: 0.875rem 1.25rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-left: 3px solid transparent;
}

.date-item:hover {
    background: var(--bg-hover);
    border-left-color: var(--accent-color);
}

.date-item.active {
    background: linear-gradient(135deg, var(--accent-color), var(--success-color));
    color: white;
    border-left-color: white;
}

.date-item.active:hover {
    background: var(--accent-hover);
}

.date-label {
    font-weight: 500;
    font-size: 0.95rem;
}

.date-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-weight: 500;
}

.date-item.active .date-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.date-item.has-schedule .date-badge {
    background: var(--success-color);
    color: white;
}

.date-item.has-schedule.active .date-badge {
    background: rgba(255, 255, 255, 0.3);
}

.date-item.no-schedule-date .date-badge {
    background: var(--error-color);
    color: white;
}

.current-date-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    padding: 0 1.25rem;
}

.current-date-indicator::before {
    content: '';
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--accent-color), var(--success-color));
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.schedule-loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.schedule-loading .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 1s linear infinite;
}

.schedule-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-light);
    position: relative;
    animation: slideUp 0.6s ease-out 0.3s both;
}

.schedule-footer {
    text-align: center;
    border-bottom: 2px solid var(--border-light);
    position: relative;
    animation: slideUp 0.6s ease-out 0.3s both;
}

.schedule-header .date-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.date-nav-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.5rem 1rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.date-nav-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--accent-color), var(--success-color));
    color: white;
    border-color: var(--accent-color);
}

.date-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.date-selection {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.date-selection label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.date-select {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
}

.date-select:hover {
    border-color: var(--accent-color);
}

.date-select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.date-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.date-option {
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.date-option:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.date-option.selected {
    background: linear-gradient(135deg, var(--accent-color), var(--success-color));
    color: white;
    border-color: var(--accent-color);
}

.date-option .date-display {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.date-option .date-hint {
    font-size: 0.875rem;
    opacity: 0.8;
}

.theme-switcher {
    position: fixed;
    top: -2rem;
    right: -2rem;
    z-index: 1000;
}

.theme-switcher1 {
    position: fixed;
    top: 3rem;
    right: 2.5rem;
    z-index: 1000;
}

@media (max-width: 768px) {
    .date-picker {
        top: 1rem;
        left: 1rem;
        right: 1rem;
    }

    .date-picker-btn {
        width: 100%;
        justify-content: space-between;
    }

    .date-dropdown {
        width: 100%;
        left: 0;
        right: 0;
    }

    .theme-switcher {
        top: 1rem;
        right: 1rem;
    }

    .date-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .date-picker-btn {
        font-size: 0.9rem;
        padding: 0.625rem 1rem;
        min-width: auto;
    }

    .date-item {
        padding: 0.75rem 1rem;
    }

    .date-label {
        font-size: 0.875rem;
    }

    .date-badge {
        font-size: 0.7rem;
        padding: 0.125rem 0.375rem;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.schedule-content {
    animation: slideInRight 0.5s ease-out;
}

.date-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0 1rem;
    flex-wrap: wrap;
}

.date-nav-btn {
    padding: 0.75rem 1.5rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.date-nav-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--accent-color), var(--success-color));
    color: white;
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.date-nav-btn:active:not(:disabled) {
    transform: translateY(0);
}

.date-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.current-date {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    min-width: 250px;
    border: 2px solid transparent;
}

.date-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-weight: 600;
    margin-left: 0.75rem;
}

.date-badge.today {
    background: linear-gradient(135deg, var(--accent-color), var(--success-color));
    color: white;
}

.date-badge.has-schedule {
    background: var(--success-color);
    color: white;
}

.date-badge.none {
    background: var(--error-color);
    color: white;
}

@media (max-width: 768px) {
    .date-controls {
        flex-direction: column;
        gap: 0.75rem;
    }

    .date-nav-btn,
    .current-date {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .date-nav-btn {
        padding: 0.875rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .date-nav-btn {
        font-size: 0.9rem;
        padding: 0.75rem 1.25rem;
    }

    .current-date {
        font-size: 1rem;
        min-width: auto;
        padding: 0.75rem 1.25rem;
    }

    .date-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1.25rem 1rem;
    }

    .card {
        padding: 2rem 1.5rem;
        border-radius: var(--radius-lg);
    }

    .schedule-header h1,
    .upload-header h1 {
        font-size: 2.25rem;
    }

    .file-drop-area {
        padding: 2.5rem 1.5rem;
    }

    .upload-icon {
        font-size: 2.5rem;
    }

    .document-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: var(--radius-md);
    }

    .document-content th,
    .document-content td {
        padding: 0.875rem 1rem;
        font-size: 0.9375rem;
        min-width: 100px;
    }

    .theme-switcher {
        top: 1rem;
        right: 1rem;
    }

    .schedule-footer{
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .nav-link {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }

    .card {
        padding: 1.5rem 1.25rem;
    }

    .schedule-header h1,
    .upload-header h1 {
        font-size: 1.875rem;
    }

    .update-date,
    .upload-header p {
        font-size: 1rem;
    }

    .file-drop-area {
        padding: 2rem 1.25rem;
    }

    .upload-icon {
        font-size: 2rem;
    }

    .upload-text h3 {
        font-size: 1.25rem;
    }

    .document-content th,
    .document-content td {
        padding: 0.75rem 0.875rem;
        font-size: 0.875rem;
    }

    .requirements {
        padding: 1.5rem;
    }

    .theme-toggle {
        width: 56px;
        height: 28px;
    }

    .theme-toggle.active .toggle-slider {
        transform: translateX(28px);
    }
}