/* Surevibe - Ultra-Premium Stripe-Style SaaS White Theme Design System */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Fonts */
    --font-primary: 'Plus Jakarta Sans', sans-serif;

    /* Theme Colors - Pure Pristine White SaaS Theme */
    --body-bg: #ffffff;
    --panel-bg: rgba(255, 255, 255, 0.75);
    --panel-border: rgba(37, 99, 235, 0.08);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    /* Elegant SaaS Accents */
    --accent-blue: #2563eb;
    --accent-cyan: #06b6d4;
    --neon-pink: #d946ef;
    --neon-pink-glow: rgba(217, 70, 239, 0.08);
    --neon-purple: #2563eb;
    --neon-purple-glow: rgba(37, 99, 235, 0.08);
    --neon-cyan: #06b6d4;
    --neon-cyan-glow: rgba(6, 182, 212, 0.08);
    --neon-green: #22c55e;
    --neon-green-glow: rgba(34, 197, 94, 0.08);
    
    /* Inputs */
    --input-bg: #ffffff;
    --input-border: rgba(37, 99, 235, 0.15);
    --input-focus: rgba(37, 99, 235, 0.15);
    
    /* Sidebar */
    --sidebar-width: 280px;
    --sidebar-bg: #f8f9fa;
    --sidebar-border: rgba(37, 99, 235, 0.06);
    
    /* Scrollbars */
    --scrollbar-track: #f1f5f9;
    --scrollbar-thumb: rgba(37, 99, 235, 0.2);
    
    /* Soft Premium Shadows */
    --card-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 10px 30px -10px rgba(37, 99, 235, 0.05);
    --card-shadow-hover: 0 10px 40px -10px rgba(37, 99, 235, 0.12), 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

/* Pulsing Glowing Cyber Borders Keyframes */
@keyframes cyber-pulse {
    0% { border-color: rgba(37, 99, 235, 0.08); box-shadow: 0 8px 32px 0 rgba(37, 99, 235, 0.03); }
    50% { border-color: rgba(6, 182, 212, 0.25); box-shadow: 0 8px 32px 0 rgba(6, 182, 212, 0.05); }
    100% { border-color: rgba(37, 99, 235, 0.08); box-shadow: 0 8px 32px 0 rgba(37, 99, 235, 0.03); }
}

/* Global Adaptive Text Styles */
.text-white:not(.btn-glass *, .btn-glass, .btn-premium *, .btn-premium, .badge *, .badge, .btn-danger *, .btn-danger, .btn-success *, .btn-success, .btn-warning *, .btn-warning, .btn-info *, .btn-info, .alert *, .alert, .pulse-indicator, .status-indicator, .glass-panel[style*="linear-gradient"] *, .glass-panel[style*="linear-gradient"], .modal-content *) {
    color: #0f172a !important;
}
.text-light {
    color: #475569 !important;
}
.text-secondary {
    color: #475569 !important;
}
.text-muted {
    color: #94a3b8 !important;
}

/* Force dark text to deep black slate */
.text-dark {
    color: #0f172a !important;
}

/* Light Table Styles */
table.table-dark {
    --bs-table-bg: rgba(255, 255, 255, 0.8) !important;
    --bs-table-color: #0f172a !important;
    --bs-table-hover-color: #2563eb !important;
    --bs-table-hover-bg: rgba(37, 99, 235, 0.05) !important;
    --bs-table-border-color: rgba(37, 99, 235, 0.08) !important;
    color: #0f172a !important;
    background-color: rgba(255, 255, 255, 0.8) !important;
    border-color: rgba(37, 99, 235, 0.08) !important;
}
table.table-dark thead tr {
    border-bottom: 2px solid rgba(37, 99, 235, 0.15) !important;
}
table.table-dark td, table.table-dark th {
    background-color: transparent !important;
    color: inherit !important;
}

/* Light Background overrides */
.bg-dark {
    background-color: rgba(248, 249, 250, 0.8) !important;
}
.bg-dark.bg-opacity-20 {
    background-color: rgba(248, 249, 250, 0.5) !important;
}
.bg-dark.bg-opacity-10 {
    background-color: rgba(248, 249, 250, 0.3) !important;
}

/* Alert overrides for glowing tech notifications */
.alert-danger {
    background-color: rgba(239, 68, 68, 0.06) !important;
    border: 1px solid rgba(239, 68, 68, 0.15) !important;
    color: #ef4444 !important;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.03) !important;
}
.alert-success {
    background-color: rgba(34, 197, 94, 0.06) !important;
    border: 1px solid rgba(34, 197, 94, 0.15) !important;
    color: #22c55e !important;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.03) !important;
}
.alert-info {
    background-color: rgba(6, 182, 212, 0.06) !important;
    border: 1px solid rgba(6, 182, 212, 0.15) !important;
    color: #0891b2 !important;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.03) !important;
}

/* Border visibility fixes */
.border-danger {
    border-color: rgba(239, 68, 68, 0.2) !important;
}
.border-warning {
    border-color: rgba(245, 158, 11, 0.2) !important;
}
.border-success {
    border-color: rgba(34, 197, 94, 0.2) !important;
}
.border-secondary {
    border-color: rgba(37, 99, 235, 0.08) !important;
}

/* Cyber Frosted Light Dropdowns */
.dropdown-menu-dark {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(25px) saturate(180%) !important;
    border: 1px solid rgba(37, 99, 235, 0.1) !important;
    color: #0f172a !important;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.06) !important;
}
.dropdown-menu-dark .dropdown-item {
    color: #475569 !important;
    transition: all 0.25s ease;
}
.dropdown-menu-dark .dropdown-item:hover {
    background: rgba(37, 99, 235, 0.05) !important;
    color: #2563eb !important;
    transform: translateX(4px);
}
.dropdown-menu-dark .dropdown-item.text-danger:hover {
    background: rgba(239, 68, 68, 0.05) !important;
    color: #ef4444 !important;
}
.dropdown-menu-dark .dropdown-divider {
    border-color: rgba(37, 99, 235, 0.05) !important;
}

/* Support FAQ Accordion Styling */
.accordion-item {
    background: rgba(255, 255, 255, 0.6) !important;
    border: 1px solid rgba(37, 99, 235, 0.1) !important;
    border-bottom: 1px solid rgba(37, 99, 235, 0.1) !important;
}
.accordion-button {
    background: transparent !important;
    color: #0f172a !important;
}
.accordion-button::after {
    filter: brightness(0.2);
}
.accordion-button:not(.collapsed) {
    color: var(--accent-cyan) !important;
    background-color: rgba(6, 182, 212, 0.05) !important;
}

/* Availability status dropdown picker options */
#status-picker option {
    background-color: #ffffff !important;
    color: #0f172a !important;
}

/* Hover states, navigation, buttons and widgets */
.nav-link-custom:hover {
    background: rgba(37, 99, 235, 0.04) !important;
    color: #2563eb !important;
}
.btn-glass {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(37, 99, 235, 0.15) !important;
    color: #475569 !important;
    transition: all 0.2s ease !important;
}
.btn-glass:hover {
    background: rgba(37, 99, 235, 0.04) !important;
    border-color: var(--accent-blue) !important;
    color: var(--accent-blue) !important;
    transform: translateY(-1.5px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08) !important;
}
.glass-panel-hover:hover {
    box-shadow: 0 15px 45px rgba(37, 99, 235, 0.08), 0 0 20px rgba(6, 182, 212, 0.05) !important;
    border-color: rgba(37, 99, 235, 0.25) !important;
}

/* Chat bubble enhancements */
.chat-bubble.received {
    background: rgba(248, 249, 250, 0.8) !important;
    border-color: rgba(37, 99, 235, 0.06) !important;
    color: #0f172a !important;
}
.chat-bubble.sent {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(6, 182, 212, 0.04) 100%) !important;
    border-color: rgba(37, 99, 235, 0.15) !important;
    color: #2563eb !important;
}
.chat-bubble .chat-sender-info {
    color: var(--text-secondary) !important;
}

/* Input Group Icon Styling */
.input-group-text {
    background-color: rgba(37, 99, 235, 0.04) !important;
    border: 1px solid rgba(37, 99, 235, 0.1) !important;
    border-right: none !important;
    color: #475569 !important;
}

/* Base Styles with Structural Mesh Grid Texture and Glowing Nebulae */
body {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #f1f5f9 100%),
                linear-gradient(0deg, rgba(37, 99, 235, 0.015) 1px, transparent 1px),
                linear-gradient(90deg, rgba(37, 99, 235, 0.015) 1px, transparent 1px) !important;
    background-size: 100% 100%, 40px 40px, 40px 40px !important;
    background-attachment: fixed !important;
    font-family: var(--font-primary);
    color: var(--text-primary);
    min-height: 100vh;
    margin: 0;
    transition: background 0.5s ease, color 0.3s ease;
    overflow-x: hidden;
}

/* Simulated Nebulae glow */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.04) 0%, transparent 45%),
                      radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.04) 0%, transparent 45%);
    z-index: -1;
    pointer-events: none;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f8f9fa;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-blue) 0%, var(--accent-cyan) 100%) !important;
    border-radius: 10px;
    box-shadow: 0 0 6px rgba(37, 99, 235, 0.05);
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent-cyan) 0%, var(--accent-blue) 100%) !important;
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.2);
}

/* Minimalist Clean Panel Card with pulses */
.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(20px) saturate(170%);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    animation: cyber-pulse 6s infinite ease-in-out;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}

.glass-panel-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 45px rgba(37, 99, 235, 0.08), 0 0 20px rgba(6, 182, 212, 0.05);
    border-color: rgba(37, 99, 235, 0.25);
    animation-play-state: paused;
}

/* Tech Badges with Soft Glowing Backgrounds */
.badge {
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 4px 8px;
}
.badge.bg-purple {
    background: rgba(37, 99, 235, 0.08) !important;
    color: var(--accent-blue) !important;
    border-color: rgba(37, 99, 235, 0.15) !important;
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.03);
}
.badge.bg-cyan {
    background: rgba(6, 182, 212, 0.08) !important;
    color: #0891b2 !important;
    border-color: rgba(6, 182, 212, 0.15) !important;
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.03);
}
.badge.bg-success {
    background: rgba(34, 197, 94, 0.08) !important;
    color: #16a34a !important;
    border-color: rgba(34, 197, 94, 0.15) !important;
}

/* Title Gradient Text */
.text-gradient {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* Layout Architecture */
.app-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styling - Dynamic Tech Minimalist */
.app-sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--sidebar-border);
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: fixed;
    z-index: 1040;
    transition: transform 0.3s ease;
}

/* Mobile Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1030;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

.app-content {
    margin-left: var(--sidebar-width);
    flex-grow: 1;
    min-height: 100vh;
    padding: 30px;
    position: relative;
    transition: margin-left 0.25s ease;
}

.sidebar-logo {
    padding: 25px;
    text-align: center;
    border-bottom: 1px solid var(--sidebar-border);
}

.sidebar-nav {
    flex-grow: 1;
    padding: 20px 15px;
    overflow-y: auto;
}

.nav-category {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin: 20px 0 10px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Tech Category Glowing indicator */
.nav-category::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent-blue);
    box-shadow: 0 0 6px rgba(37, 99, 235, 0.2);
    display: inline-block;
}

.nav-link-custom {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    color: var(--text-secondary);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 4px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid transparent;
}

.nav-link-custom i {
    font-size: 16px;
    margin-right: 12px;
    transition: transform 0.25s ease;
}

.nav-link-custom:hover {
    background: rgba(37, 99, 235, 0.05) !important;
    color: var(--accent-blue) !important;
    transform: translateX(5px);
    border-color: rgba(37, 99, 235, 0.1);
}

.nav-link-custom:hover i {
    transform: scale(1.15) rotate(5deg);
    color: var(--accent-cyan) !important;
}

.nav-link-custom.active {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(6, 182, 212, 0.04) 100%) !important;
    color: var(--accent-blue) !important;
    border-left: 4px solid var(--accent-cyan) !important;
    border-color: rgba(37, 99, 235, 0.15) !important;
    box-shadow: inset 0 0 10px rgba(6, 182, 212, 0.02), 0 4px 15px rgba(37, 99, 235, 0.03) !important;
}

.nav-link-custom.active i {
    color: var(--accent-cyan) !important;
}

.app-header {
    background: rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(37, 99, 235, 0.08) !important;
    padding: 12px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 0 12px 12px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1050;
}

/* Availability Badge Options */
.availability-pill {
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.55) !important;
    border: 1px solid rgba(37, 99, 235, 0.1) !important;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-indicator.available { background: var(--neon-green); box-shadow: 0 0 8px var(--neon-green); }
.status-indicator.busy { background: #ef4444; box-shadow: 0 0 8px rgba(239, 68, 68, 0.4); }
.status-indicator.in_meeting { background: #f59e0b; box-shadow: 0 0 8px rgba(245, 158, 11, 0.4); }
.status-indicator.on_duty { background: var(--accent-cyan); box-shadow: 0 0 8px rgba(6, 182, 212, 0.4); }
.status-indicator.offline { background: var(--text-muted); }

.form-control, .form-select {
    background: rgba(255, 255, 255, 0.6) !important;
    border: 1px solid rgba(37, 99, 235, 0.12) !important;
    color: #1e293b !important;
    border-radius: 8px;
    padding: 10px 14px;
    transition: all 0.25s ease;
}

.form-control:focus, .form-select:focus {
    background: rgba(255, 255, 255, 0.8) !important;
    border-color: var(--accent-cyan) !important;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.12) !important;
    color: #0f172a !important;
}

.btn-premium {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-cyan) 100%) !important;
    border: none;
    color: white !important;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.15);
}

.btn-premium:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.25);
    color: white !important;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.5) !important;
    border: 1px solid rgba(37, 99, 235, 0.12) !important;
    color: #1e293b !important;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.25s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-glass:hover {
    background: rgba(37, 99, 235, 0.04) !important;
    border-color: rgba(37, 99, 235, 0.2) !important;
    color: #0f172a !important;
    transform: translateY(-1px);
}

/* Kanban Board Columns */
.kanban-board {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 15px;
}

.kanban-column {
    flex: 1;
    min-width: 280px;
    max-width: 360px;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 18px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    max-height: 80vh;
}

.kanban-column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-weight: 600;
}

.kanban-cards-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
    flex-grow: 1;
    min-width: 0;
}

.kanban-card {
    background: rgba(255, 255, 255, 0.55) !important;
    border: 1px solid rgba(37, 99, 235, 0.08) !important;
    border-radius: 8px;
    padding: 16px;
    cursor: grab;
    transition: all 0.25s ease;
    min-width: 0;
}

.kanban-card:hover {
    transform: translateY(-1.5px);
    border-color: rgba(37, 99, 235, 0.2) !important;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.06) !important;
}

.kanban-card-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal !important;
    word-break: break-word;
    line-height: 1.5;
}

.priority-indicator {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}

.priority-indicator.critical { background: rgba(239, 68, 68, 0.08); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.15); }
.priority-indicator.high { background: rgba(245, 158, 11, 0.08); color: #d97706; border: 1px solid rgba(245, 158, 11, 0.15); }
.priority-indicator.medium { background: rgba(37, 99, 235, 0.08); color: var(--accent-blue); border: 1px solid rgba(37, 99, 235, 0.15); }
.priority-indicator.low { background: rgba(34, 197, 94, 0.08); color: #16a34a; border: 1px solid rgba(34, 197, 94, 0.15); }

/* Chat Bubbles Layout */
.chat-container {
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.chat-history {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 12px;
    position: relative;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.chat-bubble.sent {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(6, 182, 212, 0.04) 100%);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    border-color: rgba(37, 99, 235, 0.15);
}

.chat-bubble.received {
    background: rgba(248, 249, 250, 0.8);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border-color: rgba(37, 99, 235, 0.06);
}

.chat-sender-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

/* Digital Staff ID Card Details - Cyberpunk Tech Style */
.id-card-wrapper {
    max-width: 340px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(37, 99, 235, 0.12) !important;
    border-radius: 16px;
    padding: 30px;
    position: relative;
    box-shadow: 0 15px 50px rgba(37, 99, 235, 0.06) !important;
    text-align: center;
    overflow: hidden;
}

.id-card-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 6px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan)) !important;
}

.id-photo-container {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    border: 3px solid var(--accent-blue) !important;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.2) !important;
    overflow: hidden;
}

.id-qr-container {
    width: 120px;
    height: 120px;
    background: white;
    padding: 8px;
    border-radius: 12px;
    margin: 20px auto 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(37, 99, 235, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
}

/* War Room Pulse blinkers */
.pulse-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ef4444;
    display: inline-block;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
    animation: pulse 1.6s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* Mobile responsive drawer toggles */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    color: #1e293b !important;
}

@media (max-width: 991px) {
    .app-sidebar {
        transform: translateX(-100%);
    }
    .app-sidebar.show {
        transform: translateX(0);
        box-shadow: 10px 0 40px rgba(0, 0, 0, 0.8);
    }
    .app-content {
        margin-left: 0;
        padding: 15px;
    }
    .menu-toggle {
        display: block;
    }
}

/* Responsive Kanban Board for smaller viewports */
@media (max-width: 768px) {
    .kanban-board {
        flex-direction: column !important;
        overflow-x: visible !important;
        gap: 25px !important;
    }
    .kanban-column {
        min-width: 100% !important;
        max-height: none !important;
        padding: 16px !important;
    }
    .app-content {
        padding: 15px !important;
    }
    .app-header {
        padding: 10px 15px !important;
        border-radius: 8px !important;
    }
}

/* Responsive enhancements for small screens */
@media (max-width: 576px) {
    .app-header {
        flex-direction: row;
        gap: 8px;
        padding: 8px 10px !important;
    }
    
    .availability-pill {
        padding: 4px 6px;
        font-size: 11px;
        gap: 4px;
    }

    #status-picker {
        font-size: 11px;
        max-width: 75px;
    }
    
    #countdown-timer h2 {
        font-size: 1.25rem !important;
    }
    
    #countdown-timer span {
        font-size: 8px !important;
    }

    .glass-panel h3 {
        font-size: 1.25rem;
    }

    .glass-panel .small {
        font-size: 10px;
    }

    .glass-panel.p-4 {
        padding: 20px !important;
    }
}

/* Network Speed Preloader */
.preloader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.25s ease-out, visibility 0.25s ease-out;
}
.preloader-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}
.preloader-content {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(37, 99, 235, 0.15);
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.1);
    padding: 40px 50px;
    border-radius: 16px;
}
.cyber-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(37, 99, 235, 0.1);
    border-top-color: var(--accent-blue);
    border-right-color: var(--accent-cyan);
    border-radius: 50%;
    margin: 0 auto;
    animation: cyber-spin 1s linear infinite;
}
@keyframes cyber-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Global Skeleton Loading System */
.skeleton-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background-color: var(--body-bg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: opacity 0.4s ease-out, visibility 0.4s ease-out;
}
.skeleton-wrapper.fade-out {
    opacity: 0;
    visibility: hidden;
}
.skeleton-box {
    background: linear-gradient(90deg, #f8f9fa 25%, #e9ecef 50%, #f8f9fa 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite linear;
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
@keyframes skeleton-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.real-content-hidden {
    opacity: 0;
    transition: opacity 0.4s ease-in;
}
.real-content-visible {
    opacity: 1;
}
