/* © 2025 VEX LLC. All rights reserved. */
/* ===================================================================
   DESKTOP.CSS - Desktop Sidebar, Header & Responsive Overrides
   =================================================================== */

        /* ═══════════════════════════════════════════════════════════════════
           RESPONSIVE LAYOUT - DESKTOP SIDEBAR & HEADER
           ═══════════════════════════════════════════════════════════════════ */

        :root {
            --sidebar-width: 260px;
        }

        /* Desktop Sidebar - Hidden on Mobile */
        .desktop-sidebar {
            display: none;
            flex-direction: column;
            width: var(--sidebar-width);
            height: 100vh;
            position: fixed;
            left: 0;
            top: 0;
            background: white;
            border-right: 1px solid var(--border);
            z-index: 150;
            transition: transform 0.3s ease;
        }

        .sidebar-logo {
            padding: 24px 20px;
            display: flex;
            align-items: center;
            gap: 12px;
            border-bottom: 1px solid var(--border);
        }

        .sidebar-logo-text {
            font-size: 22px;
            font-weight: 800;
            color: var(--primary);
        }

        .sidebar-nav {
            flex: 1;
            padding: 16px 12px;
            overflow-y: auto;
        }

        .sidebar-nav-item {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 14px 16px;
            border-radius: 12px;
            color: var(--text-light);
            cursor: pointer;
            transition: all 0.2s;
            margin-bottom: 4px;
            font-size: 15px;
            font-weight: 500;
        }

        .sidebar-nav-item:hover {
            background: var(--primary-light);
            color: var(--text);
        }

        .sidebar-nav-item.active {
            background: var(--primary);
            color: white;
        }

        .sidebar-nav-item.active svg {
            stroke: white;
        }

        .sidebar-nav-item svg {
            width: 22px;
            height: 22px;
            stroke: currentColor;
            stroke-width: 2;
            fill: none;
        }

        .sidebar-nav-divider {
            height: 1px;
            background: var(--border);
            margin: 16px 0;
        }

        .sidebar-sos {
            padding: 16px;
            border-top: 1px solid var(--border);
        }

        .sidebar-sos-btn {
            width: 100%;
            padding: 14px;
            background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
            border: none;
            border-radius: 12px;
            color: white;
            font-size: 15px;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            cursor: pointer;
            box-shadow: 0 4px 12px rgba(239,68,68,0.3);
            transition: all 0.2s;
        }

        .sidebar-sos-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(239,68,68,0.4);
        }

        /* Desktop Header - Hidden on Mobile */
        .desktop-header {
            display: none;
            position: fixed;
            top: 0;
            right: 0;
            left: 0;
            height: 64px;
            background: white;
            border-bottom: 1px solid var(--border);
            z-index: 140;
            padding: 0 24px;
            align-items: center;
            justify-content: flex-end;
            gap: 16px;
        }

        .desktop-header-search {
            flex: 1;
            max-width: 400px;
            margin-right: auto;
            margin-left: 24px;
        }

        .desktop-header-search input {
            width: 100%;
            padding: 10px 16px 10px 44px;
            border: 1px solid var(--border);
            border-radius: 10px;
            font-size: 14px;
            background: #F9FAFB;
            transition: all 0.2s;
        }

        .desktop-header-search input:focus {
            outline: none;
            border-color: var(--primary);
            background: white;
            box-shadow: 0 0 0 3px rgba(75,123,245,0.1);
        }

        .desktop-header-search-icon {
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-light);
        }

        .desktop-header-actions {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .desktop-header-btn {
            width: 40px;
            height: 40px;
            border-radius: 10px;
            background: transparent;
            border: 1px solid var(--border);
            color: var(--text);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            position: relative;
        }

        .desktop-header-btn:hover {
            background: var(--primary-light);
            border-color: var(--primary);
        }

        .desktop-header-btn .badge {
            position: absolute;
            top: -4px;
            right: -4px;
            width: 18px;
            height: 18px;
            background: var(--danger);
            color: white;
            border-radius: 9px;
            font-size: 10px;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* User Dropdown */
        .user-dropdown-container {
            position: relative;
        }

        .user-dropdown-trigger {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 6px 12px 6px 6px;
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.2s;
            border: 1px solid transparent;
        }

        .user-dropdown-trigger:hover {
            background: var(--primary-light);
            border-color: var(--border);
        }

        .user-dropdown-avatar {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            overflow: hidden;
        }

        .user-dropdown-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .user-dropdown-info {
            text-align: left;
        }

        .user-dropdown-name {
            font-size: 14px;
            font-weight: 600;
            color: var(--text);
        }

        .user-dropdown-email {
            font-size: 11px;
            color: var(--text-light);
        }

        .user-dropdown-arrow {
            color: var(--text-light);
            transition: transform 0.2s;
        }

        .user-dropdown-trigger.open .user-dropdown-arrow {
            transform: rotate(180deg);
        }

        .user-dropdown-menu {
            position: absolute;
            top: calc(100% + 8px);
            right: 0;
            min-width: 220px;
            background: white;
            border-radius: 12px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.15);
            border: 1px solid var(--border);
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.2s ease;
            z-index: 200;
            overflow: hidden;
        }

        .user-dropdown-menu.open {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .user-dropdown-header {
            padding: 16px;
            border-bottom: 1px solid var(--border);
            background: #F9FAFB;
        }

        .user-dropdown-header-name {
            font-size: 15px;
            font-weight: 600;
            color: var(--text);
        }

        .user-dropdown-header-email {
            font-size: 12px;
            color: var(--text-light);
            margin-top: 2px;
        }

        .user-dropdown-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 16px;
            color: var(--text);
            cursor: pointer;
            transition: all 0.2s;
            font-size: 14px;
        }

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

        .user-dropdown-item svg {
            width: 18px;
            height: 18px;
            stroke: var(--text-light);
        }

        .user-dropdown-item.danger {
            color: var(--danger);
            border-top: 1px solid var(--border);
        }

        .user-dropdown-item.danger svg {
            stroke: var(--danger);
        }

        /* ═══════════════════════════════════════════════════════════════════
           DESKTOP MEDIA QUERIES (>= 1024px)
           ═══════════════════════════════════════════════════════════════════ */

        @media (min-width: 1024px) {
            /* Show desktop elements */
            .desktop-sidebar {
                display: flex;
            }

            .desktop-header {
                display: flex;
                left: var(--sidebar-width);
            }

            /* Hide mobile elements */
            .bottom-nav {
                display: none !important;
            }

            .header {
                display: none !important;
            }

            .fab-container {
                display: none !important;
            }

            /* Adjust body padding */
            body {
                padding-bottom: 0;
            }

            /* Main content offset */
            .main-content {
                margin-left: var(--sidebar-width);
                padding-top: 64px;
            }

            /* Adjust screen styles for desktop */
            .screen {
                min-height: calc(100vh - 64px);
                max-width: 1200px;
                margin: 0 auto;
                padding: 24px;
            }

            /* Hero banner wider on desktop */
            .hero-banner {
                margin: 0 0 24px 0;
                min-height: 220px;
            }

            /* Quick grid with more columns */
            .quick-grid {
                grid-template-columns: repeat(5, 1fr);
                padding: 0;
                gap: 20px;
            }

            /* Section headers */
            .section-header {
                padding: 0;
                margin: 32px 0 20px;
            }

            /* Section padding */
            .section {
                padding: 0 0 24px;
            }

            /* Pets carousel */
            .pets-carousel {
                gap: 16px;
            }

            .pet-card {
                flex: 0 0 140px;
            }

            /* SOS section */
            .sos-section {
                padding: 0;
                margin-bottom: 24px;
            }

            /* Chat wrapper full height */
            .chat-wrapper {
                height: calc(100vh - 64px - 48px);
                border-radius: 16px;
                overflow: hidden;
                border: 1px solid var(--border);
            }

            /* Cards and modals */
            .modal-content {
                border-radius: 24px;
                max-width: 480px;
                margin: auto;
            }

            .modal {
                align-items: center;
                justify-content: center;
            }

            /* Vet cards in grid */
            .vet-list-container {
                display: grid;
                grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
                gap: 16px;
            }

            .vet-card {
                margin-bottom: 0;
            }
        }

        /* Large Desktop (>= 1440px) */
        @media (min-width: 1440px) {
            :root {
                --sidebar-width: 280px;
            }

            .screen {
                max-width: 1400px;
            }

            .quick-grid {
                grid-template-columns: repeat(6, 1fr);
            }
        }
