@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

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

        html, body {
            overflow: hidden !important;
            width: 100vw;
            height: 100vh;
        }

        body {
            position: relative;
            font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            min-height: 100vh;
            /* Reduce the color overlay by lowering the gradient opacity and blend mode */
            background: 
                linear-gradient(135deg, rgba(102,126,234,0.55) 0%, rgba(118,75,162,0.55) 100%),
                url("../images/image1\ \(3\).png") center center / cover no-repeat fixed;
            background-blend-mode: overlay;
        }

        /* Glassmorphism overlay */
        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh; 
            background: rgba(255,255,255,0.15);
            -webkit-backdrop-filter: blur(12px);
            backdrop-filter: blur(12px);
            z-index: 0;
            pointer-events: none;
        }

        @media (max-width: 768px) {
            body::before {
                background: rgba(255,255,255,0.25);
                -webkit-backdrop-filter: blur(8px);
                backdrop-filter: blur(8px);
            }
        }

        body > * {
            position: relative;
            z-index: 2;
        }

        /* Welcome Text */
        .welcome-text {
            position: absolute;
            top: 20%;
            left: 0;
            width: 100%;
            text-align: center;
            color: white;
            padding: 0 1rem;
            z-index: 1;
        }

        .welcome-text h1 {
            font-size: 2.2rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }

        .welcome-text p {
            font-size: 1.2rem;
            font-weight: 400;
            opacity: 0.9;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
        }

        /* Navbar */
        .navbar {
            position: fixed;
            top: 0;
            width: 100%;
            padding: 1rem 2rem;
            background: rgba(21, 52, 98, 1.0);
            -webkit-backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.2);
            z-index: 1000;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        /* Logo Styles */
        .logo {
            height: 60px;
            display: flex;
            align-items: center;
            padding: 5px 0;
        }
        
        .logo-link {
            display: block;
            height: 100%;
            transition: opacity 0.2s ease;
        }
        
        .logo-link:hover {
            opacity: 0.9;
        }

        .main-logo {
            height: 100%;
            width: auto;
            max-height: 50px;
            object-fit: contain;
        }

        /* Chat Logo */
        .chat-logo {
            height: 40px;
            width: auto;
            margin-right: 12px;
            border-radius: 4px;
        }

        /* Login Page Logo */
        .logo-container .main-logo {
            font-size: 2.5rem;
            font-weight: 700;
            color: #1a365d;
            margin-bottom: 0.5rem;
            letter-spacing: 1px;
        }

        .brand-tagline {
            font-size: 1.1rem;
            color: #4a5568;
            margin-bottom: 1.5rem;
            font-style: italic;
        }

        .menu-btn {
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.2);
            border: none;
            border-radius: 8px;
            cursor: pointer;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 4px;
            transition: all 0.3s ease;
            position: relative;
            z-index: 10000;
        }

        .menu-btn:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: scale(1.05);
        }

        .menu-line {
            width: 20px;
            height: 2px;
            background: white;
            border-radius: 1px;
            transition: all 0.3s ease;
        }

        /* Menu Button Animation */
        .menu-btn.active .menu-line:nth-child(1) {
            transform: rotate(45deg) translate(6px, 6px);
        }

        .menu-btn.active .menu-line:nth-child(2) {
            opacity: 0;
        }

        .menu-btn.active .menu-line:nth-child(3) {
            transform: rotate(-45deg) translate(6px, -6px);
        }

        /* Welcome Text */
        .welcome-text {
            position: absolute;
            top: 25%;
            left: 50%;
            transform: translate(-50%, -50%);
            text-align: center;
            color: white;
            z-index: 100;
            pointer-events: none;
            padding: 0 1rem;
            width: 100%;
        }

        .welcome-text h1 {
            font-size: 2.2rem; 
            font-weight: 700;
            margin-bottom: 1rem;
            color: rgba(21, 52, 98, 1.0);
            letter-spacing: 1px;
            opacity: 0;
            animation: fadeInUp 1s ease forwards 0.5s;
            word-wrap: break-word;
            -webkit-hyphens: auto;
            hyphens: auto;
        }

        .welcome-text p {
            font-size: 1.2rem;
            color: rgba(213, 143, 105, 1);
            opacity: 0;
            animation: fadeInUp 1s ease forwards 0.8s;
        }

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

        /* Card Container */
        .cards-container {
            position: absolute;
            top: 65%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 100vw;
            height: 300px;
            perspective: 1000px;
        }

        .cards-track {
            position: relative;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .card {
            position: absolute;
            width: 260px;
            height: 280px;
            background: rgba(21, 52, 98, 0.9); 
            -webkit-backdrop-filter: blur(20px);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 20px;
            padding: 1.5rem;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            color: #fff;
            cursor: pointer;
            transition: all 0.45s cubic-bezier(0.77, 0, 0.175, 1);
            will-change: transform;
            backface-visibility: hidden;
        }

        .card:hover {
            transform: scale(1.05);
        }

        .card.active {
            transform: scale(1.15) translateZ(50px);
            z-index: 10;
            box-shadow:
                0 0 8px 2px rgba(255,255,255,0.85),
                0 0 16px 6px rgba(213,143,105,0.55),
                0 10px 20px rgba(0,0,0,0.12);
            opacity: 1;
        }

        @media (max-width: 768px) {
            .card.active {
                background: rgba(21, 52, 98, 1); /* fully opaque */
                opacity: 1;
            }
        }
        @media (max-width: 480px) {
            .card.active {
                background: rgba(21, 52, 98, 1); /* fully opaque */
                opacity: 1;
            }
        }

        .card.prev {
            transform: translateX(-320px) scale(0.85) rotateY(25deg);
            opacity: 0.7;
            z-index: 5;
            box-shadow: 0 2px 12px rgba(21,52,98,0.08);
        }

        .card.next {
            transform: translateX(320px) scale(0.85) rotateY(-25deg);
            opacity: 0.7;
            z-index: 5;
            box-shadow: 0 2px 12px rgba(21,52,98,0.08);
        }

        .card.hidden-left {
            transform: translateX(-570px) scale(0.7) rotateY(45deg);
            opacity: 0.3;
            z-index: 1;
            box-shadow: none;
        }

        .card.hidden-right {
            transform: translateX(570px) scale(0.7) rotateY(-45deg);
            opacity: 0.3;
            z-index: 1;
            box-shadow: none;
        }

        .card-icon {
            font-size: 2.5rem;
            margin-bottom: 0.8rem;
            opacity: 0.9;
            display: flex;
            justify-content: center;
            align-items: center;
            transition: transform 0.3s ease;
        }
        
        .card:hover .card-icon {
            transform: scale(1.1);
        }
        
        .card.active .card-icon {
            transform: scale(1.15);
        }

        .card h3 {
            font-size: 1.3rem;
            margin-bottom: 0.8rem;
            font-weight: 600;
        }

        .card p {
            font-size: 0.85rem;
            opacity: 0.8;
            line-height: 1.5;
        }

        /* Navigation Arrows */
        .nav-arrows {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            display: flex;
            align-items: center;
            justify-content: center;
            width: 60px;
            height: 60px;
            background: rgba(213, 143, 105, 1);
            -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
            border: 2px solid rgba(255, 255, 255, 1);
            border-radius: 50%;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
            transition: all 0.3s ease;
            z-index: 100;
        }

        .nav-arrows:hover {
            background: rgba(223, 163, 125, 1.0);
            transform: translateY(-50%) scale(1.1);
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        }

        .nav-arrows.left {
            left: 5%;
        }

        .nav-arrows.right {
            right: 5%;
        }

        /* Modal Styles */
        .modal {
            display: none;
            position: fixed;
            z-index: 2000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.6);
            -webkit-backdrop-filter: blur(5px);
            backdrop-filter: blur(5px);
            animation: fadeIn 0.3s ease;
        }

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

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

        @keyframes slideIn {
            from { 
                opacity: 0;
                transform: scale(0.8) translateY(-50px);
            }
            to { 
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }

        .modal-content {
            background: rgba(255, 255, 255, 0.95);
            -webkit-backdrop-filter: blur(20px);
            backdrop-filter: blur(20px);
            margin: 2rem;
            padding: 2rem;
            border-radius: 20px;
            width: 100%;
            max-width: 500px;
            max-height: 80vh;
            overflow-y: auto;
            box-shadow: 0 20px 40px rgba(0,0,0,0.2);
            animation: slideIn 0.4s ease;
            position: relative;
            scrollbar-width: none; /* Firefox */
            -ms-overflow-style: none; /* IE and Edge */
            display: flex;
            flex-direction: column;
            box-sizing: border-box;
        }

        @media (max-width: 600px) {
            .modal-content {
                margin: 0.3rem;
                padding: 0.5rem;
                max-width: 99vw;
                max-height: 96vh;
                border-radius: 10px;
                font-size: 0.98rem;
                box-sizing: border-box;
            }
            .modal {
                align-items: flex-start !important;
                justify-content: center !important;
                overflow-y: auto;
                padding-top: 2vh;
                padding-bottom: 2vh;
            }
            .modal-header {
                flex-direction: column;
                align-items: flex-start;
                padding-right: 0;
            }
            .modal-footer {
                flex-direction: column;
                gap: 0.5rem;
            }
            .form-group, .modal-body {
                width: 100%;
                min-width: 0;
                box-sizing: border-box;
            }
            .checkbox-group label {
                display: block;
                margin-bottom: 0.5rem;
            }
        }
        }
        
        /* Hide scrollbar for Chrome, Safari and Opera */
        .modal-content::-webkit-scrollbar {
            display: none;
        }

        .close {
            position: absolute;
            right: 1rem;
            top: 1rem;
            color: #fff;
            font-size: 2rem;
            font-weight: bold;
            cursor: pointer;
            transition: color 0.3s ease;
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: rgba(21, 52, 98, 1.0);
            line-height: 1;
            padding: 0;
        }

        .close:hover {
            color: #333;
            background: rgba(0, 0, 0, 0.2);
        }

        .modal-header {
            display: flex;
            align-items: center;
            margin-bottom: 1.5rem;
            padding-right: 2rem;
        }

        .modal-icon {
            font-size: 2.5rem;
            margin-right: 1.5rem;
            color: #667eea;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .modal h2 {
            color: #333;
            font-size: 1.5rem;
            font-weight: 600;
        }

        .form-group {
            margin-bottom: 1.5rem;
            position: relative;
        }

        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            color: #333;
            font-weight: 500;
            font-size: 0.9rem;
        }

        .form-group input,
        .form-group select {
            width: 100%;
            padding: 1rem 1.2rem;
            border: 2px solid #e1e5e9;
            border-radius: 12px;
            font-size: 1rem;
            font-family: 'Inter', sans-serif;
            transition: all 0.3s ease;
            background: rgba(255, 255, 255, 0.95);
            height: 52px;
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
        }

        /* Custom dropdown arrow */
        .form-group select {
            padding-bottom: 1.5px;
            padding-top: revert-layer;
            margin-bottom: 1.5rem;
            background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
            background-repeat: no-repeat;
            background-position: right 1rem center;
            background-size: 1.2em;
            padding-right: 2.5rem;
        }

        .form-group input:focus,
        .form-group select:focus {
            outline: none;
            border-color: #153462;
            box-shadow: 0 0 0 3px rgba(21, 52, 98, 0.1);
        }

        /* Style for email input */
        .form-group input[type="email"] {
            background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'%3e%3c/path%3e%3cpolyline points='22,6 12,13 2,6'%3e%3c/polyline%3e%3c/svg%3e");
            background-repeat: no-repeat;
            background-position: right 1rem center;
            background-size: 1.2em;
            padding-right: 2.5rem;
        }

        /* Style for tel input */
        /* Form Textarea Styles */
        .form-group textarea {
            width: 100%;
            min-height: 100px;
            padding: 12px 16px;
            border: 1px solid #ddd;
            border-radius: 8px;
            font-family: 'Inter', sans-serif;
            font-size: 14px;
            line-height: 1.5;
            color: #333;
            background-color: #f9f9f9;
            transition: all 0.3s ease;
            resize: vertical;
            box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
        }

        .form-group textarea:focus {
            border-color: #4a90e2;
            box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
            background-color: #fff;
            outline: none;
        }

        .form-group textarea::placeholder {
            color: #999;
            font-style: italic;
        }

        .form-group .hint-text {
            display: block;
            font-size: 12px;
            color: #666;
            margin-top: 4px;
            font-style: italic;
        }

        /* Specific styles for delivery form */
        #delivery-description {
            min-height: 120px;
            background-color: #f5f9ff;
            border-left: 3px solid #4a90e2;
        }

        #delivery-notes {
            min-height: 80px;
            background-color: #f9f9f9;
            border-left: 3px solid #e0e0e0;
        }

        /* Appointment Purpose Textarea Styles */
        .form-group.appointment-purpose-group {
            margin-bottom: 1.5rem;
        }
        
        .form-group.appointment-purpose-group label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 500;
            color: #333;
        }
        
        #appointment-purpose {
            width: 100%;
            height: 150px; /* Fixed height */
            padding: 12px 16px;
            border: 1px solid #ddd;
            border-radius: 8px;
            font-family: inherit;
            font-size: 14px;
            line-height: 1.5;
            color: #333;
            background-color: #f9f9f9;
            transition: border-color 0.3s, box-shadow 0.3s;
            resize: none; /* Disable resizing */
            display: block;
        }
        
        #appointment-purpose:focus {
            border-color: #4a90e2;
            box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
            background-color: #fff;
            outline: none;
        }
        
        .hint-text {
            font-size: 12px;
            color: #666;
            margin-top: 4px;
        }

        .form-group input[type="tel"] {
            background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'%3e%3c/path%3e%3c/svg%3e");
            background-repeat: no-repeat;
            background-position: right 1rem center;
            background-size: 1.2em;
            padding-right: 2.5rem;
        }

        /* Remove number input arrows */
        .form-group input[type="number"]::-webkit-outer-spin-button,
        .form-group input[type="number"]::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

        .form-group input[type="number"] {
            -webkit-appearance: textfield;
            -moz-appearance: textfield;
            appearance: textfield;
        }

        /* Form row for future use */
        .form-row {
            display: flex;
            gap: 1.5rem;
            margin-bottom: 1.5rem;
        }

        .form-row .form-group {
            flex: 1;
            margin-bottom: 0;
        }

        .btn-group {
            display: flex;
            gap: 1rem;
            margin-top: 2rem;
        }

        .btn {
            flex: 1;
            padding: 0.8rem 1.5rem;
            border: none;
            border-radius: 10px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .btn-primary {
            background: rgba(21, 52, 98, 1.0);
            color: white;
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
        }

        .btn-secondary {
            background: #f8f9fa;
            color: #666;
            border: 2px solid #e1e5e9;
        }

        .btn-secondary:hover {
            background: #e9ecef;
            border-color: #dee2e6;
        }

        .success-message {
            display: none;
            text-align: center;
            padding: 2rem;
            color: #28a745;
        }

        .success-message .success-icon {
            font-size: 3rem;
            margin-bottom: 1rem;
        }

        /* Popup Menu Styles */
        .popup-menu {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0.95);
            background: transparent;
            -webkit-backdrop-filter: none;
            backdrop-filter: none;
            border-radius: 12px;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            min-width: 220px;
            z-index: 9999;
            display: flex;
            gap: 24px;
            justify-content: center;
            align-items: flex-start;
            padding: 32px 16px;
        }

        .popup-menu.active {
            opacity: 1;
            visibility: visible;
            transform: translate(-50%, -50%) scale(1);
        }

        .popup-overlay {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(255, 255, 255, 0.3); /* More white and transparent */
            -webkit-backdrop-filter: blur(6px);
            backdrop-filter: blur(6px);
            z-index: 9998;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }

        .popup-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .menu-box {
            background: rgba(21, 52, 98, 0.9);
            border-radius: 12px;
            box-shadow: 0 2px 12px rgba(0,0,0,0.08);
            padding: 24px 16px;
            text-align: center;
            cursor: pointer;
            min-width: 180px;
            flex: 1;
            transition: transform 0.3s ease;
            text-decoration: none;
            color: inherit;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .menu-box:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 20px rgba(0,0,0,0.15);
            text-decoration: none;
        }

        .menu-icon {
            font-size: 1.5rem;
            margin-bottom: 12px;
            display: flex;
            justify-content: center;
            align-items: center;
            width: 3rem;
            height: 3rem;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.2);
        }
        
        .menu-icon i {
            font-size: 1.25rem;
            color: white;
        }

        .menu-label {
            font-weight: 600;
            margin-top: 12px;
            color: white;
            text-shadow: 0 1px 2px rgba(0,0,0,0.2);
        }

        /* Special handling for QR modal */
        #modal-scan .modal-content {
            padding: 0;
            background: rgba(213, 143, 105, 0.85);
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 60vh;
        }

        #modal-scan .modal-content::before {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 2rem;
            color: white;
            text-align: center;
        }

        @media (max-width: 768px) {
            #modal-scan .modal-content::before {
                font-size: 1.5rem;
            }
        }

        /* Responsive Design */
        
        /* Tablet Styles (768px - 1024px) */
        @media (max-width: 1024px) and (min-width: 769px) {
            .welcome-text {
                top: 22%;
            }
            
            .welcome-text h1 {
                font-size: 2rem;
            }
            
            .welcome-text p {
                font-size: 1.1rem;
            }
            
            .cards-container {
                top: 62%;
            }
            
            .card {
                width: 240px;
                height: 260px;
                padding: 1.3rem;
            }
            
            .card.prev {
                transform: translateX(-250px) scale(0.85) rotateY(25deg);
            }
            
            .card.next {
                transform: translateX(250px) scale(0.85) rotateY(-25deg);
            }
            
            .card.hidden-left {
                transform: translateX(-500px) scale(0.7) rotateY(45deg);
            }
            
            .card.hidden-right {
                transform: translateX(500px) scale(0.7) rotateY(-45deg);
            }
            
            .nav-arrows {
                width: 55px;
                height: 55px;
                font-size: 1.3rem;
            }
            
            .nav-arrows.left {
                left: 3%;
            }

            .nav-arrows.right {
                right: 3%;
            }

            .popup-menu {
                gap: 16px;
                padding: 24px 12px;
            }
            
            .menu-box {
                min-width: 150px;
                padding: 20px 12px;
            }
            
            .menu-icon {
                font-size: 2.5rem;
            }
            
            .menu-label {
                font-size: 0.9rem;
                margin-top: 10px;
            }
        }

        /* Mobile Landscape (481px - 768px) */
        @media (max-width: 768px) and (min-width: 481px) {
            .navbar {
                padding: 0.8rem 1.5rem;
            }
            
            .main-logo {
                height: 40px;
                max-width: 110px;
            }
            
            .welcome-text {
                top: 20%;
                padding: 0 2rem;
            }
            
            .welcome-text h1 {
                font-size: 1.8rem;
                line-height: 1.2;
            }
            
            .welcome-text p {
                font-size: 1rem;
            }
            
            .cards-container {
                top: 58%;
                height: 260px;
            }
            
            .card {
                width: 200px;
                height: 220px;
                padding: 1.2rem;
            }
            
            .card h3 {
                font-size: 1.1rem;
            }
            
            .card p {
                font-size: 0.8rem;
            }
            
            .card-icon {
                font-size: 2rem;
            }
            
            .card.prev {
                transform: translateX(-220px) scale(0.8) rotateY(25deg);
            }
            
            .card.next {
                transform: translateX(220px) scale(0.8) rotateY(-25deg);
            }
            
            .card.hidden-left {
                transform: translateX(-440px) scale(0.65) rotateY(45deg);
            }
            
            .card.hidden-right {
                transform: translateX(440px) scale(0.65) rotateY(-45deg);
            }
            
            .nav-arrows {
                width: 45px;
                height: 45px;
                font-size: 1.1rem;
            }
            
            .nav-arrows.left {
                left: 2%;
            }

            .nav-arrows.right {
                right: 2%;
            }

            .popup-menu {
                gap: 12px;
                padding: 16px 8px;
                max-width: 90vw;
            }
            
            .menu-box {
                min-width: 120px;
                padding: 16px 8px;
            }
            
            .menu-icon {
                font-size: 2rem;
            }
            
            .menu-label {
                font-size: 0.8rem;
                margin-top: 8px;
            }
        }

        /* Mobile Portrait (max-width: 480px) */
        @media (max-width: 480px) {
            .navbar {
                padding: 0.7rem 1rem;
            }
            
            .main-logo {
                height: 35px;
                max-width: 80px;
            }
            
            .menu-btn {
                width: 35px;
                height: 35px;
            }
            
            .menu-line {
                width: 18px;
            }
            
            .welcome-text {
                top: 20%;
                padding: 0 1rem;
            }
            
            .welcome-text h1 {
                font-size: 1.4rem;
                line-height: 1.3;
                word-wrap: break-word;
                -webkit-hyphens: auto;
                hyphens: auto;
            }
            
            .welcome-text p {
                font-size: 0.9rem;
            }
            
            .cards-container {
                top: 55%;
                height: 220px;
            }
            
            .card {
                width: 170px;
                height: 190px;
                padding: 1rem;
            }
            
            .card h3 {
                font-size: 1rem;
                margin-bottom: 0.5rem;
            }
            
            .card p {
                font-size: 0.75rem;
                line-height: 1.4;
            }
            
            .card-icon {
                font-size: 1.8rem;
                margin-bottom: 0.5rem;
            }
            
            .card.active {
                transform: scale(1.1) translateZ(30px);
            }
            
            .card.prev {
                transform: translateX(-180px) scale(0.75) rotateY(20deg);
            }
            
            .card.next {
                transform: translateX(180px) scale(0.75) rotateY(-20deg);
            }
            
            .card.hidden-left {
                transform: translateX(-360px) scale(0.6) rotateY(35deg);
            }
            
            .card.hidden-right {
                transform: translateX(360px) scale(0.6) rotateY(-35deg);
            }
            
            .nav-arrows {
                width: 40px;
                height: 40px;
                font-size: 1rem;
            }
            
            .nav-arrows.left {
                left: 1%;
            }

            .nav-arrows.right {
                right: 1%;
            }

            .modal-content {
                margin: 1rem;
                padding: 1.5rem;
                max-height: 85vh;
            }

            .form-row {
                flex-direction: column;
                gap: 0;
            }

            .btn-group {
                flex-direction: column;
            }
            
            .popup-menu {
                gap: 8px;
                padding: 12px 6px;
                max-width: 95vw;
            }
            
            .menu-box {
                min-width: 90px;
                padding: 12px 6px;
            }
            
            .menu-icon {
                font-size: 1.8rem;
            }
            
            .menu-label {
                font-size: 0.7rem;
                margin-top: 6px;
            }
        }

        /* Extra Small Mobile (below 320px) */
        @media (max-width: 319px) {
            .welcome-text h1 {
                font-size: 1.1rem;
                line-height: 1.2;
            }
            
            .welcome-text p {
                font-size: 0.8rem;
            }
            
            .card {
                width: 150px;
                height: 170px;
                padding: 0.8rem;
            }
            
            .card h3 {
                font-size: 0.9rem;
            }
            
            .card p {
                font-size: 0.7rem;
            }
            
            .card-icon {
                font-size: 1.5rem;
            }
            
            .nav-arrows {
                width: 35px;
                height: 35px;
                font-size: 0.9rem;
            }
            
            .popup-menu {
                gap: 6px;
                padding: 8px 4px;
                max-width: 98vw;
            }
            
            .menu-box {
                min-width: 70px;
                padding: 8px 4px;
            }
            
            .menu-icon {
                font-size: 1.5rem;
            }
            
            .menu-label {
                font-size: 0.6rem;
                margin-top: 4px;
            }
        }
   

        /* Large Desktop (1200px+) */
        @media (min-width: 1200px) {
            .welcome-text h1 {
                font-size: 2.5rem;
            }
            
            .welcome-text p {
                font-size: 1.3rem;
            }
            
            .card {
                width: 280px;
                height: 300px;
                padding: 1.8rem;
            }
            
            .card h3 {
                font-size: 1.4rem;
            }
            
            .card p {
                font-size: 0.9rem;
            }
            
            .card-icon {
                font-size: 2.8rem;
            }
            
            .card.prev {
                transform: translateX(-300px) scale(0.85) rotateY(25deg);
            }
            
            .card.next {
                transform: translateX(300px) scale(0.85) rotateY(-25deg);
            }
            
            .card.hidden-left {
                transform: translateX(-600px) scale(0.7) rotateY(45deg);
            }
            
            .card.hidden-right {
                transform: translateX(600px) scale(0.7) rotateY(-45deg);
            }
            
            .nav-arrows {
                width: 70px;
                height: 70px;
                font-size: 1.8rem;
            }
            
            .nav-arrows.left {
                left: 8%;
            }

            .nav-arrows.right {
                right: 8%;
            }
        }

        .scan-modal-content {
            padding: 1.5rem;
            background: rgba(213, 143, 105, 0.35);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            border-radius: 20px;
            width: 260px;
            height: 260px;
            max-width: 90vw;
            max-height: 90vw;
            margin: 0 auto;
            box-shadow: 0 20px 40px rgba(0,0,0,0.2);
            position: relative;
        }

        .form-select {
            padding-bottom: 1.5px;
            padding-top: revert-layer;
            margin-bottom: 1.5rem;
        }

        .filter-select {
            padding-bottom: 1.5px;
            padding-top: revert-layer;
            margin-bottom: 1.5rem;
        }

        #addAppointmentModal select.form-control {
            padding-bottom: 1.5px;
            padding-top: revert-layer;
            margin-bottom: 1.5rem;
        }

        #events-section .form-select {
            padding-bottom: 1.5px;
            padding-top: revert-layer;
            margin-bottom: 1.5rem;
        }