/* Purrfect Wellness - Custom Styles */

:root {
    --primary-color: #2563eb;
    --secondary-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --border-radius: 12px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: #f8fafc;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--dark-color);
}

.brand-text {
    font-weight: 700;
    font-size: 1.5rem;
}

/* Layout Components */
.min-vh-75 {
    min-height: 75vh;
}

.hero-section {
    background: linear-gradient(135deg, #a8b8f5 0%, #c4b5dd 100%);
    color: white;
    padding: 4rem 0;
}

.hero-image {
    position: relative;
}

.pet-illustration {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Pet Card Styles for Adoption */
.pet-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.pet-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15) !important;
}

.pet-image-container {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.pet-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.pet-badge {
    position: absolute;
    top: 10px;
    right: 10px;
}

.pet-details {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.health-info {
    background: #f8f9fa;
    padding: 8px;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.shadow-hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Service Tips Cards */
.tip-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    height: 100%;
}

.tip-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    background: #fff;
}

.tip-icon {
    margin-bottom: 15px;
}

.tip-icon i {
    font-size: 2.5rem;
}

.tip-card h6 {
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
}

.tip-card p {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* Nutrition Plan Styling */
.food-recommendation-tag {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 12px;
    margin: 2px;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 500;
}

.stat-card {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
}

.stat-label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 5px;
}

.plan-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.plan-section:last-child {
    border-bottom: none;
}

.meal-item {
    background: #f8f9fa;
    padding: 10px 15px;
    margin: 8px 0;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

/* Navigation */
.navbar {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--box-shadow);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
}

/* Emergency message styles */
.emergency-message {
    animation: emergencyPulse 2s infinite;
}

@keyframes emergencyPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(220, 53, 69, 0.1); }
}

.emergency-message .message-bubble {
    border-left: 4px solid var(--danger-color);
    background-color: rgba(220, 53, 69, 0.05);
}

.message-meta .badge {
    font-size: 0.7rem;
    border-radius: 4px;
}

.alert-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}
    transition: var(--transition);
    border-radius: 8px;
    margin: 0 4px;
}

.nav-link:hover {
    background-color: rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
}

/* Cards and Components */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    margin-bottom: 1.5rem;
}

/* Pet Cards */
.pet-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.pet-card-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
}

.pet-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.pet-info {
    flex-grow: 1;
}

.pet-name {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    color: var(--dark-color);
}

.pet-details {
    margin: 0;
    color: #64748b;
}

.pet-card-body {
    padding: 1.5rem;
}

.health-alert {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
    padding: 0.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    text-align: center;
}

.pet-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Stat Cards */
.stat-card {
    background: var(--primary-color);
    color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.stat-card.bg-success { background: var(--success-color) !important; }
.stat-card.bg-warning { background: var(--warning-color) !important; }
.stat-card.bg-info { background: var(--info-color) !important; }
.stat-card.bg-danger { background: var(--danger-color) !important; }

.stat-icon {
    font-size: 2rem;
    margin-right: 1rem;
    opacity: 0.8;
}

.stat-content h3 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.stat-content p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.875rem;
}

/* Welcome Header */
.welcome-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%) !important;
    border-radius: var(--border-radius);
}

/* Empty States */
.empty-state {
    background: white;
    border-radius: var(--border-radius);
    padding: 3rem;
}

.empty-icon {
    font-size: 4rem;
    color: #cbd5e1;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
    border: none;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--primary-color);
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(37, 99, 235, 0.6);
}

.btn-success {
    background: var(--success-color);
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.4);
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--danger-color);
    box-shadow: 0 4px 14px 0 rgba(239, 68, 68, 0.4);
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

/* Forms */
.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.form-control-lg {
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* Chat Interface */
.chat-container {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-height: 70vh;
    overflow-y: auto;
}

.chat-message {
    padding: 1rem;
    margin: 0.5rem 0;
    border-radius: 12px;
    max-width: 80%;
}

.chat-message.user {
    background: var(--primary-color);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.chat-message.ai {
    background: #f1f5f9;
    color: var(--dark-color);
    border-bottom-left-radius: 4px;
}

.chat-input {
    border-top: 1px solid #e2e8f0;
    padding: 1rem;
    background: white;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

/* Alerts */
.alert {
    border: none;
    border-radius: 8px;
    padding: 1rem 1.5rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #991b1b;
    border-left: 4px solid var(--danger-color);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    color: #1e40af;
    border-left: 4px solid var(--info-color);
}

/* Background Elements */
.paw-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.paw-print {
    position: absolute;
    color: rgba(37, 99, 235, 0.05);
    font-size: 2rem;
    animation: pawFloat 20s infinite linear;
}

.paw-1 { top: 10%; left: 10%; animation-delay: 0s; }
.paw-2 { top: 30%; right: 15%; animation-delay: 4s; }
.paw-3 { bottom: 20%; left: 20%; animation-delay: 8s; }
.paw-4 { top: 60%; right: 30%; animation-delay: 12s; }
.paw-5 { bottom: 40%; left: 60%; animation-delay: 16s; }

@keyframes pawFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(0px) rotate(0deg); }
    75% { transform: translateY(-10px) rotate(-5deg); }
}

/* Error Pages */
.error-page {
    text-align: center;
    padding: 3rem 1rem;
}

.error-page h1 {
    font-size: 8rem;
    font-weight: 900;
    margin: 0;
    line-height: 1;
}

/* Footer */
footer {
    margin-top: 4rem;
}

footer a {
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .feature-card {
        margin-bottom: 2rem;
    }
    
    .pet-card-header {
        flex-direction: column;
        text-align: center;
    }
    
    .pet-avatar {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .stat-card {
        margin-bottom: 1rem;
    }
    
    .error-page h1 {
        font-size: 4rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
}

/* Chat Sidebar Styling */
.chat-sidebar {
    background-color: #f8f9fa;
    border-right: 1px solid #dee2e6;
    overflow-y: auto;
}

.chat-sidebar .pet-selection {
    margin-top: 1rem;
}

.chat-sidebar .quick-categories {
    background-color: #fff;
    border-bottom: 1px solid #dee2e6;
}

.chat-sidebar .recent-chats {
    background-color: #f8f9fa;
    max-height: calc(100vh - 300px);
    overflow-y: auto;
    flex: 1;
}

.chat-history-item {
    transition: all 0.2s ease;
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    margin-bottom: 8px;
}

.chat-history-item:hover {
    background-color: #f8f9fa;
    border-color: #6c757d;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.chat-message-preview {
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
}

.chat-time {
    font-size: 0.75rem;
    color: #6c757d;
}

.chat-icon {
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* Chat Message Styling */
.message-text {
    line-height: 1.6;
    color: #333;
}

.message-text h5 {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 8px;
    margin: 16px 0 12px 0;
}

.message-text h6 {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    margin: 12px 0 8px 0;
}

.message-text p {
    margin-bottom: 12px;
    text-align: justify;
}

.message-text ul, .message-text ol {
    margin-bottom: 12px;
    padding-left: 20px;
}

.message-text li {
    margin-bottom: 4px;
    line-height: 1.5;
}

.message-text strong {
    font-weight: 600;
    color: #2c3e50;
}

.message-text em {
    font-style: italic;
    color: #34495e;
}

/* Mobile responsiveness for chat */
@media (max-width: 768px) {
    .chat-sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        z-index: 1050;
        background-color: #f8f9fa;
    }
    
    .chat-sidebar.show {
        display: flex;
    }
    
    .chat-container {
        width: 100%;
    }
    
    .message-text {
        font-size: 0.9rem;
    }
    
    .message-text h5 {
        font-size: 1rem;
    }
    
    .message-text h6 {
        font-size: 0.9rem;
    }
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8;
}

/* Online Consultation Hero Widget Styles */
.consultation-hero-widget {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    box-shadow: 0 20px 40px rgba(0, 123, 255, 0.2);
    border: none;
    transition: all 0.3s ease;
}

.consultation-hero-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 123, 255, 0.3);
}

.floating-icons {
    position: relative;
    height: 200px;
}

.floating-1, .floating-2, .floating-3 {
    position: absolute;
    animation: float 3s ease-in-out infinite;
}

.floating-1 {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.floating-2 {
    top: 80px;
    left: 20%;
    animation-delay: 1s;
}

.floating-3 {
    top: 80px;
    right: 20%;
    animation-delay: 2s;
}

.consultation-quick-form .form-select {
    border: none;
    border-radius: 10px;
    padding: 12px 16px;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.consultation-quick-form .form-select:focus {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.consultation-quick-form .btn {
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.consultation-quick-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Vet Card Styles */
.vet-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.vet-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.vet-photo {
    border: 3px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.price-tag {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #1565c0;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
    font-weight: 600;
}

.specializations .badge {
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 15px;
}

/* WhatsApp Support Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-button {
    background: #25d366;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-button:hover {
    background: #128c7e;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
}

.whatsapp-button i {
    color: white;
    font-size: 28px;
}

.whatsapp-tooltip {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 20px;
    border: 6px solid transparent;
    border-top-color: #333;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Print Styles */
@media print {
    .navbar, footer, .btn, .alert, .whatsapp-widget {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .card, .feature-card, .pet-card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }
}

/* Service Cards Styling */
.service-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.service-icon {
    margin-bottom: 15px;
}

.service-card h5 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 10px;
}

.coming-soon-badge, .status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.coming-soon-badge {
    background: #ffc107;
    color: #212529;
}

.status-badge.available {
    background: #28a745;
    color: white;
}

.service-card .btn {
    margin-top: 10px;
}

/* Service Cards Mobile Responsiveness */
@media (max-width: 768px) {
    .service-card {
        padding: 20px;
        margin-bottom: 15px;
    }
    
    .service-card h5 {
        font-size: 1.1rem;
    }
    
    .coming-soon-badge, .status-badge {
        top: 10px;
        right: 10px;
        padding: 4px 8px;
        font-size: 0.7rem;
    }
}

/* Enhanced Mobile Responsive Improvements */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem !important;
    }
    
    .lead {
        font-size: 1rem !important;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .consultation-hero-widget {
        padding: 2rem 1rem !important;
        margin: 1rem 0;
    }
    
    .pet-illustration i {
        font-size: 4rem !important;
    }
    
    .consultation-quick-form .col-md-4 {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 1rem 0;
    }
    
    .hero-section .display-4 {
        font-size: 1.8rem !important;
    }
    
    .consultation-hero-widget {
        padding: 1.5rem 1rem !important;
    }
    
    .feature-icon i {
        font-size: 2rem !important;
    }
    
    .floating-icons i {
        font-size: 2rem !important;
    }
}

/* Chat Color Contrast and Mobile Fixes */
.chat-messages {
    background-color: #ffffff !important;
    color: #212529 !important;
}

.message-text {
    color: #212529 !important;
}

.assistant-message .message-bubble {
    background-color: #f8f9fa !important;
    color: #212529 !important;
    border: 1px solid #dee2e6;
}

.user-message .message-bubble {
    background-color: #007bff !important;
    color: #ffffff !important;
}

/* Footer Color Contrast */
footer {
    background-color: #1e293b !important;
    color: #ffffff !important;
}

footer h5, footer h6 {
    color: #ffffff !important;
}

footer .text-light {
    color: #ffffff !important;
}

footer a.text-light:hover {
    color: #f8f9fa !important;
}

/* Removed dark mode styles as requested */

/* Mobile Chat Responsiveness */
@media (max-width: 768px) {
    .chat-container {
        height: calc(100vh - 80px) !important;
        margin: 10px !important;
        border-radius: 20px !important;
        box-shadow: 0 8px 32px rgba(0,0,0,0.2) !important;
    }
    
    .chat-messages {
        padding: 15px !important;
        height: calc(100vh - 160px) !important;
        border-radius: 20px 20px 0 0 !important;
    }
    
    .chat-input-container {
        padding: 15px !important;
        border-radius: 0 0 20px 20px !important;
    }
    
    .chat-sidebar {
        display: none !important;
    }
    
    .chat-main {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    .message-bubble {
        max-width: 85% !important;
        font-size: 14px !important;
        padding: 12px 16px !important;
        border-radius: 18px !important;
        margin-bottom: 8px !important;
    }
    
    .input-group {
        border-radius: 25px !important;
        overflow: hidden !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    }
    
    .form-control {
        border: none !important;
        padding: 15px 20px !important;
        font-size: 16px !important;
    }
    
    .btn-primary {
        border-radius: 0 !important;
        padding: 15px 20px !important;
    }
    
    .chat-header {
        padding: 10px 15px !important;
        border-radius: 20px 20px 0 0 !important;
    }
    
    .welcome-message {
        padding: 30px 15px !important;
    }
    
    .welcome-icon {
        font-size: 3rem !important;
    }
    
    .welcome-title {
        font-size: 1.4rem !important;
    }
    
    .welcome-subtitle {
        font-size: 1rem !important;
    }
    
    .topic-badge {
        font-size: 0.8rem !important;
        padding: 8px 12px !important;
        margin: 2px !important;
    }
    
    .dark-mode .chat-container {
        box-shadow: 0 8px 32px rgba(255,255,255,0.1) !important;
    }
}

/* Additional Mobile Optimizations for Landing Pages */
@media (max-width: 576px) {
    /* Landing page cards full width stacking */
    .col-lg-4, .col-lg-3, .col-lg-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    /* Service buttons full width on mobile */
    .d-grid.gap-2.d-md-flex.justify-content-md-center .btn {
        width: 100% !important;
        margin: 0 0 0.5rem 0 !important;
    }
    
    /* Card padding adjustments */
    .card-body {
        padding: 1.5rem !important;
    }
    
    /* Button improvements */
    .btn-lg {
        padding: 0.75rem 1.5rem !important;
        font-size: 1rem !important;
        width: 100% !important;
    }
    
    /* Navigation improvements */
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
    }
    
    /* Additional info sections mobile */
    .col-md-8, .col-md-4 {
        text-align: center !important;
        margin-bottom: 1rem;
    }
}

/* Enhanced Chat UI Styles */
.left-icons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-right: 12px;
    align-items: center;
}

.clear-chat-btn {
    background: none;
    border: none;
    color: #6c757d;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clear-chat-btn:hover {
    background-color: #f8f9fa;
    color: #495057;
}

.input-container {
    display: flex;
    align-items: flex-end;
    gap: 0;
}

.text-input-wrapper {
    flex: 1;
    position: relative;
}

.chat-textarea {
    min-height: 60px; /* Covers height of left icons */
}

/* Related Questions Styles */
.related-questions {
    margin-top: 15px;
    padding: 15px 0;
    border-top: 1px solid #e9ecef;
}

.related-questions h6 {
    color: #6c757d;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.related-question-btn {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #495057;
    padding: 8px 12px;
    margin: 4px 6px 4px 0;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
}

.related-question-btn:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    color: #212529;
}

.emergency-message {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 12px;
    margin: 10px 0;
    color: #856404;
}

.emergency-message i {
    color: #f39c12;
    margin-right: 8px;
}

/* Loading Overlay Styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-content {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Cute Loading Animations */
.loading-paws {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-size: 14px;
}

.loading-paws .paw {
    animation: pawBounce 1.4s infinite ease-in-out;
    font-size: 16px;
}

.loading-paws .paw:nth-child(1) { animation-delay: -0.32s; }
.loading-paws .paw:nth-child(2) { animation-delay: -0.16s; }
.loading-paws .paw:nth-child(3) { animation-delay: 0s; }

@keyframes pawBounce {
    0%, 80%, 100% { 
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% { 
        transform: scale(1.2);
        opacity: 1;
    }
}

.loading-heart {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #e91e63;
}

.loading-heart .heart {
    animation: heartbeat 1.2s infinite;
    font-size: 18px;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.loading-pets {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #6c757d;
}

.loading-pets .pet-icon {
    animation: petWalk 2s infinite ease-in-out;
    font-size: 16px;
}

.loading-pets .pet-icon:nth-child(1) { animation-delay: 0s; }
.loading-pets .pet-icon:nth-child(2) { animation-delay: 0.2s; }
.loading-pets .pet-icon:nth-child(3) { animation-delay: 0.4s; }

@keyframes petWalk {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-5px) rotate(-5deg); }
    75% { transform: translateY(-2px) rotate(5deg); }
}

.loading-spinner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
}

.loading-spinner .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}