/* ==========================================
   PawHub-inspired Modern Styling
   =========================================== */

:root {
    --bs-primary: var(--primary);
    --bs-primary-rgb: 113, 178, 226;

    /* Primary Colors */
    --primary: #71b2e2; /* light blue */
    --primary-light: #a3d1f0; /* lighter blue accent */
    --primary-dark: #5a9bcc; /* darker blue */
    --primary-lighter: #E3F2FD; /* very light blue */
    --accent-pink: #ff6daa; /* pink accent */
    
    /* Neutral Colors */
    --secondary: #f8f9fa;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Text Colors */
    --text-dark: #32317c;
    --text-dark-blue: #32317c; /* dark blue for emphasis */
    --text-light: #718096;
    --border-color: #e2e8f0;
    
    /* Status Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    
    /* Shadows */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Dark Mode Colors */
[data-bs-theme="dark"] {
    --primary: #71b2e2;
    --primary-light: #a3d1f0;
    --primary-dark: #5a9bcc;
    --primary-lighter: #1a2a3a;
    
    --secondary: #1a1a1a;
    --gray-50: #1f2937;
    --gray-100: #111827;
    --gray-200: #0f172a;
    --gray-300: #1e293b;
    --gray-400: #64748b;
    --gray-500: #94a3b8;
    --gray-600: #cbd5e1;
    --gray-700: #e2e8f0;
    --gray-800: #f1f5f9;
    --gray-900: #f8fafc;
    
    --text-dark: #ffffff;
    --text-light: #b0b8c1;
    --border-color: #333333;
    
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.4), 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
}

/* ==========================================
   Base Styles
   =========================================== */

* {
    font-family: 'Nunito', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
    color: #32317c;
    background-color: #f8f9fa;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: 400;
    font-size: 16px;
    letter-spacing: -0.3px;
}

[data-bs-theme="dark"] body {
    background-color: #1a1a1a;
    color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
    color: #32317c;
    font-weight: 700;
    letter-spacing: -0.5px;
    font-family: 'Nunito', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

[data-bs-theme="dark"] h1,
[data-bs-theme="dark"] h2,
[data-bs-theme="dark"] h3,
[data-bs-theme="dark"] h4,
[data-bs-theme="dark"] h5,
[data-bs-theme="dark"] h6 {
    color: #ffffff;
}

/* Dark mode section backgrounds and text */
[data-bs-theme="dark"] section {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] section div[style*="background: #f"] {
    background-color: #2a2a2a !important;
}

[data-bs-theme="dark"] section p,
[data-bs-theme="dark"] section span,
[data-bs-theme="dark"] section h1,
[data-bs-theme="dark"] section h2,
[data-bs-theme="dark"] section h3,
[data-bs-theme="dark"] section h4,
[data-bs-theme="dark"] section h5,
[data-bs-theme="dark"] section h6 {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .text-muted {
    color: #b0b8c1 !important;
}

h1 { 
    font-size: 36px; 
    font-weight: 700;
    line-height: 1.2;
}
h2 { 
    font-size: 28px; 
    font-weight: 700;
    line-height: 1.2;
}
h3 { 
    font-size: 24px; 
    font-weight: 700;
    line-height: 1.3;
}
h4 { 
    font-size: 20px; 
    font-weight: 600;
}
h5 { 
    font-size: 18px; 
    font-weight: 600;
}
h6 { 
    font-size: 16px; 
    font-weight: 600;
}

p {
    font-size: 16px;
    line-height: 1.8;
    color: #32317c;
    font-weight: 400;
}

[data-bs-theme="dark"] p {
    color: #ffffff;
}

small {
    font-size: 13px;
    line-height: 1.6;
}

a {
    font-family: 'Nunito', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

button, .btn {
    font-family: 'Nunito', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 600;
}

/* Navigation */
.navbar {
    background: white;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease;
}

[data-bs-theme="dark"] .navbar {
    background: #2a2a2a;
    border-bottom: 1px solid #444444;
}

.navbar-brand {
    color: var(--primary) !important;
    font-weight: 800;
    font-size: 22px;
}

/* Brand styling */
.brand-title {
    font-family: 'Nunito', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 800;
    letter-spacing: 0.2px;
    background: linear-gradient(135deg, #71b2e2 0%, #a3d1f0 50%, #c5e3f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-logo svg {
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.08));
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 209, 220, 0.35);
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 8px 16px !important;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 13px;
}

[data-bs-theme="dark"] .nav-link {
    color: #ffffff !important;
}

.nav-link:hover {
    color: var(--primary) !important;
    background-color: rgba(224, 187, 228, 0.12);
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: #ff6daa;
    border-color: #ff6daa;
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.btn-light {
    background-color: white;
    color: var(--primary);
}

.btn-light:hover {
    background-color: #f0f4ff;
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: white;
}

[data-bs-theme="dark"] .card {
    background-color: #2a2a2a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 20px;
}

.card-title {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 10px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

[data-bs-theme="dark"] .card-title {
    color: #ffffff;
}

.card-text {
    color: var(--text-light);
    font-size: 14px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

[data-bs-theme="dark"] .card-text {
    color: #b0b8c1;
}

/* Carousel */
.carousel {
    border-radius: 12px;
    overflow: hidden;
}

.carousel-item {
    min-height: 400px;
    display: flex;
    align-items: center;
}

.carousel-control-prev,
.carousel-control-next {
    background-color: rgba(224, 187, 228, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

/* Section Spacing */
section {
    margin-bottom: 50px;
}

main {
    padding: 40px 0;
}

/* Footer */
footer {
    background-color: #f8f9fa;
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
    padding: 50px 0;
    transition: background-color 0.3s ease;
}

[data-bs-theme="dark"] footer {
    background-color: #1a1a1a;
    border-top: 1px solid #444444;
}

footer h6 {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

[data-bs-theme="dark"] footer h6 {
    color: #ffffff;
}

footer a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

[data-bs-theme="dark"] footer a {
    color: #b0b8c1;
}

footer a:hover {
    color: var(--primary);
}

footer ul li {
    margin-bottom: 10px;
}

footer .small {
    font-size: 13px;
    line-height: 1.8;
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 28px; }
    h2 { font-size: 22px; }
    h3 { font-size: 20px; }
    
    .carousel-item {
        min-height: 300px;
    }
    
    section {
        margin-bottom: 30px;
    }
}

/* Utility classes */
.text-primary {
    color: var(--primary) !important;
}

.text-secondary {
    color: var(--text-light) !important;
}

.border-color {
    border-color: var(--border-color) !important;
}

/* Container adjustments */
.container-lg {
    max-width: 1200px;
}

/* Hero gradient */
.hero-grad {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

/* Link styles */
a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ff6daa;
}

/* Input styling */
.form-control {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: white;
    color: #333333;
}

[data-bs-theme="dark"] .form-control {
    background-color: #333333;
    border-color: #555555;
    color: #ffffff;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(224, 187, 228, 0.12);
}

[data-bs-theme="dark"] .form-control:focus {
    background-color: #3a3a3a;
}

.form-select {
    background-color: white;
    color: #333333;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

[data-bs-theme="dark"] .form-select {
    background-color: #333333;
    border-color: #555555;
    color: #ffffff;
}

/* Dropdown styling */
.dropdown-menu {
    background-color: white;
    border: 1px solid var(--border-color);
}

[data-bs-theme="dark"] .dropdown-menu {
    background-color: #2a2a2a;
    border-color: #444444;
}

.dropdown-item {
    color: var(--text-dark);
}

[data-bs-theme="dark"] .dropdown-item {
    color: #ffffff;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: rgba(224, 187, 228, 0.12);
}

/* Utility classes for dark mode text */
.text-secondary {
    color: var(--text-light) !important;
}

[data-bs-theme="dark"] .text-secondary {
    color: #b0b8c1 !important;
}

.text-muted {
    color: var(--text-light) !important;
}

[data-bs-theme="dark"] .text-muted {
    color: #b0b8c1 !important;
}

.text-dark {
    color: var(--text-dark) !important;
}

[data-bs-theme="dark"] .text-dark {
    color: #ffffff !important;
}

/* Badge styling */
.badge {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.5px;
}

/* Pagination */
.pagination {
    gap: 2px;
}

.pagination .page-link {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 600;
    color: var(--primary);
    border-color: rgba(224, 187, 228, 0.6);
    background-color: #ffffff;
    box-shadow: 0 2px 6px rgba(224, 187, 228, 0.15);
}

[data-bs-theme="dark"] .pagination .page-link {
    background-color: #2a2a2a;
    border-color: #444444;
    color: var(--primary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.pagination .page-item.active .page-link {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(224, 187, 228, 0.3);
}

.pagination .page-item.disabled .page-link {
    color: var(--text-light);
    background-color: #f3f4f6;
    border-color: rgba(224, 187, 228, 0.4);
}

.pagination .page-link:hover {
    background-color: rgba(224, 187, 228, 0.15);
    color: var(--primary-dark);
    border-color: rgba(224, 187, 228, 0.8);
}

.pagination .page-link:focus {
    box-shadow: 0 0 0 3px rgba(224, 187, 228, 0.35);
}

/* Responsive improvements */
@media (max-width: 768px) {
    h1 { font-size: 28px; }
    h2 { font-size: 22px; }
    h3 { font-size: 20px; }
    h4 { font-size: 18px; }
    
    p { font-size: 15px; }
    
    .btn { font-size: 14px; }
    
    .carousel-inner {
        min-height: 300px;
    }
    
    /* Banner responsive */
    [style*="display: flex"][style*="grid-template-columns"] {
        flex-direction: column !important;
        gap: 30px !important;
    }
    
    [style*="display: grid"][style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Banner text sizing on mobile */
    section .fw-bold[style*="font-size: 36px"] {
        font-size: 28px !important;
    }
    
    section p[style*="font-size: 16px"] {
        font-size: 14px !important;
    }
}

/* Focus states for accessibility */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(224, 187, 228, 0.18);
}

.btn:focus {
    outline: none;
}

a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Link hover effects */
a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #D3A8E6;
}

[data-bs-theme="dark"] a {
    color: var(--primary-light);
}

[data-bs-theme="dark"] a:hover {
    color: var(--primary);
}

/* Text selection color */
::selection {
    background-color: var(--primary);
    color: white;
}

[data-bs-theme="dark"] ::selection {
    background-color: #63a1ff;
    color: #1a1a1a;
}

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

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

::-webkit-scrollbar-thumb {
    background-color: rgba(224, 187, 228, 0.3);
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(224, 187, 228, 0.55);
}

[data-bs-theme="dark"] ::-webkit-scrollbar-thumb {
    background-color: rgba(224, 187, 228, 0.25);
}

[data-bs-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background-color: rgba(224, 187, 228, 0.45);
}

/* Carousel Banner Styling */
.carousel-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 60px 40px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    border-radius: 12px;
    min-height: 300px;
}

/* Hero Banner (Static) */
.hero-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 60px 50px;
    min-height: 350px;
}

.hero-content {
    flex: 1;
    min-width: 0;
    color: white;
}

.hero-title {
    color: white;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    word-wrap: break-word;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    word-wrap: break-word;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    min-width: 160px;
    font-size: 15px;
}

.hero-image {
    flex: 0 1 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.carousel-banner-content {
    flex: 1;
    min-width: 0;
}

.carousel-banner-content {
    flex: 1;
    min-width: 0;
}

.carousel-banner-content h1 {
    color: white;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
    word-wrap: break-word;
}

.carousel-banner-content p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 18px;
    margin-bottom: 20px;
    line-height: 1.6;
    word-wrap: break-word;
}

.carousel-banner-image {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    flex-shrink: 0;
}

/* Suggestion Card Styling */
.suggestion-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    padding: 16px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.suggestion-card p {
    margin: 0;
    color: #2d3748;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 400;
    word-wrap: break-word;
}

[data-bs-theme="dark"] .suggestion-card {
    background-color: #2a2a2a;
}

[data-bs-theme="dark"] .suggestion-card p {
    color: #ffffff;
}

.suggestion-icon {
    color: var(--primary);
    margin-right: 10px;
}

/* Responsive Banner */
@media (max-width: 992px) {
    .carousel-banner {
        flex-direction: column;
        gap: 20px;
        padding: 40px 30px;
        min-height: auto;
    }

    .carousel-banner-content h1 {
        font-size: 28px;
    }

    .carousel-banner-content p {
        font-size: 16px;
    }

    .carousel-banner-image {
        max-width: 100%;
    }
    
    .hero-banner {
        flex-direction: column;
        gap: 30px;
        padding: 40px 30px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 20px;
    }
    
    .hero-buttons {
        gap: 10px;
    }
    
    .hero-image {
        flex: 1 1 100%;
    }
}

@media (max-width: 768px) {
    .carousel-banner {
        flex-direction: column;
        gap: 15px;
        padding: 30px 20px;
    }

    .carousel-banner-content h1 {
        font-size: 24px;
    }

    .carousel-banner-content p {
        font-size: 14px;
    }

    .carousel-banner-image {
        max-width: 100%;
        max-height: 250px;
    }
    
    .hero-banner {
        flex-direction: column;
        gap: 20px;
        padding: 30px 20px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .hero-buttons .btn {
        min-width: 140px;
        font-size: 14px;
        padding: 8px 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-image {
        flex: 1 1 100%;
        max-height: 250px;
    }
    
    .hero-image img {
        max-height: 250px;
        object-fit: cover;
    }
}
.bg-primary{background-color: var(--primary)!important;border-color: var(--primary)!important;}
/* Floating Animations for Hero */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

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

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