/* ==========================================
   DESIGN TOKENS & RESET
   ========================================== */
:root {
    /* Colors */
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-card: rgba(17, 24, 39, 0.7);
    --bg-card-hover: rgba(30, 41, 59, 0.8);
    --border-color: rgba(99, 102, 241, 0.15);
    --border-hover: rgba(99, 102, 241, 0.35);

    /* Accent palette */
    --accent-primary: #818cf8;
    --accent-primary-rgb: 129, 140, 248;
    --accent-secondary: #6366f1;
    --accent-glow: rgba(99, 102, 241, 0.4);
    --accent-success: #34d399;
    --accent-success-rgb: 52, 211, 153;
    --accent-warning: #fbbf24;
    --accent-warning-rgb: 251, 191, 36;
    --accent-danger: #f87171;
    --accent-danger-rgb: 248, 113, 113;
    --accent-info: #38bdf8;

    /* Text */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Spacing */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(var(--accent-primary-rgb), 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ==========================================
   ANIMATED BACKGROUND
   ========================================== */
.bg-orbs {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-secondary), transparent 70%);
    top: -10%;
    right: -5%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #7c3aed, transparent 70%);
    bottom: -10%;
    left: -5%;
    animation-delay: -7s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #0ea5e9, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.05); }
    50% { transform: translate(-20px, 30px) scale(0.95); }
    75% { transform: translate(40px, 20px) scale(1.02); }
}

/* ==========================================
   GLASSMORPHISM CARD
   ========================================== */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.glass-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* ==========================================
   HEADER
   ========================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 24px;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--accent-secondary), #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 15px rgba(var(--accent-primary-rgb), 0.3);
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 4px 15px rgba(var(--accent-primary-rgb), 0.3); }
    50% { box-shadow: 0 4px 25px rgba(var(--accent-primary-rgb), 0.5); }
}

.logo-area h1 {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.header-stats {
    display: flex;
    gap: 10px;
}

.stat-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    min-width: 80px;
    transition: transform var(--transition-fast), background var(--transition-fast);
}

.stat-badge:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.06);
}

.stat-badge.pending .stat-number { color: var(--accent-warning); }
.stat-badge.completed .stat-number { color: var(--accent-success); }
.stat-badge.total .stat-number { color: var(--accent-info); }

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}

.stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
}

/* ==========================================
   MAIN CONTENT
   ========================================== */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Views */
.app-view {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.app-view.active {
    display: block;
}

/* ==========================================
   FORM SECTION
   ========================================== */
.form-section {
    overflow: hidden;
}

.form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    cursor: pointer;
    user-select: none;
    transition: background var(--transition-fast);
}

.form-header:hover {
    background: rgba(255, 255, 255, 0.03);
}

.form-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--accent-primary);
}

.toggle-icon {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: transform var(--transition-smooth);
}

.toggle-icon.collapsed {
    transform: rotate(-90deg);
}

.route-form {
    padding: 0 24px 24px;
    transition: max-height var(--transition-smooth), opacity var(--transition-base), padding var(--transition-base);
    max-height: 400px;
    opacity: 1;
    overflow: hidden;
}

.route-form.collapsed {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.form-group input,
.form-group select {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    outline: none;
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--accent-primary);
    background: rgba(var(--accent-primary-rgb), 0.06);
    box-shadow: 0 0 0 3px rgba(var(--accent-primary-rgb), 0.1);
}

.form-group select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.form-actions {
    display: flex;
    gap: 10px;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    border: none;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    outline: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-secondary), #7c3aed);
    color: white;
    box-shadow: 0 4px 15px rgba(var(--accent-primary-rgb), 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(var(--accent-primary-rgb), 0.45);
}

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

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    box-shadow: 0 4px 15px rgba(var(--accent-danger-rgb), 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(var(--accent-danger-rgb), 0.45);
}

.btn-icon {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-icon.edit:hover { color: var(--accent-primary); border-color: rgba(var(--accent-primary-rgb), 0.3); }
.btn-icon.delete:hover { color: var(--accent-danger); border-color: rgba(var(--accent-danger-rgb), 0.3); }

/* ==========================================
   FILTERS
   ========================================== */
.filters-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-tabs {
    display: flex;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.filter-tab {
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.filter-tab:not(:last-child) {
    border-right: 1px solid var(--border-color);
}

.filter-tab:hover {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
}

.filter-tab.active {
    color: var(--accent-primary);
    background: rgba(var(--accent-primary-rgb), 0.1);
}

.filter-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-primary);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    transition: all var(--transition-fast);
    min-width: 220px;
}

.search-box:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(var(--accent-primary-rgb), 0.1);
}

.search-box svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.search-box input {
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.85rem;
    outline: none;
    width: 100%;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

/* ==========================================
   TABLE
   ========================================== */
.table-section {
    overflow: hidden;
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead th {
    padding: 14px 16px;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    white-space: nowrap;
    user-select: none;
}

thead th.sortable {
    cursor: pointer;
    transition: color var(--transition-fast);
}

thead th.sortable:hover {
    color: var(--accent-primary);
}

thead th.sortable .sort-icon {
    font-size: 0.7rem;
    opacity: 0.4;
    transition: opacity var(--transition-fast);
}

thead th.sortable:hover .sort-icon {
    opacity: 1;
}

tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background var(--transition-fast);
    animation: rowSlideIn 0.3s ease forwards;
}

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

tbody tr:hover {
    background: rgba(var(--accent-primary-rgb), 0.04);
}

tbody tr.completed-row {
    opacity: 0.55;
}

tbody tr.completed-row:hover {
    opacity: 0.8;
}

tbody td {
    padding: 12px 16px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

tbody td:first-child {
    color: var(--text-primary);
    font-weight: 600;
}

.phone-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-family: monospace;
    font-size: 1.1em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(var(--accent-primary-rgb), 0.05);
}

.phone-link:hover {
    background: rgba(var(--accent-primary-rgb), 0.15);
    transform: scale(1.05);
}

/* Tab Icon Animations */
@keyframes ring {
  0%, 100% { transform: rotate(0); }
  5% { transform: rotate(15deg) scale(1.1); }
  10% { transform: rotate(-10deg) scale(1.1); }
  15% { transform: rotate(15deg) scale(1.1); }
  20% { transform: rotate(-10deg) scale(1.1); }
  25% { transform: rotate(0) scale(1); }
}

.nav-btn[data-target="calls-view"].active svg {
    animation: ring 3s ease infinite;
    transform-origin: center;
}

.nav-btn[data-target="routes-view"].active svg {
    animation: pulseLoader 2s ease infinite;
}

/* Status badges inline */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.yes {
    background: rgba(var(--accent-success-rgb), 0.12);
    color: var(--accent-success);
    border: 1px solid rgba(var(--accent-success-rgb), 0.2);
}

.status-badge.no {
    background: rgba(var(--accent-danger-rgb), 0.08);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Toggle switch for "Εκτελέστηκε" */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    left: 2px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--text-muted);
    transition: all var(--transition-base);
}

.toggle-switch input:checked + .toggle-slider {
    background: rgba(var(--accent-success-rgb), 0.2);
    border-color: rgba(var(--accent-success-rgb), 0.4);
}

.toggle-switch input:checked + .toggle-slider::before {
    left: calc(100% - 20px);
    background: var(--accent-success);
    box-shadow: 0 0 10px rgba(var(--accent-success-rgb), 0.4);
}

.actions-cell {
    display: flex;
    gap: 4px;
}

/* ==========================================
   EMPTY STATE
   ========================================== */
.empty-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    text-align: center;
    color: var(--text-muted);
}

.empty-state.visible {
    display: flex;
}

.empty-state svg {
    opacity: 0.2;
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.empty-state p {
    font-size: 0.85rem;
}

/* ==========================================
   MODAL
   ========================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: fadeIn 0.2s ease;
}

.modal-overlay.visible {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal {
    width: 100%;
    max-width: 400px;
    padding: 32px;
    text-align: center;
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.modal-icon.delete-icon {
    background: rgba(var(--accent-danger-rgb), 0.12);
    color: var(--accent-danger);
}

.modal h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.modal-actions .btn {
    min-width: 110px;
}

/* ==========================================
   TOAST
   ========================================== */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.88rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.toast.visible {
    transform: translateX(-50%) translateY(0);
}

/* ==========================================
   PAGE LOADER
   ========================================== */
#page-loader {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-scene {
    position: relative;
    width: 240px;
    height: 80px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 24px;
    overflow: hidden;
}

.loader-truck {
    position: absolute;
    bottom: 0;
    right: 10px;
    color: var(--text-secondary);
}

.loader-person {
    position: absolute;
    bottom: 0;
    left: 0;
    color: var(--accent-primary);
    animation: walkForward 2s linear infinite;
}

.leg-left {
    animation: walkLeg 0.5s ease-in-out infinite alternate;
    transform-origin: 12px 14px;
}

.leg-right {
    animation: walkLeg 0.5s ease-in-out infinite alternate-reverse;
    transform-origin: 12px 14px;
}

@keyframes walkForward {
    0% { transform: translateX(-50px); opacity: 1; }
    85% { transform: translateX(140px); opacity: 1; }
    100% { transform: translateX(160px); opacity: 0; }
}

@keyframes walkLeg {
    0% { transform: rotate(-25deg); }
    100% { transform: rotate(25deg); }
}

.loader-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 3px;
    animation: pulseLoader 1.5s ease-in-out infinite;
}

@keyframes pulseLoader {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* Scene: Calls specific animations */
.loader-runner {
    color: var(--accent-primary);
    animation: runForward 1.2s linear infinite;
}

.loader-desk-phone {
    color: var(--text-secondary);
    animation: shakePhone 0.5s infinite alternate;
}

.ringing-wave1 {
    animation: fadePulse 0.5s infinite;
}

.ringing-wave2 {
    animation: fadePulse 0.5s infinite 0.25s;
}

.run-leg-left {
    animation: runLeg 0.4s ease-in-out infinite alternate;
    transform-origin: 10px 14px;
}

.run-leg-right {
    animation: runLeg 0.4s ease-in-out infinite alternate-reverse;
    transform-origin: 10px 14px;
}

.run-arm-left {
    animation: runArm 0.4s ease-in-out infinite alternate;
    transform-origin: 12px 9px;
}

.run-arm-right {
    animation: runArm 0.4s ease-in-out infinite alternate-reverse;
    transform-origin: 12px 9px;
}

@keyframes runForward {
    0% { transform: translateX(-40px); opacity: 1; }
    80% { transform: translateX(150px); opacity: 1; }
    100% { transform: translateX(180px); opacity: 0; }
}

@keyframes shakePhone {
    0% { transform: rotate(-5deg); }
    100% { transform: rotate(5deg); }
}

@keyframes fadePulse {
    0%, 100% { opacity: 0; transform: translateX(-2px); }
    50% { opacity: 1; transform: translateX(2px); }
}

@keyframes runLeg {
    0% { transform: rotate(-30deg); }
    100% { transform: rotate(40deg); }
}

@keyframes runArm {
    0% { transform: rotate(-40deg); }
    100% { transform: rotate(40deg); }
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-stats {
        width: 100%;
        justify-content: space-between;
    }

    .stat-badge {
        flex: 1;
        min-width: unset;
    }

    .main-content {
        padding: 16px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .filters-section {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        min-width: unset;
    }

    .filter-tabs {
        width: 100%;
    }

    .filter-tab {
        flex: 1;
        text-align: center;
    }

    table {
        font-size: 0.8rem;
    }

    thead th, tbody td {
        padding: 10px 8px;
    }

    .logo-area h1 {
        font-size: 1.15rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 12px 16px;
    }

    .stat-number {
        font-size: 1.2rem;
    }

    .form-header {
        padding: 14px 16px;
    }

    .route-form {
        padding: 0 16px 16px;
    }
}

/* ==========================================
   SCROLLBAR
   ========================================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ==========================================
   PRINT STYLES
   ========================================== */
@media print {
    .bg-orbs, .form-section, .filters-section, .actions-cell, .toast, .modal-overlay {
        display: none !important;
    }

    .header {
        position: relative;
        background: white;
        border-bottom: 2px solid #333;
        color: #000;
    }

    .logo-area h1 {
        background: none;
        -webkit-text-fill-color: #000;
        color: #000;
    }

    body {
        background: white;
        color: #000;
    }

    .glass-card {
        background: white;
        border: 1px solid #ddd;
        box-shadow: none;
    }

    tbody td, thead th {
        color: #333;
    }

    .toggle-switch {
        display: none;
    }

    tbody tr.completed-row td::after {
        content: '✓';
        color: green;
        font-weight: bold;
    }
}
