/* © 2025 VEX LLC. All rights reserved. */
/* ===================================================================
   COMPONENTS.CSS - Buttons, Cards, Modals, Forms, Inputs, Badges
   =================================================================== */

        /* Forms - Modern Rounded Style */
        .form-group { margin-bottom: 20px; }
        .form-label { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
        .form-input, .form-select, .form-textarea {
            width: 100%; padding: 16px 20px; border: 1px solid var(--border); border-radius: 16px;
            font-size: 16px; font-family: inherit; transition: all 0.2s; background: #FAFAFA;
        }
        .form-input:focus, .form-select:focus, .form-textarea:focus {
            outline: none; border-color: var(--primary); background: white;
            box-shadow: 0 0 0 4px rgba(75,123,245,0.1);
        }
        .form-input::placeholder { color: var(--text-light); }
        .form-textarea { min-height: 100px; resize: vertical; }
        .form-icon-input { position: relative; }
        .form-icon-input .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
            color: var(--text-light); font-size: 18px; }
        .form-icon-input input { padding-left: 48px; }
        .form-icon-input .toggle { position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
            color: var(--text-light); font-size: 18px; cursor: pointer; }

        .btn {
            width: 100%; padding: 18px; border: none; border-radius: 30px;
            font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.2s;
            display: flex; align-items: center; justify-content: center; gap: 8px;
        }
        .btn-primary { background: var(--primary); color: white;
            box-shadow: 0 4px 15px rgba(75,123,245,0.35); }
        .btn-primary:active { background: var(--primary-dark); transform: scale(0.98); }
        .btn-secondary { background: #F5F5F5; color: var(--text); }
        .btn-danger { background: var(--danger); color: white;
            box-shadow: 0 4px 15px rgba(247,85,85,0.35); }
        .btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
        .btn-sm { padding: 12px 20px; font-size: 14px; width: auto; border-radius: 24px; }
        .btn-pill { border-radius: 30px; padding: 10px 20px; font-size: 14px; width: auto; }
        .btn-pill.active { background: var(--primary); color: white; }
        .btn-pill:not(.active) { background: white; color: var(--text); border: 1px solid var(--border); }

        /* Cards */
        .card { background: white; border-radius: 16px; padding: 16px; box-shadow: 0 2px 8px var(--shadow); }

        /* Modal */
        .modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 200;
            align-items: flex-end; }
        .modal.active { display: flex; }
        .modal-content { background: white; width: 100%; border-radius: 24px 24px 0 0;
            padding: 24px 16px calc(var(--safe-bottom) + 24px); max-height: 90vh; overflow-y: auto;
            animation: slideUp 0.3s ease; }
        @keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
        .modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
        .modal-title { font-size: 18px; font-weight: 700; }
        .modal-close { width: 32px; height: 32px; border-radius: 16px; background: var(--bg);
            border: none; font-size: 16px; cursor: pointer; }

        /* Vet Cards - Modern Style */
        .vet-card { display: flex; align-items: center; gap: 14px; padding: 16px;
            background: white; border-radius: 20px; margin-bottom: 12px; cursor: pointer;
            border: 1px solid var(--border); transition: all 0.2s; }
        .vet-card:active, .vet-card.selected { border-color: var(--primary); background: var(--primary-light); }
        .vet-avatar { width: 56px; height: 56px; border-radius: 28px; overflow: hidden;
            background: var(--primary-light); display: flex; align-items: center; justify-content: center; }
        .vet-avatar img { width: 100%; height: 100%; object-fit: cover; }
        .vet-info { flex: 1; }
        .vet-name { font-weight: 600; font-size: 16px; color: var(--text); }
        .vet-spec { font-size: 13px; color: var(--text-light); margin-top: 2px; }
        .vet-rating { display: flex; align-items: center; gap: 4px; font-size: 12px; margin-top: 4px; }
        .vet-rating .star { color: #FACC15; }
        .vet-status { font-size: 12px; color: var(--success); margin-top: 2px; font-weight: 500; }
        .vet-price { font-size: 18px; font-weight: 700; color: var(--primary); }

        /* Time Slots */
        .time-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
        .time-slot { padding: 12px 8px; text-align: center; border: 2px solid var(--border);
            border-radius: 10px; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s; }
        .time-slot:active, .time-slot.selected { background: var(--primary); color: white; border-color: var(--primary); }
        .time-slot.disabled { opacity: 0.4; pointer-events: none; }

        /* Improved buttons with ripple effect */
        .btn-fun {
            position: relative;
            overflow: hidden;
        }
        .btn-fun::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            background: rgba(255,255,255,0.3);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
        }
        .btn-fun:active::after {
            width: 300px;
            height: 300px;
        }

        /* Celebration animation */
        @keyframes celebrate {
            0% { transform: scale(1); }
            25% { transform: scale(1.1) rotate(-3deg); }
            50% { transform: scale(1.15) rotate(3deg); }
            75% { transform: scale(1.1) rotate(-2deg); }
            100% { transform: scale(1); }
        }
        .celebrate { animation: celebrate 0.6s ease; }

        /* Pulse animation for important elements */
        .pulse-attention {
            animation: pulseAttention 2s ease-in-out infinite;
        }
        @keyframes pulseAttention {
            0%, 100% { box-shadow: 0 0 0 0 rgba(75,123,245,0.4); }
            50% { box-shadow: 0 0 0 10px rgba(75,123,245,0); }
        }

        /* Fun loading dots */
        .loading-dots {
            display: inline-flex;
            gap: 4px;
        }
        .loading-dots span {
            width: 8px;
            height: 8px;
            background: var(--primary);
            border-radius: 50%;
            animation: loadingDot 1.4s ease-in-out infinite;
        }
        .loading-dots span:nth-child(2) { animation-delay: 0.2s; }
        .loading-dots span:nth-child(3) { animation-delay: 0.4s; }
        @keyframes loadingDot {
            0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
            40% { transform: scale(1); opacity: 1; }
        }

        /* Confetti for celebrations */
        .confetti-container {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            pointer-events: none;
            z-index: 1000;
            overflow: hidden;
        }
        .confetti {
            position: absolute;
            width: 10px;
            height: 10px;
            top: -10px;
            animation: confettiFall 3s linear forwards;
        }
        @keyframes confettiFall {
            0% { transform: translateY(0) rotate(0deg); opacity: 1; }
            100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
        }

        /* End call button pulse animation */
        @keyframes pulseEndCall {
            0%, 100% {
                box-shadow: 0 6px 20px rgba(239,68,68,0.5);
                transform: scale(1);
            }
            50% {
                box-shadow: 0 6px 30px rgba(239,68,68,0.8);
                transform: scale(1.05);
            }
        }
