/* Jump Hip - Dark Theme CSS */

:root {
    /* Main colors */
    --color-bg: #0d1117;
    --color-bg-alt: #161b22;
    --color-pink: #ff69b4;
    --color-pink-dark: #ff69b4;
    --color-pink-light: #ffb3da;
    --color-gray1: #6c757d;
    --color-gray2: #495057;
    --color-gray3: #343a40;
    --color-gray4: #30363d;
    --color-gray5: #666666;
    --color-white: #f0f6fc;
    --color-text: #e9ecef;
    --color-text-muted: #8b949e;
    --color-border-pink: rgba(255, 105, 180, 0.3);
    --color-yellow: #ffcc00;
    --color-black: #000;
    --color-bg-secondary: #21262d;
    --color-border-pink-light: rgba(255, 179, 218, 0.3);
    --color-border-gray: rgba(108, 117, 125, 0.3);
    
    /* Additional colors found in todo styles */
    --color-purple-dark: #4a1a2a;
    --color-text-light: #7d8590;
    --color-error: #ff4444;
    
    /* Font size variables - responsive using clamp() */
    --font-size-heading-main: clamp(16px, 3.5vw, 26px);     /* Main task titles */
    --font-size-heading-section: clamp(16px, 3vw, 24px);    /* Timeline titles, form headings */
    --font-size-text-large: clamp(12px, 2.5vw, 18px);       /* Detail items, primary text */
    --font-size-text-medium: clamp(10px, 2vw, 16px);        /* Task details, secondary text */
    --font-size-text-small: clamp(8px, 1.5vw, 14px);        /* Category chips, form elements */
    --font-size-icon-large: clamp(16px, 4vw, 24px);         /* Priority corner icons */
    --font-size-icon-medium: clamp(11px, 2vw, 17px);        /* Detail icons, priority indicators */
    --font-size-icon-small: clamp(9px, 1.8vw, 15px);        /* Edit icons */
    --font-size-icon-tiny: clamp(8px, 1.5vw, 12px);         /* Very small icons */
    --font-size-form: 14px;                                 /* Form inputs, buttons */
    --font-size-tiny: 12px;                                 /* Sync status, timestamps */
    --font-size-micro-tiny: 10px;                           /* Category tags, very small text */
    
    /* Main site font sizes */
    --font-size-site-header: clamp(24px, 5vw, 40px);        /* Main site header h1 */
    --font-size-site-subtitle: clamp(14px, 2.2vw, 18px);    /* Header subtitle/description */
    --font-size-page-heading: clamp(20px, 3.5vw, 29px);     /* Page main headings */
    --font-size-doc-text: clamp(13px, 2vw, 14px);           /* Document card text */
    --font-size-doc-small: clamp(11px, 1.8vw, 13px);        /* Document card small text */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--color-bg);
    background-image: 
        radial-gradient(circle at 25% 25%, #ff69b415 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, #ff69b415 0%, transparent 50%);
}
/* Header styles (merged, deduplicated) */
/* Header styles (merged, deduplicated) */
#header-container .header {
    background: linear-gradient(145deg, var(--color-bg-alt) 0%, var(--color-purple-dark) 100%);
}
.header {
    background: var(--color-bg-alt);
    color: var(--color-pink);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    border: 1px solid var(--color-pink);
}
.header h1 {
    margin: 0;
    font-size: var(--font-size-site-header);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    font-weight: 600;
}
.header p {
    margin: 0.5rem 0 0 0;
    opacity: 0.95;
    font-size: var(--font-size-site-subtitle);
}
    /* ...existing code... */
    .doc-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1rem;
    }
    .doc-card {
        background: linear-gradient(145deg, var(--color-bg) 0%, var(--color-bg-alt) 100%) !important;
        border: 1px solid var(--color-gray4);
        border-radius: 8px;
        padding: 1rem;
        transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    }
    .doc-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 24px var(--color-border-pink);
        border-color: var(--color-pink);
    }
    .doc-card h3 {
        margin: 0 0 0.5rem 0;
        color: var(--color-white);
        font-weight: 600;
    }
    .doc-card p {
        margin: 0 0 1rem 0;
        color: var(--color-text-muted);
        font-size: var(--font-size-doc-text);
    }
    .doc-links {
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    .doc-links a {
        padding: 0.4rem 0.8rem;
        background: linear-gradient(135deg, var(--color-pink) 0%, var(--color-pink-dark) 100%);
        color: white;
        text-decoration: none;
        border-radius: 6px;
        font-size: var(--font-size-doc-small);
        font-weight: 500;
        transition: all 0.2s ease;
        border: 1px solid var(--color-border-pink);
    }
    .doc-links a:hover {
        background: linear-gradient(135deg, var(--color-pink-dark) 0%, var(--color-pink-light) 100%);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px var(--color-border-pink);
    }
    .doc-links a.image {
        background: linear-gradient(135deg, var(--color-pink-light) 0%, var(--color-pink) 100%);
        border: 1px solid var(--color-border-pink-light);
    }
    .doc-links a.image:hover {
        background: linear-gradient(135deg, var(--color-pink) 0%, var(--color-pink-light) 100%);
        box-shadow: 0 4px 12px var(--color-border-pink-light);
    }
    .quick-links {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
        margin-top: 1rem;
        max-width: 100%;
    }
    
    /* Force 2x2 layout on smaller screens */
    @media (max-width: 768px) {
        .quick-links {
            grid-template-columns: repeat(2, 1fr);
        }
    }
    
    /* Force single row on very wide screens */
    @media (min-width: 1000px) {
        .quick-links {
            grid-template-columns: repeat(4, 1fr);
        }
    }
    .quick-links a {
        padding: 0.75rem 1.5rem;
        background: linear-gradient(135deg, var(--color-gray1) 0%, var(--color-gray2) 100%);
        color: white;
        text-decoration: none;
        border-radius: 8px;
        font-weight: 500;
        transition: all 0.2s ease;
        border: 1px solid var(--color-border-gray);
    }
    .quick-links a:hover {
        background: linear-gradient(135deg, var(--color-gray2) 0%, var(--color-gray3) 100%);
        transform: translateY(-2px);
        box-shadow: 0 6px 16px var(--color-border-gray);
    }
    .timeline-note {
        background: var(--color-bg-alt) !important;
        border: 1px solid var(--color-pink) !important;
        border-radius: 8px;
        padding: 1rem;
        margin-top: 1rem;
        color: var(--color-text);
    }
    .timeline-note strong {
        color: var(--color-pink);
    }

.header h1 {
    margin: 0;
    font-size: var(--font-size-page-heading);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    font-weight: 600;
}

.nav {
    margin-bottom: 1rem;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav a {
    color: #ff69b4;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav a:hover {
    color: #ffb3da;
    text-decoration: underline;
}

.quick-access-toggle {
    background: var(--color-gray4);
    color: var(--color-text);
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.quick-access-toggle:hover {
    background: rgba(255, 105, 180, 0.1);
    outline: 1px solid rgba(255, 105, 180, 0.3);
    transform: translateY(-1px);
}

.quick-access-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-gray4);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    min-width: 200px;
    padding: 8px 0;
    margin-top: 4px;
}

.quick-access-dropdown a {
    display: block;
    padding: 10px 16px;
    color: var(--color-text);
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.quick-access-dropdown a:hover {
    background: rgba(255, 105, 180, 0.1);
    color: var(--color-pink);
}

.content {
    background: linear-gradient(145deg, #161b22 0%, #1c2128 100%);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    border: 1px solid #30363d;
}

.source-link {
    background: linear-gradient(145deg, #0d1117 0%, #161b22 100%);
    border: 1px solid #ff69b4;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    text-align: center;
}

.source-link a {
    color: #ff69b4;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.source-link a:hover {
    color: #ffb3da;
    text-decoration: underline;
}

.highlight {
    background: var(--color-bg-alt) !important;
    border: 1px solid var(--color-pink) !important;
    border-left: 4px solid var(--color-pink);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 8px;
    color: #e9ecef;
}

.warning {
    background: linear-gradient(145deg, #5a1a1a 0%, #6b2121 100%);
    border: 1px solid #dc3545;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    color: #ffc1cc;
}

.warning h3 {
    margin-top: 0;
    color: #ff6b7a;
}

.danger {
    background: linear-gradient(145deg, #7a1a1a 0%, #8b2121 100%);
    border: 2px solid #dc3545;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    color: #ffc1cc;
}

.danger h3 {
    margin-top: 0;
    color: #ff6b7a;
}

.instructions, .info-box, .recommendation, .contact-box, .benefits, .location-info {
    background: linear-gradient(145deg, #1a2332 0%, #213243 100%);
    border: 1px solid #ffb3da;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    color: #e9ecef;
}

.instructions h3, .info-box h3, .recommendation h3, .contact-box h3, .benefits h3, .location-info h3 {
    margin-top: 0;
    color: #ffb3da;
}

.medication {
    background: linear-gradient(145deg, #161b22 0%, #1c2128 100%);
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    transition: border-color 0.2s ease;
}

.medication:hover {
    border-color: #ff69b4;
}

.medication h3 {
    margin-top: 0;
    color: #f0f6fc;
    border-bottom: 2px solid #30363d;
    padding-bottom: 0.5rem;
}

.dosage {
    background: linear-gradient(145deg, #0d1117 0%, #161b22 100%);
    border-left: 4px solid #ff69b4;
    padding: 1rem;
    margin: 0.5rem 0;
    border-radius: 0 6px 6px 0;
    color: #e9ecef;
}

.pricing-box {
        background: var(--color-bg-alt) !important;
        border: 1px solid var(--color-pink) !important;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    text-align: center;
    color: #e9ecef;
}

.pricing-box h3 {
    margin-top: 0;
    color: #ff69b4;
}

.appointment-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: #161b22;
    border-radius: 8px;
    overflow: hidden;
}

.appointment-table th,
.appointment-table td {
    border: 1px solid #30363d;
    padding: 0.75rem;
    text-align: left;
    color: #e9ecef;
}

.appointment-table th {
    background: linear-gradient(145deg, #4a4a4a 0%, #6c6c6c 100%);
    font-weight: 600;
    color: #ff69b4;
}

.appointment-table tr:nth-child(even) {
    background: #0d1117;
}

.surgery-highlight {
        background: var(--color-bg-alt) !important;
    border: 1px solid var(--color-pink) !important;
}

.note {
        background: var(--color-bg-alt) !important;
        border: 1px solid var(--color-pink) !important;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    color: #e9ecef;
}

ol, ul {
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
    color: #e9ecef;
}

h2 {
    color: #ff69b4;
    border-bottom: 2px solid #ff69b4;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

h3 {
    color: #f0f6fc;
}

p {
    color: #e9ecef;
}

a {
    color: #ff69b4;
    transition: color 0.2s ease;
}

a:hover {
    color: #ffb3da;
}

strong {
    color: #f0f6fc;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: #161b22;
    border-radius: 8px;
    overflow: hidden;
}
.schedule-table th,
.schedule-table td {
    border: 1px solid #30363d;
    padding: 0.75rem;
    text-align: left;
    color: #e9ecef;
    font-size: var(--font-size-doc-text);
}
.schedule-table th {
    background: linear-gradient(145deg, #4a4a4a 0%, #6c6c6c 100%);
    font-weight: 600;
    color: #ff69b4;
    position: sticky;
    top: 0;
    z-index: 10;
}
.schedule-table tr:nth-child(even) {
    background: #0d1117;
}
.timeline-group {
    background: var(--color-bg-alt) !important;
    border: 1px solid var(--color-pink) !important;
    font-weight: bold;
}
.category-medical { border-left: 4px solid #ff69b4; }
.category-home { border-left: 4px solid #ffb3da; }
.category-equipment { border-left: 4px solid #ff69b4; }
.category-administrative { border-left: 4px solid #ff8eb3; }
.category-transportation { border-left: 4px solid #ff4da6; }
.category-shopping { border-left: 4px solid #ffcce5; }
.category-technology { border-left: 4px solid #e60073; }
.category-supplies { border-left: 4px solid #cc0066; }
.category-personal { border-left: 4px solid #ff0080; }
.category-recovery { border-left: 4px solid #ff3399; }
.category-daily { border-left: 4px solid #ff66b3; }
.category-projects { border-left: 4px solid #ff99cc; }
.category-emergency { border-left: 4px solid #ff0000; }
.category-activity { border-left: 4px solid #ff6600; }

.checkbox {
    width: 20px;
    height: 20px;
    background: #30363d;
    border: 2px solid #ff69b4;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    cursor: pointer;
}

.checkbox.checked {
    background: #ff69b4;
}

.checkbox.checked::after {
    content: '✓';
    color: white;
    position: absolute;
    top: -2px;
    left: 3px;
    font-weight: bold;
}

.filter-buttons {
    margin: 1rem 0;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: #30363d;
    color: #e9ecef;
    border: 1px solid #ff69b4;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: #ff69b4;
    color: white;
}

/* Helper dropdown styling */
.helper-dropdown {
    color: var(--color-text-light) !important;
    background: var(--color-bg-alt) !important;
    border: 1px solid var(--color-border-pink) !important;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    margin-bottom: 0.5rem;
    display: block;
    width: 100%;
}

.helper-dropdown option {
    color: var(--color-text-light) !important;
    background: var(--color-bg-alt) !important;
}

/* Loading spinner overlay for Add Task form */
.add-task-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 17, 23, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: 8px;
}

.add-task-form {
    position: relative;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--color-gray4);
    border-top: 4px solid var(--color-pink);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.spinner-text {
    color: var(--color-text);
    font-size: 14px;
    text-align: center;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Edit and Clear Icon Styling */
.edit-icon,
.clear-icon {
    font-size: var(--font-size-icon-small);
    margin-left: 8px;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    cursor: pointer;
    display: inline-block;
    vertical-align: middle;
}

.edit-icon:hover,
.clear-icon:hover {
    opacity: 1;
}

.clear-icon {
    color: var(--color-text);
    font-weight: bold;
    margin-left: 4px;
}

.clear-icon:hover {
    color: var(--color-pink);
}