/* ============================================================
   H24 Housekeeping - App Styles
   Stack: Tailwind CDN + Custom CSS
   Updated: 2026-02-09
   ============================================================ */

/* ----------------------------------------------------------
   CSS Custom Properties (Theme)
   ---------------------------------------------------------- */
:root {
    /* H24 Teal Brand Palette */
    --h24-50:  #f0fdfa;
    --h24-100: #ccfbf1;
    --h24-200: #99f6e4;
    --h24-300: #5eead4;
    --h24-400: #2dd4bf;
    --h24-500: #14b8a6;
    --h24-600: #0d9488;
    --h24-700: #0f766e;
    --h24-800: #115e59;
    --h24-900: #134e4a;

    /* Sidebar dimensions */
    --sidebar-collapsed: 64px;
    --sidebar-expanded: 220px;
    --sidebar-transition: 220ms ease;

    /* Status colors */
    --status-dirty:       #ef4444;
    --status-assigned:    #f59e0b;
    --status-in_progress: #3b82f6;
    --status-clean:       #22c55e;
    --status-inspected:   #0d9488;
    --status-rework:      #a855f7;

    /* Safe area insets (PWA) */
    --sat: env(safe-area-inset-top, 0px);
    --sab: env(safe-area-inset-bottom, 0px);
    --sal: env(safe-area-inset-left, 0px);
    --sar: env(safe-area-inset-right, 0px);
}


/* ----------------------------------------------------------
   Global Reset & Base
   ---------------------------------------------------------- */
* {
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    overscroll-behavior-y: contain;
}


/* ----------------------------------------------------------
   PWA Safe Areas
   ---------------------------------------------------------- */
@media (display-mode: standalone) {
    body {
        padding-top: var(--sat);
        padding-bottom: var(--sab);
        padding-left: var(--sal);
        padding-right: var(--sar);
    }
}


/* ----------------------------------------------------------
   ADMIN LAYOUT - Sidebar + Content
   ---------------------------------------------------------- */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Base */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    background: linear-gradient(180deg, var(--h24-900) 0%, #0c3c38 100%);
    display: flex;
    flex-direction: column;
    z-index: 40;
    transition: width var(--sidebar-transition);
    overflow: hidden;
    border-right: 1px solid rgba(255,255,255,0.06);
}

.sidebar-collapsed {
    width: var(--sidebar-collapsed);
}

.sidebar-expanded {
    width: var(--sidebar-expanded);
}

/* Sidebar Brand / Logo */
.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.sidebar-toggle {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    transition: background 150ms, color 150ms;
}

.sidebar-toggle:hover {
    background: rgba(255,255,255,0.1);
}

.sidebar-collapsed .sidebar-toggle {
    /* In collapsed state, center the toggle within the sidebar */
}

/* Sidebar Label - hidden when collapsed */
.sidebar-collapsed .sidebar-label {
    opacity: 0;
    width: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: opacity 150ms, width 150ms;
}

.sidebar-expanded .sidebar-label {
    opacity: 1;
    width: auto;
    transition: opacity 200ms 80ms, width 200ms;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 12px;
    height: 48px;
    min-height: 48px;
    border-radius: 10px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
    white-space: nowrap;
    transition: background 150ms, color 150ms;
}

.sidebar-link:hover {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.9);
}

.sidebar-link.active {
    background: rgba(20,184,166,0.15);
    color: var(--h24-400);
}

.sidebar-link.active .sidebar-icon {
    color: var(--h24-400);
}

.sidebar-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* Sidebar Bottom Section */
.sidebar-bottom {
    flex-shrink: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 8px;
}

/* Property Switcher */
.sidebar-property {
    position: relative;
    margin-bottom: 4px;
}

.sidebar-property-current {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    height: 48px;
    border-radius: 10px;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: background 150ms;
    font-size: 0.8125rem;
    font-weight: 600;
}

.sidebar-property-current:hover {
    background: rgba(255,255,255,0.08);
}

/* Property Dropdown */
.property-dropdown {
    position: absolute;
    bottom: 100%;
    left: 4px;
    right: 4px;
    margin-bottom: 4px;
    background: var(--h24-800);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 4px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    z-index: 50;
    max-height: 240px;
    overflow-y: auto;
}

.sidebar-collapsed .property-dropdown {
    position: fixed;
    left: calc(var(--sidebar-collapsed) + 8px);
    bottom: 80px;
    right: auto;
    width: 200px;
    z-index: 50;
}

.property-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: background 150ms;
    min-height: 40px;
}

.property-dropdown-item:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.property-dropdown-item.active {
    background: rgba(20,184,166,0.2);
    color: var(--h24-400);
}

/* User Section */
.sidebar-user {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    height: 48px;
    border-radius: 10px;
    gap: 8px;
}

.sidebar-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.sidebar-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(20,184,166,0.2);
    color: var(--h24-400);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.sidebar-user-details {
    min-width: 0;
}

.sidebar-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: rgba(255,255,255,0.4);
    transition: background 150ms, color 150ms;
    flex-shrink: 0;
}

.sidebar-logout:hover {
    background: rgba(239,68,68,0.15);
    color: #ef4444;
}

/* Main Content - offset by sidebar width */
.admin-content {
    flex: 1;
    margin-left: var(--sidebar-collapsed);
    min-height: 100vh;
    transition: margin-left var(--sidebar-transition);
}

.sidebar-expanded ~ .admin-content {
    margin-left: var(--sidebar-expanded);
}


/* ----------------------------------------------------------
   ATTENDANT LAYOUT - Minimal top bar
   ---------------------------------------------------------- */
.attendant-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.attendant-status-bar {
    flex-shrink: 0;
    position: sticky;
    top: 0;
}

.attendant-content {
    flex: 1;
}

.touch-target-sm {
    min-height: 36px;
    min-width: 36px;
    display: inline-flex;
    align-items: center;
}


/* ----------------------------------------------------------
   Login Page
   ---------------------------------------------------------- */
.login-input,
.login-select {
    height: 56px;
    min-height: 56px;
    font-size: 16px; /* Prevents iOS zoom on focus */
}

.login-button {
    height: 56px;
    min-height: 56px;
    font-size: 1rem;
}


/* ----------------------------------------------------------
   Flash Messages
   ---------------------------------------------------------- */
.flash-msg {
    transition: opacity 300ms ease, transform 300ms ease;
}


/* ----------------------------------------------------------
   Status Utility Classes
   ---------------------------------------------------------- */
.status-dirty {
    background-color: #fef2f2;
    color: var(--status-dirty);
    border: 1px solid #fecaca;
}

.status-assigned {
    background-color: #fffbeb;
    color: var(--status-assigned);
    border: 1px solid #fde68a;
}

.status-in_progress {
    background-color: #eff6ff;
    color: var(--status-in_progress);
    border: 1px solid #bfdbfe;
}

.status-clean {
    background-color: #f0fdf4;
    color: var(--status-clean);
    border: 1px solid #bbf7d0;
}

.status-inspected {
    background-color: var(--h24-50);
    color: var(--status-inspected);
    border: 1px solid var(--h24-200);
}

.status-rework {
    background-color: #faf5ff;
    color: var(--status-rework);
    border: 1px solid #e9d5ff;
}

/* Status dot variant (small badge) */
.status-dot-dirty       { background-color: var(--status-dirty); }
.status-dot-assigned    { background-color: var(--status-assigned); }
.status-dot-in_progress { background-color: var(--status-in_progress); }
.status-dot-clean       { background-color: var(--status-clean); }
.status-dot-inspected   { background-color: var(--status-inspected); }
.status-dot-rework      { background-color: var(--status-rework); }


/* ----------------------------------------------------------
   Sortable (Drag & Drop)
   ---------------------------------------------------------- */
.sortable-ghost {
    opacity: 0.25;
    background: var(--h24-50) !important;
    border: 2px dashed var(--h24-300) !important;
    border-radius: 12px;
}

.sortable-chosen {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    transform: rotate(1.5deg) scale(1.02);
    z-index: 100;
    border-radius: 12px;
}

.sortable-drag {
    opacity: 0.95 !important;
}

.sortable-fallback {
    opacity: 0.9 !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Board-Column: vollständige Drop-Zone (flex-1 streckt bis Spaltenende) */
.board-column {
    min-height: 120px;
}

/* Visuelles Feedback: Spalte als Drop-Target bereit */
.board-column.drop-target-ready {
    border: 2px dashed transparent;
    border-radius: 8px;
    transition: background-color 150ms ease, border-color 150ms ease;
}

/* Visuelles Feedback: Element schwebt über dieser Spalte */
.board-column.drag-over {
    background-color: rgba(20, 184, 166, 0.08) !important;
    border-color: var(--h24-400) !important;
    border-style: dashed !important;
    border-width: 2px !important;
    border-radius: 8px;
}


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

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

@keyframes pulseOnce {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.06); }
    100% { transform: scale(1); }
}

@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.fade-in {
    animation: fadeIn 300ms ease-out both;
}

.slide-up {
    animation: slideUp 350ms ease-out both;
}

.pulse-once {
    animation: pulseOnce 400ms ease-in-out;
}

/* Staggered animations for lists */
.fade-in-delay-1 { animation-delay: 50ms; }
.fade-in-delay-2 { animation-delay: 100ms; }
.fade-in-delay-3 { animation-delay: 150ms; }
.fade-in-delay-4 { animation-delay: 200ms; }
.fade-in-delay-5 { animation-delay: 250ms; }


/* ----------------------------------------------------------
   Pull-to-Refresh Support
   ---------------------------------------------------------- */
.ptr-container {
    position: relative;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.ptr-indicator {
    position: absolute;
    top: -48px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 200ms ease;
    opacity: 0;
}

.ptr-indicator.active {
    opacity: 1;
    transform: translateX(-50%) translateY(48px);
}

.ptr-indicator.refreshing {
    opacity: 1;
    transform: translateX(-50%) translateY(48px);
}

.ptr-indicator.refreshing svg {
    animation: spin 800ms linear infinite;
}

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


/* ----------------------------------------------------------
   Touch Optimization
   ---------------------------------------------------------- */
@media (pointer: coarse) {
    /* Ensure all interactive elements are at least 48px for touch */
    button,
    [role="button"],
    a.sidebar-link,
    .sidebar-property-current,
    .property-dropdown-item {
        min-height: 48px;
    }

    /* Bigger touch targets for links in dropdowns */
    select,
    input[type="text"],
    input[type="password"],
    input[type="email"],
    input[type="search"] {
        min-height: 48px;
        font-size: 16px; /* Prevents iOS auto-zoom */
    }

    /* Active press feedback */
    button:active,
    [role="button"]:active,
    .sidebar-link:active,
    .property-dropdown-item:active {
        transform: scale(0.97);
        transition: transform 80ms ease;
    }

    /* Slightly larger checkboxes / radios */
    input[type="checkbox"],
    input[type="radio"] {
        min-width: 20px;
        min-height: 20px;
    }
}


/* ----------------------------------------------------------
   Custom Scrollbar
   ---------------------------------------------------------- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Hide scrollbar in sidebar */
.sidebar-nav::-webkit-scrollbar {
    width: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.sidebar-nav {
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}


/* ----------------------------------------------------------
   Responsive Adjustments
   ---------------------------------------------------------- */

/* Small tablets: collapse sidebar always */
@media (max-width: 768px) {
    .sidebar-expanded {
        width: var(--sidebar-expanded);
        box-shadow: 4px 0 24px rgba(0,0,0,0.3);
    }

    .sidebar-expanded ~ .admin-content {
        margin-left: var(--sidebar-collapsed);
    }

    /* Overlay effect when sidebar is expanded on small screens */
    .sidebar-expanded::after {
        content: '';
        position: fixed;
        top: 0;
        left: var(--sidebar-expanded);
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.2);
        z-index: 39;
        pointer-events: auto;
    }
}

/* Very small screens (phones in landscape or narrow) */
@media (max-width: 480px) {
    .admin-content {
        margin-left: 0;
    }

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar-expanded {
        transform: translateX(0);
        width: var(--sidebar-expanded);
        box-shadow: 4px 0 32px rgba(0,0,0,0.4);
    }

    /* Show a small floating toggle button when sidebar is hidden */
    .sidebar-collapsed ~ .admin-content::before {
        content: '';
        position: fixed;
        top: 12px;
        left: 12px;
        width: 40px;
        height: 40px;
        z-index: 35;
    }
}

/* Admin mobile top bar: visible on phones where sidebar is hidden */
@media (max-width: 768px) {
    .admin-mobile-bar {
        display: flex !important;
        position: sticky;
        top: 0;
        flex-shrink: 0;
    }
}

@media (min-width: 769px) {
    .admin-mobile-bar {
        display: none !important;
    }
}


/* ----------------------------------------------------------
   Utility Helpers
   ---------------------------------------------------------- */

/* Truncate text with ellipsis */
.truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Loading skeleton shimmer */
.skeleton {
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

/* No-select for drag areas */
.no-select {
    -webkit-user-select: none;
    user-select: none;
}

/* Card hover lift */
.card-hover {
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* Smooth all transitions globally for interactive elements */
a, button, input, select, textarea {
    transition-property: color, background-color, border-color, box-shadow, transform, opacity;
    transition-duration: 150ms;
    transition-timing-function: ease;
}


/* ----------------------------------------------------------
   Bulk Selection Mode
   ---------------------------------------------------------- */
.task-tile.selectable {
    cursor: pointer !important;
}

.task-tile.selected {
    outline: 3px solid var(--h24-500);
    outline-offset: -1px;
    background-color: var(--h24-50) !important;
}

.task-tile.selected::after {
    content: '';
    position: absolute;
    top: 6px;
    right: 6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--h24-500);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-size: 14px;
    background-repeat: no-repeat;
    background-position: center;
}

/* ----------------------------------------------------------
   Floating Action Bar
   ---------------------------------------------------------- */
.floating-action-bar {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9998;
    animation: slideUp 0.25s ease forwards;
}

.floating-bar-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--h24-900);
    color: white;
    padding: 10px 16px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    min-width: 280px;
    max-width: 90vw;
    overflow-x: auto;
}

.floating-bar-count {
    font-weight: 700;
    font-size: 0.875rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.floating-bar-pills {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.floating-bar-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    min-height: 40px;
    transition: transform 0.1s ease, background 0.15s ease;
    background: rgba(255,255,255,0.15);
    color: white;
}

.floating-bar-pill:hover {
    background: rgba(255,255,255,0.25);
}

.floating-bar-pill:active {
    transform: scale(0.95);
}

.floating-bar-pill.pill-all {
    background: var(--h24-500);
    color: white;
}

.floating-bar-pill.pill-all:hover {
    background: var(--h24-400);
}

/* ----------------------------------------------------------
   Availability Toggle
   ---------------------------------------------------------- */
.avail-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
    border: 2px solid transparent;
}

.avail-toggle:hover {
    transform: scale(1.15);
}

.avail-toggle.available {
    background: #22c55e;
    border-color: #16a34a;
}

.avail-toggle.unavailable {
    background: #d1d5db;
    border-color: #9ca3af;
}

.avail-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: white;
}

/* ----------------------------------------------------------
   Performance Table
   ---------------------------------------------------------- */
.perf-bar {
    height: 20px;
    border-radius: 9999px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.perf-good { background: #22c55e; }
.perf-ok { background: #f59e0b; }
.perf-bad { background: #ef4444; }

/* ----------------------------------------------------------
   Print Styles
   ---------------------------------------------------------- */
@media print {
    .sidebar,
    .attendant-status-bar,
    .sidebar-toggle,
    .flash-msg {
        display: none !important;
    }

    .admin-content {
        margin-left: 0 !important;
    }

    body {
        background: white !important;
    }
}

/* ----------------------------------------------------------
   Urgent Blink Animation (Admin/Hausdame set)
   ---------------------------------------------------------- */
@keyframes urgentBlink {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
    50% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.35); }
}

.urgent-blink {
    animation: urgentBlink 1.5s ease-in-out infinite;
}

/* ----------------------------------------------------------
   #15 Dark Mode
   ---------------------------------------------------------- */
html.dark {
    color-scheme: dark;
}

html.dark body {
    background-color: #111827 !important;
    color: #e5e7eb;
}

html.dark .bg-gray-50,
html.dark .bg-white {
    background-color: #1f2937 !important;
}

html.dark .bg-gray-100 {
    background-color: #374151 !important;
}

html.dark .text-gray-800,
html.dark .text-gray-900 {
    color: #f3f4f6 !important;
}

html.dark .text-gray-700 {
    color: #d1d5db !important;
}

html.dark .text-gray-600 {
    color: #9ca3af !important;
}

html.dark .text-gray-500 {
    color: #9ca3af !important;
}

html.dark .text-gray-400 {
    color: #6b7280 !important;
}

html.dark .border-gray-100,
html.dark .border-gray-200 {
    border-color: #374151 !important;
}

html.dark .border-gray-300 {
    border-color: #4b5563 !important;
}

html.dark .shadow-sm,
html.dark .shadow-md,
html.dark .shadow-lg {
    box-shadow: 0 1px 3px rgba(0,0,0,0.4) !important;
}

/* Dark mode for cards/tiles */
html.dark .rounded-2xl,
html.dark .rounded-xl {
    border-color: #374151;
}

/* Dark mode inputs */
html.dark input,
html.dark select,
html.dark textarea {
    background-color: #1f2937 !important;
    border-color: #374151 !important;
    color: #e5e7eb !important;
}

html.dark input::placeholder,
html.dark textarea::placeholder {
    color: #6b7280 !important;
}

/* Dark mode slide panels */
html.dark .slide-panel {
    background-color: #1f2937 !important;
}

/* Dark mode sidebar (already dark) */

/* Dark mode login */
html.dark .login-container {
    background-color: #1f2937;
}

/* Dark mode tab buttons */
html.dark .tab-inactive {
    background-color: #374151 !important;
    color: #d1d5db !important;
}

/* Dark mode attendant status bar — keep as-is (already dark) */

/* Dark mode maintenance priority cards */
html.dark .prio-low { background-color: #1f2937; color: #9ca3af; }
html.dark .prio-medium { background-color: #1c1a00; color: #fbbf24; }
html.dark .prio-high { background-color: #1a0f00; color: #fb923c; }
html.dark .prio-urgent { background-color: #1a0000; color: #f87171; }

/* Dark mode toggle button */
.dark-toggle {
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    color: inherit;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.dark-toggle:hover {
    opacity: 1;
}

/* Dark mode: Status badge colors (Tailwind CDN doesn't auto-apply dark: on dynamic classes) */
html.dark .bg-red-100 { background-color: rgba(239,68,68,0.15) !important; }
html.dark .text-red-700 { color: #fca5a5 !important; }
html.dark .bg-blue-100 { background-color: rgba(59,130,246,0.15) !important; }
html.dark .text-blue-700 { color: #93c5fd !important; }
html.dark .bg-yellow-100 { background-color: rgba(234,179,8,0.15) !important; }
html.dark .text-yellow-700 { color: #fde047 !important; }
html.dark .bg-green-100 { background-color: rgba(34,197,94,0.15) !important; }
html.dark .text-green-700 { color: #86efac !important; }
html.dark .bg-purple-100 { background-color: rgba(168,85,247,0.15) !important; }
html.dark .text-purple-700 { color: #d8b4fe !important; }
html.dark .bg-orange-100 { background-color: rgba(249,115,22,0.15) !important; }
html.dark .text-orange-700 { color: #fdba74 !important; }
html.dark .bg-pink-100 { background-color: rgba(236,72,153,0.15) !important; }
html.dark .text-pink-700 { color: #f9a8d4 !important; }
html.dark .bg-indigo-100 { background-color: rgba(99,102,241,0.15) !important; }
html.dark .text-indigo-700 { color: #a5b4fc !important; }
html.dark .bg-amber-100 { background-color: rgba(245,158,11,0.15) !important; }
html.dark .text-amber-700 { color: #fcd34d !important; }
html.dark .bg-teal-100 { background-color: rgba(20,184,166,0.15) !important; }
html.dark .text-teal-700 { color: #5eead4 !important; }
html.dark .bg-cyan-100 { background-color: rgba(6,182,212,0.15) !important; }
html.dark .text-cyan-700 { color: #67e8f9 !important; }

/* Dark mode: Type label text colors */
html.dark .text-green-600 { color: #4ade80 !important; }
html.dark .text-green-500 { color: #22c55e !important; }
html.dark .text-orange-500 { color: #fb923c !important; }
html.dark .text-blue-500 { color: #60a5fa !important; }
html.dark .text-indigo-500 { color: #818cf8 !important; }
html.dark .text-red-500 { color: #f87171 !important; }
html.dark .text-amber-500 { color: #f59e0b !important; }
html.dark .text-amber-600 { color: #d97706 !important; }
