/**
 * C.A.L.E.N.D.A.R.
 * Calendar Assistant for Legal Events, Notices, Deadlines, and Automated Reminders
 *
 * Modern Minimal Stylesheet
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ============================================
   CSS Variables
   ============================================ */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --border-focus: #3b82f6;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --accent-light: #eff6ff;
    --success: #10b981;
    --success-bg: #ecfdf5;
    --error: #ef4444;
    --error-bg: #fef2f2;
    --warning: #f59e0b;
    --warning-bg: #fffbeb;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --transition: 0.2s ease;
}

body.dark-mode {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --border-color: #334155;
    --border-focus: #60a5fa;
    --accent: #60a5fa;
    --accent-hover: #3b82f6;
    --accent-light: #1e3a5f;
    --success-bg: #064e3b;
    --error-bg: #450a0a;
    --warning-bg: #451a03;
}

/* ============================================
   Base Styles
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* ============================================
   Top Bar (within header)
   ============================================ */
.top-bar {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 8px;
}

.icon-button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
    font-size: 18px;
}

.icon-button:hover {
    background: var(--accent-light);
    border-color: var(--accent);
    color: var(--accent);
    transform: scale(1.05);
}

/* ============================================
   Header
   ============================================ */
.header {
    position: relative;
    text-align: center;
    padding: 32px 24px 32px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

.logo-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    border-radius: var(--radius-full);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 3px solid var(--accent);
}

.logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.creator-tagline {
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.app-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px;
    letter-spacing: 1px;
}

.app-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    max-width: 400px;
    margin: 0 auto;
}

/* ============================================
   Main Container
   ============================================ */
.main-container {
    max-width: 560px;
    margin: 0 auto;
    padding: 32px 24px 48px;
}

.deadline-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ============================================
   Form Cards
   ============================================ */
.form-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: box-shadow var(--transition);
}

.form-card:hover {
    box-shadow: var(--shadow-sm);
}

.form-card.collapsible {
    padding: 0;
}

.form-card.collapsible .card-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    transition: background var(--transition);
    border-radius: var(--radius-lg);
}

.form-card.collapsible .card-header:hover {
    background: var(--bg-secondary);
}

.card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--text-primary);
}

.card-title svg {
    color: var(--text-muted);
}

.card-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.card-summary .chevron {
    transition: transform var(--transition);
}

.form-card.collapsible:not(.collapsed) .card-summary .chevron {
    transform: rotate(180deg);
}

.card-content {
    padding: 0 20px 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.form-card.collapsed .card-content {
    display: none;
}

/* ============================================
   Form Fields
   ============================================ */
.form-field {
    margin-bottom: 20px;
}

.form-field:last-child {
    margin-bottom: 0;
}

.form-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-field label .optional {
    font-weight: 400;
    color: var(--text-muted);
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="datetime-local"],
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    outline: none;
    transition: all var(--transition);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: var(--text-muted);
}

.form-field textarea {
    resize: vertical;
    min-height: 80px;
}

/* Select Input with Dropdown */
.select-input {
    position: relative;
}

.select-input input {
    padding-right: 44px;
}

.dropdown-trigger {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.dropdown-trigger:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    max-height: 240px;
    overflow-y: auto;
    z-index: 50;
    display: none;
}

.dropdown-menu.show {
    display: block;
    animation: dropdownFade 0.15s ease;
}

@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    transition: background var(--transition);
}

.dropdown-item:hover {
    background: var(--accent-light);
}

.dropdown-item-header {
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--bg-secondary);
}

.dropdown-empty {
    padding: 16px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

.preset-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--accent);
    color: white;
    border-radius: var(--radius-full);
    margin-left: 8px;
}

/* ============================================
   Checkbox Styles
   ============================================ */
.select-all-row {
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

@media (max-width: 480px) {
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg-secondary);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
    transition: all var(--transition);
}

.checkbox-label:hover {
    border-color: var(--border-color);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

.checkbox-label.inline {
    background: transparent;
    padding: 0;
}

.empty-message {
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
    font-size: 14px;
}

/* ============================================
   Priority Selector
   ============================================ */
.priority-selector {
    display: flex;
    gap: 8px;
}

.priority-btn {
    flex: 1;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.priority-btn:hover {
    border-color: var(--text-muted);
}

.priority-btn.priority-low.selected {
    background: #dcfce7;
    border-color: #22c55e;
    color: #166534;
}

.priority-btn.priority-medium.selected {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
}

.priority-btn.priority-high.selected {
    background: #fee2e2;
    border-color: #ef4444;
    color: #991b1b;
}

body.dark-mode .priority-btn.priority-low.selected {
    background: #166534;
    color: #dcfce7;
}

body.dark-mode .priority-btn.priority-medium.selected {
    background: #92400e;
    color: #fef3c7;
}

body.dark-mode .priority-btn.priority-high.selected {
    background: #991b1b;
    color: #fee2e2;
}

/* ============================================
   Generate Button
   ============================================ */
.generate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    color: white;
    background: var(--accent);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    margin-top: 8px;
}

.generate-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.generate-btn:active {
    transform: translateY(0);
}

/* ============================================
   Status Message
   ============================================ */
.status-message {
    display: none;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    margin-top: 16px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.status-message.success {
    display: block;
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid var(--success);
}

.status-message.error {
    display: block;
    background: var(--error-bg);
    color: var(--error);
    border: 1px solid var(--error);
}

/* ============================================
   Download Container
   ============================================ */
.download-container {
    display: none;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 24px;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.download-container h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 16px;
}

.download-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.download-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--accent-light);
    border: 1px solid var(--accent);
    border-radius: var(--radius-md);
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
    cursor: pointer;
}

.download-link:hover {
    background: var(--accent);
    color: white;
}

.download-all-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    color: white;
    background: var(--success);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
}

.download-all-btn:hover {
    background: #059669;
}

.create-similar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    color: var(--accent);
    background: var(--accent-light);
    border: 1px solid var(--accent);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
}

.create-similar-btn:hover {
    background: var(--accent);
    color: white;
}

/* ============================================
   Modal
   ============================================ */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.modal.show {
    display: block;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 750px;
    max-height: 85vh;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: modalSlide 0.3s ease;
}

@keyframes modalSlide {
    from { opacity: 0; transform: translate(-50%, -48%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.modal-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
    max-height: calc(85vh - 80px);
    overflow-y: auto;
}

/* Settings Tabs */
.settings-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.tab-btn {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition);
}

.tab-btn:hover {
    border-color: var(--border-color);
}

.tab-btn.active {
    background: var(--accent);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.2s ease;
}

.tab-description {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0 0 20px;
}

/* Items List in Modal */
.items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
    max-height: 300px;
    overflow-y: auto;
}

.item-row {
    display: flex;
    gap: 8px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.item-row input {
    flex: 1;
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    outline: none;
}

.item-row input:focus {
    border-color: var(--border-focus);
}

.item-row .remove-btn {
    padding: 8px 12px;
    font-size: 13px;
    font-family: inherit;
    color: var(--error);
    background: var(--error-bg);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
}

.item-row .remove-btn:hover {
    background: var(--error);
    color: white;
}

.item-row.preset {
    background: var(--accent-light);
    border: 1px solid var(--accent);
}

.item-row.preset input {
    background: transparent;
    border-color: transparent;
}

/* Buttons in Modal */
.add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    color: var(--accent);
    background: var(--accent-light);
    border: 1px dashed var(--accent);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    margin-bottom: 16px;
}

.add-btn:hover {
    background: var(--accent);
    color: white;
    border-style: solid;
}

.save-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    color: white;
    background: var(--accent);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
}

.save-btn:hover {
    background: var(--accent-hover);
}

/* Data Actions */
.data-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
}

.action-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--text-muted);
}

.import-label {
    cursor: pointer;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
    font-size: 13px;
}

.footer a {
    color: var(--accent);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* ============================================
   Scrollbar
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--radius-full);
}

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

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 640px) {
    .header {
        padding: 24px 16px 32px;
    }

    .app-title {
        font-size: 26px;
    }

    .main-container {
        padding: 24px 16px 40px;
    }

    .form-card {
        padding: 20px;
    }

    .modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .settings-tabs {
        gap: 6px;
    }

    .tab-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .data-actions {
        flex-direction: column;
    }

    .item-row {
        flex-wrap: wrap;
    }

    .item-row input {
        min-width: 100px;
    }
}

/* ============================================
   Custom Prefix Input
   ============================================ */
.custom-prefix-input {
    margin-top: 8px;
}

/* ============================================
   Field Hint
   ============================================ */
.field-hint {
    display: none;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--accent);
    background: var(--accent-light);
    border-radius: var(--radius-md);
    animation: hintFade 0.3s ease;
}

.field-hint.show {
    display: flex;
}

.field-hint svg {
    flex-shrink: 0;
    opacity: 0.8;
}

@keyframes hintFade {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   Case Dropdown with Favorites/Recent
   ============================================ */
.dropdown-item.case-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
}

.case-name-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.star-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    flex-shrink: 0;
    margin-left: 8px;
}

.star-btn:hover {
    background: var(--bg-tertiary);
    color: var(--warning);
}

.star-btn.starred {
    color: var(--warning);
}

.star-btn.starred:hover {
    color: var(--text-muted);
}

.dropdown-item-header .section-icon {
    margin-right: 6px;
}

/* ============================================
   Calendar Preview
   ============================================ */
.calendar-preview {
    display: none;
    margin-top: 12px;
    padding: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    animation: fadeIn 0.2s ease;
}

.calendar-preview.show {
    display: block;
}

.calendar-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.calendar-month-year {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.calendar-day-name {
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
}

.calendar-grid {
    font-size: 12px;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 6px;
}

.calendar-weekdays span {
    padding: 4px 0;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 11px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    cursor: pointer;
}

.calendar-day:not(.other-month):hover {
    background: var(--accent-light);
    color: var(--accent);
}

.calendar-day.other-month {
    color: var(--text-muted);
    opacity: 0.4;
    cursor: default;
}

.calendar-day.today {
    background: var(--bg-tertiary);
    font-weight: 600;
}

.calendar-day.selected {
    background: var(--accent);
    color: white;
    font-weight: 600;
}

.calendar-day.weekend {
    color: var(--text-muted);
}

.calendar-day.selected.weekend {
    color: white;
}

/* Weekend warning indicator */
.calendar-preview.weekend-warning .calendar-preview-header {
    border-bottom-color: var(--warning);
}

.calendar-preview.weekend-warning .calendar-day-name {
    color: var(--warning);
}

.calendar-preview.weekend-warning .calendar-day-name::after {
    content: " ⚠";
}

/* Date field display input */
#deadline-date-display {
    cursor: pointer;
}

/* Weekend warning message (persistent, outside calendar) */
.weekend-warning-message {
    display: none;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--warning);
    background: var(--warning-bg);
    border: 1px solid var(--warning);
    border-radius: var(--radius-md);
    animation: fadeIn 0.2s ease;
}

.weekend-warning-message.show {
    display: flex;
}

.weekend-warning-message svg {
    flex-shrink: 0;
}

/* Time picker in calendar preview */
.calendar-time-picker {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.quick-times {
    display: flex;
    gap: 6px;
}

.quick-time-btn {
    flex: 1;
    padding: 8px 4px;
    font-size: 12px;
    font-weight: 500;
    font-family: inherit;
    color: var(--text-secondary);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
}

.quick-time-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.quick-time-btn.selected {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.custom-time {
    display: flex;
    align-items: center;
    gap: 6px;
}

.custom-time select {
    flex: 1;
    padding: 8px 10px;
    font-size: 13px;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.custom-time select:focus {
    outline: none;
    border-color: var(--border-focus);
}
