/* Mobile-first responsive design */

:root {
    --primary-color: #ff5a5f;
    --primary-hover: #ff3339;
    --secondary-color: #484848;
    --background: #f7f7f7;
    --card-background: #ffffff;
    --text-primary: #484848;
    --text-secondary: #767676;
    --border-color: #dddddd;
    --success-color: #00a699;
    --error-color: #d93900;
    --border-radius: 8px;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    padding: 1rem;
}

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

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.header-title {
    display: flex;
    align-items: center;
    min-width: 0;
}

header h1 {
    font-size: clamp(1.25rem, 5vw, 2rem);
    color: var(--primary-color);
    margin: 0;
    white-space: nowrap;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.section {
    background: var(--card-background);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.section.hidden {
    display: none;
}

/* Upload Section */
.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: var(--primary-color);
    background-color: rgba(255, 90, 95, 0.05);
}

.upload-content {
    pointer-events: none;
}

.upload-icon {
    margin-bottom: 1rem;
}

.upload-icon .lucide {
    width: 4rem;
    height: 4rem;
    stroke-width: 1.5;
}

.upload-area h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.upload-area p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.upload-hint {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    min-height: 44px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #333333;
}

/* Processing Section */
.processing-content {
    text-align: center;
}

.spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#processing-status {
    color: var(--text-secondary);
    font-style: italic;
}

/* Success Section */
.success-content {
    text-align: center;
}

.success-icon {
    margin-bottom: 1rem;
}

.success-icon .lucide {
    width: 4rem;
    height: 4rem;
    stroke-width: 1.5;
    color: var(--success-color);
}

.schedule-info {
    background-color: var(--background);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
    text-align: left;
}

.schedule-info p {
    margin-bottom: 0.5rem;
}

.changes-info {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.changes-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

#changes-list {
    list-style: none;
    padding-left: 1rem;
}

#changes-list li {
    margin-bottom: 0.25rem;
    color: var(--text-secondary);
}

#changes-list .lucide {
    vertical-align: middle;
    width: 1em;
    height: 1em;
    margin-right: 0.25em;
}

.subscription-section,
.download-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: var(--background);
    border-radius: var(--border-radius);
    text-align: left;
}

.subscription-section h3,
.download-section h3 {
    margin-bottom: 0.5rem;
}

.subscription-description,
.download-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.download-section {
    text-align: center;
}

.subscription-url {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.subscription-url input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: monospace;
    font-size: 0.875rem;
}

.subscription-instructions {
    margin-top: 1rem;
    padding: 1rem;
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.subscription-instructions h4 {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.subscription-instructions ul {
    padding-left: 1.5rem;
}

.subscription-instructions li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Error Section */
.error-content {
    text-align: center;
}

.error-icon {
    margin-bottom: 1rem;
}

.error-icon .lucide {
    width: 4rem;
    height: 4rem;
    stroke-width: 1.5;
    color: var(--error-color);
}

.error-message {
    color: var(--error-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.error-suggestion {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 2rem;
}

.version {
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

.cookie-notice {
    font-size: 0.7rem;
    margin-top: 0.25rem;
    opacity: 0.6;
}

/* Review Section */
.review-content {
    text-align: center;
}

.review-content h2 {
    margin-bottom: 0.5rem;
}

.secondary-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.review-header {
    margin: 1.5rem 0;
}

.review-header h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.confidence-summary {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.confidence-summary span {
    font-weight: 600;
    color: var(--text-primary);
}

.warning-banner {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    margin-top: 1rem;
    color: #856404;
    font-size: 0.95rem;
    font-weight: 500;
}

.warning-banner.hidden {
    display: none;
}

.review-content h2 .lucide,
.subscription-section h3 .lucide,
.download-section h3 .lucide,
.warning-banner .lucide {
    vertical-align: middle;
    width: 1em;
    height: 1em;
    margin-right: 0.25em;
}

.subscription-section h3 .lucide {
    color: var(--primary-color);
}

/* Calendar Grid */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin: 1.5rem 0;
    background: var(--border-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 4px;
    text-align: left;
    overflow-x: auto;
    min-width: 0;
}

.calendar-header {
    background: var(--secondary-color);
    color: white;
    padding: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-align: center;
    border-radius: 4px;
}

.calendar-cell {
    position: relative;
    background: var(--card-background);
    padding: 0.5rem;
    min-height: 80px;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.calendar-cell:hover:not(.empty) {
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Confidence colors */
.confidence-high {
    background: #d4edda;
    border-left: 3px solid #28a745;
}

.confidence-medium {
    background: #fff3cd;
    border-left: 3px solid #ffc107;
}

.confidence-low {
    background: #f8d7da;
    border-left: 3px solid #dc3545;
}

.calendar-cell.empty {
    background: #f7f7f7;
    color: #999;
    cursor: default;
}

/* Faded padding cells (prev/next month) — no hover effect */
.calendar-cell.empty.faded {
    cursor: default;
}

.calendar-cell.empty.faded:hover {
    transform: none;
    box-shadow: none;
}

/* Addable cells (current month, no shift) — interactive */
.calendar-cell.empty:not(.faded) {
    border-left: 3px solid #ccc;
    cursor: pointer;
}

.calendar-cell.empty:not(.faded):hover {
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.calendar-cell.faded .cell-day {
    color: #ccc;
    font-weight: normal;
}

/* Cell content */
.cell-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.cell-day {
    font-weight: bold;
    font-size: 1.1em;
    color: var(--text-primary);
}

.cell-times {
    font-size: 0.8em;
    color: var(--secondary-color);
    line-height: 1.3;
}

.cell-time {
    display: block;
}

/* Warning icon — inline with day number in .cell-header */
.cell-warning-icon {
    font-size: 1rem;
    cursor: pointer;
    line-height: 1;
    flex-shrink: 0;
    color: var(--text-secondary);
}

.cell-warning-icon .lucide {
    width: 1em;
    height: 1em;
    display: block;
}

/* Contextual tooltip near warning icon */
.warning-toast {
    position: fixed;
    background: #333;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    z-index: 2000;
    max-width: 200px;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    pointer-events: none;
    /* Small arrow pointing up-right toward icon */
}
.warning-toast::after {
    content: '';
    position: absolute;
    top: -6px;
    left: var(--arrow-left, 50%);
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top: none;
    border-bottom-color: #333;
}
.warning-toast.hidden { display: none; }

.cell-add {
    font-size: 0.7em;
    color: #bbb;
    text-align: center;
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* App icon in header */
.app-icon {
    width: 2rem;
    height: 2rem;
    vertical-align: middle;
    margin-right: 0.5rem;
}

/* Button Group */
.button-group {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.button-group .btn {
    flex: 1;
    max-width: 250px;
}

.btn-danger {
    background-color: var(--error-color);
    color: white;
}

.btn-danger:hover {
    background-color: #c13300;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1050;
    align-items: center;
    justify-content: center;
}

.modal:not(.hidden) {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
}

.modal-content {
    position: relative;
    background: var(--card-background);
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 400px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 1060;
}

/* Ensure clockpicker popup appears above modal */
.clockpicker-popover {
    z-index: 1070 !important;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.modal-header h3 {
    color: var(--primary-color);
}

.btn-icon-danger {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--error-color);
    padding: 0.35rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    transition: background 0.2s;
    flex-shrink: 0;
}

.btn-icon-danger:hover {
    background: rgba(217, 57, 0, 0.12);
}

.btn-icon-danger .lucide {
    width: 1.25rem;
    height: 1.25rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 90, 95, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .calendar-grid {
        gap: 2px;
        padding: 2px;
    }

    .calendar-cell {
        min-height: 70px;
        padding: 0.4rem;
        font-size: 0.9rem;
    }

    .cell-day {
        font-size: 1em;
    }

    .cell-times {
        font-size: 0.75em;
    }

    .button-group {
        flex-direction: column;
    }

    .button-group .btn {
        max-width: none;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0.5rem;
    }

    .section {
        padding: 1.5rem;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .upload-icon .lucide {
        width: 3rem;
        height: 3rem;
    }

    .subscription-url {
        flex-direction: column;
    }

    #review-section {
        padding-left: 0.4rem;
        padding-right: 0.4rem;
    }

    .calendar-grid {
        gap: 1px;
        padding: 1px;
    }

    .calendar-cell {
        min-height: 55px;
        padding: 0.2rem;
    }

    .cell-day {
        font-size: 0.9em;
    }

    .cell-times {
        font-size: 0.7em;
    }

    .calendar-header {
        font-size: 0.7rem;
        padding: 0.3rem 0;
    }

    .modal-content {
        padding: 1.5rem;
    }
}

/* Custom Time Picker */
.time-picker {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 1070;
    width: 320px;
    padding: 1.5rem;
}

.time-picker.hidden {
    display: none;
}

.time-input {
    cursor: pointer;
}

.time-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.time-picker-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.time-display {
    font-size: 3rem;
    font-weight: 300;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.time-display-part {
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.time-display-part:hover {
    background: rgba(255, 90, 95, 0.1);
}

.clock-face {
    position: relative;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: var(--background);
    margin: 0 auto 1.5rem;
}

.clock-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.clock-selection-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    transform-origin: 0 0;
    transition: transform 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.clock-numbers {
    position: absolute;
    width: 100%;
    height: 100%;
}

.clock-number {
    position: absolute;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    font-size: 0.875rem;
    user-select: none;
    z-index: 1;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.clock-number:hover {
    background: rgba(255, 90, 95, 0.1);
}

.clock-hand {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 90px;
    background: var(--primary-color);
    transform-origin: top center;
    transform: translate(-50%, 0) rotate(0deg);
    transition: transform 0.3s ease;
    z-index: 1;
}

.time-picker-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* Theme toggle button — lives inside .header-nav */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-secondary);
    border-radius: var(--border-radius);
    transition: color 0.2s, background 0.2s;
    line-height: 1;
}

.theme-toggle:hover {
    color: var(--primary-color);
    background: rgba(255, 90, 95, 0.08);
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.theme-toggle .lucide {
    width: 1.5rem;
    height: 1.5rem;
}

/* Time picker active states (CSS classes instead of inline JS styles) */
.time-display-part.active {
    color: var(--primary-color);
}

.time-display-part.inactive {
    color: var(--text-secondary);
}

.clock-number.active {
    color: white !important;
}

/* Screenshot guide — info button on upload card */
.upload-section-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.5rem;
}

.upload-info-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0.35rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, background 0.15s;
    line-height: 1;
}

.upload-info-btn:hover {
    color: var(--primary-color);
    background: rgba(255, 90, 95, 0.1);
}

.upload-info-btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.upload-info-btn .lucide {
    width: 1.2rem;
    height: 1.2rem;
}

/* Screenshot guide modal */
.modal-content-guide {
    max-width: 520px;
    max-height: 85vh;
    overflow-y: auto;
}

.guide-body {
    margin-top: 0.5rem;
}

.guide-example-img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    margin-bottom: 1.25rem;
    display: block;
}

.guide-tips {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
}

.guide-tips li {
    position: relative;
    padding: 0.5rem 0 0.5rem 1.75rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-color);
}

.guide-tips li:last-child {
    border-bottom: none;
}

.guide-tips li::before {
    content: "✓";
    position: absolute;
    left: 0.25rem;
    color: var(--success-color);
    font-weight: bold;
}

.guide-windows {
    background: var(--background);
    border-radius: var(--border-radius);
    padding: 1rem;
}

.guide-windows h4 {
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.guide-windows ul {
    padding-left: 1.25rem;
    margin: 0;
}

.guide-windows li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.guide-windows li:last-child {
    margin-bottom: 0;
}

/* Dark mode */
[data-theme="dark"] {
    color-scheme: dark;
    --background: #1a1a1a;
    --card-background: #252525;
    --text-primary: #e8e8e8;
    --text-secondary: #a0a0a0;
    --border-color: #3a3a3a;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    --secondary-color: #9e9e9e;
}

/* Dark mode surface overrides for remaining hardcoded colors */
[data-theme="dark"] .calendar-cell.empty {
    background: #202020;
    color: #666;
}

[data-theme="dark"] .clock-number {
    color: var(--text-primary);
}

[data-theme="dark"] .warning-banner {
    background: #3d2f00;
    border-color: #7a5c00;
    color: #f0c060;
}

[data-theme="dark"] .confidence-high {
    background: rgba(40, 167, 69, 0.15);
    border-left-color: #5cbf7a;
}

[data-theme="dark"] .confidence-medium {
    background: rgba(255, 193, 7, 0.12);
    border-left-color: #ffd43b;
}

[data-theme="dark"] .confidence-low {
    background: rgba(220, 53, 69, 0.15);
    border-left-color: #ff6b6b;
}

[data-theme="dark"] .warning-toast {
    background: #2a2a2a;
}

[data-theme="dark"] .warning-toast::after {
    border-bottom-color: #2a2a2a;
}

[data-theme="dark"] .guide-windows {
    background: #1f1f1f;
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .form-control {
    background: var(--card-background);
    color: var(--text-primary);
}

[data-theme="dark"] .subscription-url input {
    background: var(--card-background);
    color: var(--text-primary);
}

[data-theme="dark"] .btn-secondary {
    background-color: #555;
}

[data-theme="dark"] .btn-secondary:hover {
    background-color: #666;
}

/* ===== Auth Pages ===== */

.btn-full {
    width: 100%;
}

.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
}

.btn-danger {
    background-color: var(--error-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.2s;
}

.btn-danger:hover {
    background-color: #b52d00;
}

.error-banner {
    background: rgba(217, 57, 0, 0.1);
    border: 1px solid var(--error-color);
    color: var(--error-color);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.success-banner {
    background: rgba(0, 166, 153, 0.1);
    border: 1px solid var(--success-color);
    color: var(--success-color);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.auth-link {
    text-align: center;
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-link a {
    color: var(--primary-color);
    text-decoration: none;
}

.auth-link a:hover {
    text-decoration: underline;
}

.field-hint {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* Generic hidden utility — applies everywhere */
.hidden {
    display: none !important;
}

/* Header nav: contains theme toggle + profile/logout links, right side of header */
.header-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.header-nav .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* Inline lucide icons inside headings — match text size */
h3 .lucide {
    width: 1rem;
    height: 1rem;
    vertical-align: -0.1em;
}

/* Profile page */
.user-info-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.schedule-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-color);
}

.schedule-item:last-child {
    border-bottom: none;
}

.schedule-label {
    font-weight: 500;
}

.schedule-shifts {
    font-weight: 400;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 0.5rem;
}

.badge-admin {
    background: var(--primary-color);
    color: white;
}

.section-danger {
    border: 1px solid rgba(217, 57, 0, 0.3);
}

.section-danger h3 {
    color: var(--error-color);
}

[data-theme="dark"] .error-banner {
    background: rgba(255, 107, 107, 0.1);
    border-color: #ff6b6b;
    color: #ff6b6b;
}

[data-theme="dark"] .success-banner {
    background: rgba(0, 200, 183, 0.1);
    border-color: #00c8b7;
    color: #00c8b7;
}

[data-theme="dark"] .section-danger {
    border-color: rgba(255, 107, 107, 0.3);
}

[data-theme="dark"] .section-danger h3 {
    color: #ff6b6b;
}

[data-theme="dark"] .btn-danger {
    background-color: #c53030;
}

[data-theme="dark"] .btn-danger:hover {
    background-color: #9b2c2c;
}
