/* 
 * Rajayog Component Library
 * Reusable UI components
 * Version: 2.9 - Hover dropdowns, reordered navbar items
 * Navbar: Horoscope, Timings, Consult (highlighted), Harmony, Learn, Store, About, Premium
 * Desktop: Hover to open dropdowns | Mobile: Click to open
 */

/* ==========================================================================
   Global Link Styles - Remove Underlines
   ========================================================================== */
a,
a:hover,
a:focus,
a:active {
    text-decoration: none !important;
}

/* ==========================================================================
   Navigation Components
   ========================================================================== */
.navbar-custom {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0.5rem 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(102, 126, 234, 0.3);
}

.navbar-custom .navbar-brand {
    color: white !important;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
    text-decoration: none !important;
    flex-shrink: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.navbar-custom .navbar-brand:hover,
.navbar-custom .navbar-brand:focus {
    color: white !important;
    text-decoration: none !important;
    transform: scale(1.02);
}

/* Navbar Nav - Flexible Container with Justified Spacing */
.navbar-custom .navbar-nav {
    flex-wrap: nowrap;
    align-items: center;
    flex: 1;
    justify-content: space-evenly;
    gap: 0.5rem;
}

.navbar-custom .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.6rem 1rem !important;
    margin: 0;
    border-radius: 8px;
    transition: all 0.25s ease;
    text-decoration: none !important;
    white-space: nowrap;
    position: relative;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link:focus {
    color: white !important;
    background: rgba(255, 255, 255, 0.18);
    text-decoration: none !important;
    transform: translateY(-1px);
}

.navbar-custom .nav-link.active {
    color: white !important;
    background: rgba(255, 255, 255, 0.22);
}

/* Dropdown toggle arrow rotation on open */
.navbar-custom .dropdown-toggle.show::after {
    transform: rotate(180deg);
}

.navbar-custom .dropdown-toggle::after {
    transition: transform 0.2s ease;
}

/* ==========================================================================
   Highlighted Nav Link (for Consult - revenue driver)
   ========================================================================== */
.navbar-custom .nav-link.nav-highlight {
    /* Subtle highlight - not active state */
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 500;
    position: relative;
}

/* Add a subtle badge/indicator instead of full background */
.navbar-custom .nav-link.nav-highlight::after {
    content: '⭐';
    font-size: 0.6rem;
    position: absolute;
    top: 2px;
    right: 2px;
    opacity: 0.7;
}

.navbar-custom .nav-link.nav-highlight:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Active state for nav items - much more prominent */
.navbar-custom .nav-link.active,
.navbar-custom .nav-item.active > .nav-link {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.15) 100%) !important;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.3) !important;
}

/* ==========================================================================
   Dropdown Menus - Enhanced Styling with Hover Support
   ========================================================================== */
.navbar-custom .dropdown-menu {
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.18), 0 0 0 1px rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    padding: 0.75rem 0;
    min-width: 220px;
    background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
    overflow: hidden;
    margin-top: 0 !important;
    /* Smooth transition for hover */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
}

/* Show dropdown on hover (desktop) - handled by JS, but CSS fallback */
@media (min-width: 992px) {
    .navbar-custom .dropdown-menu.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.navbar-custom .dropdown-item {
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    color: #374151;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.navbar-custom .dropdown-item:hover {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.12) 0%, rgba(102, 126, 234, 0.05) 100%);
    color: #667eea;
    border-left-color: #667eea;
    padding-left: 1.5rem;
}

.navbar-custom .dropdown-item i {
    width: 22px;
    opacity: 0.75;
    transition: all 0.2s ease;
}

.navbar-custom .dropdown-item:hover i {
    opacity: 1;
    transform: scale(1.1);
}

.navbar-custom .dropdown-header {
    font-size: 0.7rem;
    font-weight: 700;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1.25rem 0.35rem;
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.08) 0%, transparent 100%);
}

.navbar-custom .dropdown-divider {
    margin: 0.5rem 1rem;
    border-color: rgba(102, 126, 234, 0.15);
}

/* ==========================================================================
   Right Section - Language & User
   ========================================================================== */
.navbar-right-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
    margin-left: 1.5rem;
}

/* Language Select - Enhanced */
.lang-select {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.5rem;
    border-radius: 8px;
    height: 34px;
    min-width: 58px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.lang-select:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.lang-select:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* User Button - Enhanced */
.btn-user {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: white !important;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    transition: all 0.25s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-user:hover,
.btn-user:focus {
    background: rgba(255, 255, 255, 0.3);
    color: white !important;
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* Navbar Icon Colors */
.navbar-custom .bi {
    opacity: 0.95;
    transition: all 0.2s ease;
}

.navbar-custom .nav-link:hover .bi {
    opacity: 1;
    transform: scale(1.1);
}

/* ==========================================================================
   Language-Specific Navbar Adjustments
   ========================================================================== */

/* Hindi */
[lang="hi"] .navbar-custom .nav-link {
    font-size: 0.85rem;
    padding: 0.5rem 0.6rem !important;
}

/* Malayalam - Longer text */
[lang="ml"] .navbar-custom .nav-link {
    font-size: 0.82rem;
    padding: 0.5rem 0.55rem !important;
}

/* Tamil */
[lang="ta"] .navbar-custom .nav-link {
    font-size: 0.85rem;
    padding: 0.5rem 0.6rem !important;
}

/* Kannada */
[lang="kn"] .navbar-custom .nav-link {
    font-size: 0.85rem;
    padding: 0.5rem 0.6rem !important;
}

/* Telugu */
[lang="te"] .navbar-custom .nav-link {
    font-size: 0.85rem;
    padding: 0.5rem 0.6rem !important;
}

/* ==========================================================================
   Subscription Nav Styles - Enhanced
   ========================================================================== */
.nav-subscribed {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
    border-radius: 20px !important;
    padding: 6px 14px !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    transition: all 0.3s ease !important;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

.nav-subscribed:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.nav-subscribed .plan-name {
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-sub-expiring {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: white !important;
    border-radius: 20px !important;
    padding: 6px 14px !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    animation: pulse-warning 2s infinite;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
}

.nav-sub-expiring:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
    color: white !important;
}

.nav-sub-expiring .days-badge {
    background: rgba(255,255,255,0.25);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.75rem;
}

@keyframes pulse-warning {
    0%, 100% { opacity: 1; box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3); }
    50% { opacity: 0.9; box-shadow: 0 4px 20px rgba(245, 158, 11, 0.5); }
}

.nav-subscribe {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: white !important;
    border-radius: 20px !important;
    padding: 6px 14px !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    transition: all 0.3s ease !important;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
}

.nav-subscribe:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

/* ==========================================================================
   Mobile Navbar (< 992px) - Hamburger Menu (Click to open)
   ========================================================================== */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        padding: 1rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        z-index: 1000;
        max-height: 80vh;
        overflow-y: auto;
        border-radius: 0 0 16px 16px;
    }
    
    .navbar-custom .nav-link {
        padding: 0.85rem 1rem !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        white-space: normal;
        font-size: 0.95rem;
        border-radius: 0;
    }
    
    .navbar-custom .nav-link:last-child {
        border-bottom: none;
    }
    
    .navbar-custom .nav-link.nav-highlight {
        background: rgba(255, 255, 255, 0.08);
        border-radius: 8px;
        margin: 0.25rem 0;
        border-bottom: none;
        border: 1px solid rgba(255, 255, 255, 0.15);
    }
    
    /* Active state for mobile nav */
    .navbar-custom .nav-link.active,
    .navbar-custom .nav-item.active > .nav-link {
        background: rgba(255, 255, 255, 0.25) !important;
        border: 2px solid rgba(255, 255, 255, 0.4) !important;
        font-weight: 600 !important;
    }
    
    /* Dropdown menus in mobile - standard Bootstrap behavior */
    .navbar-custom .dropdown-menu {
        background: rgba(0, 0, 0, 0.15);
        box-shadow: none;
        border-radius: 8px;
        margin: 0.25rem 0;
        padding: 0.5rem;
        position: static !important;
        transform: none !important;
        opacity: 1;
        visibility: visible;
    }
    
    .navbar-custom .dropdown-item {
        color: rgba(255, 255, 255, 0.9);
        border-radius: 6px;
        padding: 0.6rem 0.85rem;
        border-left: none;
    }
    
    .navbar-custom .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.18);
        color: white;
        padding-left: 0.85rem;
    }
    
    .navbar-custom .dropdown-header {
        color: rgba(255, 255, 255, 0.7);
        background: transparent;
    }
    
    .navbar-custom .dropdown-divider {
        border-color: rgba(255, 255, 255, 0.2);
    }
    
    .navbar-right-section {
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        gap: 0.75rem;
    }
    
    .navbar-right-section form {
        width: 100%;
    }
    
    .navbar-right-section .lang-select {
        width: 100%;
        height: 44px;
        font-size: 0.95rem;
        border-radius: 10px;
    }
    
    .navbar-right-section .btn-user,
    .navbar-right-section > a {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 0.6rem 1rem;
        border-radius: 10px;
    }
    
    .navbar-right-section .dropdown {
        width: 100%;
    }
    
    .navbar-right-section .dropdown .btn-user {
        width: 100%;
    }
    
    .nav-subscribed, 
    .nav-sub-expiring, 
    .nav-subscribe {
        width: 100%;
        justify-content: center !important;
        margin: 8px 0;
        padding: 10px 16px !important;
        border-radius: 12px !important;
    }
}

/* ==========================================================================
   Desktop Navbar (>= 992px) - Hover to open dropdowns
   ========================================================================== */
@media (min-width: 992px) {
    .navbar-right-section {
        margin-left: auto;
    }
    
    .navbar-custom .nav-link {
        padding: 0.5rem 0.7rem !important;
        font-size: 0.85rem;
    }
    
    /* All languages can show icons now since we have organized dropdowns */
    .navbar-custom .nav-link > i.bi {
        display: inline-block !important;
    }
}

/* ==========================================================================
   Large Screens (992px - 1199px) - Laptop Optimizations
   ========================================================================== */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .navbar-custom .container {
        max-width: 100%;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .navbar-custom .navbar-brand {
        font-size: 1.1rem;
        margin-right: 0.5rem;
    }
    
    .navbar-custom .navbar-nav {
        gap: 0.25rem;
    }
    
    .navbar-custom .nav-link {
        padding: 0.5rem 0.7rem !important;
        font-size: 0.85rem;
    }
    
    .navbar-custom .nav-link.nav-highlight {
        padding: 0.5rem 0.8rem !important;
        border: 1px solid rgba(255, 255, 255, 0.15);
    }
    
    /* Active state for laptop screens */
    .navbar-custom .nav-link.active,
    .navbar-custom .nav-item.active > .nav-link {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.15) 100%) !important;
        border: 2px solid rgba(255, 255, 255, 0.5) !important;
        font-weight: 600 !important;
    }
    
    /* Slightly tighter for Indian languages */
    [lang="hi"] .navbar-custom .nav-link,
    [lang="ml"] .navbar-custom .nav-link,
    [lang="ta"] .navbar-custom .nav-link,
    [lang="kn"] .navbar-custom .nav-link,
    [lang="te"] .navbar-custom .nav-link {
        font-size: 0.75rem;
        padding: 0.45rem 0.4rem !important;
    }
    
    /* Hide icons on laptop for Indian languages */
    [lang="hi"] .navbar-custom .nav-link > i.bi,
    [lang="ml"] .navbar-custom .nav-link > i.bi,
    [lang="ta"] .navbar-custom .nav-link > i.bi,
    [lang="kn"] .navbar-custom .nav-link > i.bi,
    [lang="te"] .navbar-custom .nav-link > i.bi {
        display: none !important;
    }
    
    .navbar-right-section {
        gap: 0.35rem;
    }
    
    .lang-select {
        min-width: 48px;
        font-size: 0.75rem;
        height: 30px;
        padding: 0.2rem 0.4rem;
    }
    
    .btn-user {
        font-size: 0.78rem;
        padding: 0.3rem 0.55rem;
    }
    
    .nav-subscribed, 
    .nav-sub-expiring, 
    .nav-subscribe {
        padding: 5px 10px !important;
        font-size: 0.72rem !important;
    }
    
    /* Footer adjustments for laptops */
    .footer-custom {
        padding: 2rem 0 1.25rem;
    }
    
    .footer-custom h5 {
        font-size: 0.95rem;
        margin-bottom: 0.85rem;
    }
    
    .footer-custom a {
        font-size: 0.9rem;
    }
    
    /* Card components for laptops */
    .card {
        margin-bottom: 1.35rem;
    }
    
    .card-body {
        padding: 1.35rem;
    }
    
    .card-title {
        font-size: 1.15rem;
    }
    
    /* Form elements */
    .form-control,
    .form-select {
        min-height: 42px;
        font-size: 0.95rem;
    }
    
    /* Stats and metrics */
    .stat-card,
    .metric-card {
        padding: 1.25rem;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   Extra Large Screens (>= 1200px)
   ========================================================================== */
@media (min-width: 1200px) {
    .navbar-custom .nav-link {
        padding: 0.5rem 0.8rem !important;
        font-size: 0.88rem;
    }
    
    [lang="hi"] .navbar-custom .nav-link,
    [lang="ml"] .navbar-custom .nav-link,
    [lang="ta"] .navbar-custom .nav-link,
    [lang="kn"] .navbar-custom .nav-link,
    [lang="te"] .navbar-custom .nav-link {
        font-size: 0.85rem;
        padding: 0.5rem 0.7rem !important;
    }
    
    /* Show icons on XL screens for all languages */
    [lang="hi"] .navbar-custom .nav-link > i.bi,
    [lang="ml"] .navbar-custom .nav-link > i.bi,
    [lang="ta"] .navbar-custom .nav-link > i.bi,
    [lang="kn"] .navbar-custom .nav-link > i.bi,
    [lang="te"] .navbar-custom .nav-link > i.bi {
        display: inline-block !important;
    }
    
    /* Show username on XL screens */
    .btn-user span.d-none.d-xl-inline {
        display: inline !important;
    }
}

/* ==========================================================================
   Extra Extra Large Screens (>= 1400px)
   ========================================================================== */
@media (min-width: 1400px) {
    .navbar-custom .nav-link {
        padding: 0.5rem 0.95rem !important;
    }
    
    [lang="hi"] .navbar-custom .nav-link,
    [lang="ml"] .navbar-custom .nav-link,
    [lang="ta"] .navbar-custom .nav-link,
    [lang="kn"] .navbar-custom .nav-link,
    [lang="te"] .navbar-custom .nav-link {
        padding: 0.5rem 0.8rem !important;
    }
}

/* ==========================================================================
   Footer Components
   ========================================================================== */
.footer-custom {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2.5rem 0 1.5rem;
    margin-top: auto;
}

.footer-custom a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none !important;
    transition: color 0.15s ease;
}

.footer-custom a:hover,
.footer-custom a:focus {
    color: white;
    text-decoration: none !important;
}

.footer-custom h2,
.footer-custom h3,
.footer-custom h4,
.footer-custom h5,
.footer-custom h6 {
    color: white;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-custom ul {
    margin-bottom: 0;
}

.footer-custom li {
    margin-bottom: 0.5rem;
}

/* Footer Icon Colors */
.footer-custom i.bi {
    opacity: 0.9;
    transition: all 0.15s ease;
}

.footer-custom a:hover i.bi {
    opacity: 1;
    transform: translateX(3px);
}

/* Services Section Icons */
.footer-custom .bi-moon-stars { color: #FFD700 !important; }
.footer-custom .bi-hearts { color: #FF69B4 !important; }
.footer-custom .bi-clock-history { color: #87CEEB !important; }
.footer-custom .bi-journal-text { color: #FFA500 !important; }
.footer-custom .bi-bank { color: #F0E68C !important; }
.footer-custom .bi-envelope { color: #98FB98 !important; }
.footer-custom .bi-building-check { color: #87CEFA !important; }
.footer-custom .bi-people { color: #DDA0DD !important; }
.footer-custom .bi-calendar-check { color: #90EE90 !important; }
.footer-custom .bi-person-circle { color: #FFB6C1 !important; }
.footer-custom .bi-star { color: #FFD700 !important; }
.footer-custom .bi-box-arrow-in-right { color: #98FB98 !important; }
.footer-custom .bi-person-plus { color: #87CEEB !important; }
.footer-custom .bi-info-circle { color: #ADD8E6 !important; }
.footer-custom .bi-shield-check { color: #90EE90 !important; }
.footer-custom .bi-file-text { color: #F0E68C !important; }

/* ==========================================================================
   Loading States
   ========================================================================== */
.loading-spinner {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: var(--border-radius);
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ==========================================================================
   Toast Notifications - Bootstrap 5 Compatible
   ========================================================================== */
.toast-container {
    position: fixed !important;
    top: 1rem !important;
    right: 1rem !important;
    z-index: 9999 !important;
    pointer-events: none;
}

.toast-container .toast {
    pointer-events: auto;
}

.toast {
    background: white;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    min-width: 300px;
    max-width: 400px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.toast:not(.show) { display: none; }
.toast.show { display: block; opacity: 1; animation: toastFadeIn 0.3s ease-out; }
.toast.showing { opacity: 0; }

@keyframes toastFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.toast-header {
    border-bottom: none;
    padding: 0.75rem 1rem;
    font-weight: 600;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.toast-header.bg-success { background-color: #10b981 !important; color: white !important; }
.toast-header.bg-error, .toast-header.bg-danger { background-color: #ef4444 !important; color: white !important; }
.toast-header.bg-warning { background-color: #f59e0b !important; color: white !important; }
.toast-header.bg-info { background-color: #3b82f6 !important; color: white !important; }

.toast-body {
    padding: 1rem;
    background-color: #ffffff;
    color: #1f2937;
    font-size: 0.9rem;
    line-height: 1.5;
}

.toast .btn-close { margin-left: 0.5rem; }
.toast .btn-close-white { filter: brightness(0) invert(1); }

@media (max-width: 576px) {
    .toast-container { left: 0.5rem !important; right: 0.5rem !important; width: auto !important; }
    .toast { min-width: auto; width: 100%; max-width: 100%; }
}

/* ==========================================================================
   Tooltips & Badges
   ========================================================================== */
.astro-tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
}

.astro-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 0.75rem;
    background: var(--dark-color);
    color: white;
    font-size: 0.875rem;
    border-radius: var(--border-radius);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.15s ease;
    z-index: 1000;
    pointer-events: none;
}

.astro-tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 0.5rem);
}

.astro-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 999px;
}

.badge-primary { background-color: var(--primary-color); color: white; }
.badge-success { background-color: var(--success-color); color: white; }
.badge-warning { background-color: var(--warning-color); color: white; }
.badge-premium { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; }

/* ==========================================================================
   Progress & Images
   ========================================================================== */
.progress-astro {
    height: 0.5rem;
    background-color: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar-astro {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 999px;
    transition: width 0.6s ease;
}

.img-astro { max-width: 100%; height: auto; border-radius: var(--border-radius); }
.img-cover { width: 100%; height: 100%; object-fit: cover; }
.img-contain { width: 100%; height: 100%; object-fit: contain; }

/* ==========================================================================
   Laptop Screen Responsive Optimizations (992px - 1199px)
   ========================================================================== */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .container-fluid { padding-left: 1.25rem; padding-right: 1.25rem; }
    section { padding-top: 3.5rem; padding-bottom: 3.5rem; }
    body { font-size: 0.97rem; line-height: 1.6; }
    p { margin-bottom: 0.9rem; }
    
    .display-1 { font-size: 4rem; }
    .display-2 { font-size: 3.5rem; }
    .display-3 { font-size: 3rem; }
    .display-4 { font-size: 2.5rem; }
    .display-5 { font-size: 2rem; }
    .display-6 { font-size: 1.5rem; }
    
    .row { margin-left: -0.75rem; margin-right: -0.75rem; }
    .row > * { padding-left: 0.75rem; padding-right: 0.75rem; }
    
    .card { border-radius: 0.85rem; }
    .card-header, .card-footer { padding: 1rem 1.25rem; }
    
    .table { font-size: 0.9rem; }
    .table th, .table td { padding: 0.65rem; }
    
    .modal-dialog { max-width: 550px; margin: 1.5rem auto; }
    .modal-content { border-radius: 0.85rem; }
    .modal-header, .modal-body, .modal-footer { padding: 1.25rem; }
    
    .alert { padding: 0.9rem 1.25rem; font-size: 0.9rem; }
    .list-group-item { padding: 0.85rem 1.15rem; font-size: 0.9rem; }
    .breadcrumb { padding: 0.65rem 1rem; font-size: 0.9rem; }
    .pagination { font-size: 0.9rem; }
    .page-link { padding: 0.5rem 0.85rem; }
    .badge { padding: 0.35rem 0.65rem; font-size: 0.8rem; }
    
    .dropdown-menu { font-size: 0.9rem; max-width: 280px; }
    .dropdown-item { padding: 0.5rem 1rem; }
    .nav-tabs .nav-link { padding: 0.65rem 1.15rem; font-size: 0.9rem; }
    
    .feature-box, .service-box, .info-box { padding: 1.35rem; margin-bottom: 1.35rem; }
    .feature-icon, .service-icon { width: 60px; height: 60px; font-size: 1.75rem; margin-bottom: 1rem; }
    
    .icon-sm { font-size: 1rem; }
    .icon-md { font-size: 1.5rem; }
    .icon-lg { font-size: 2.25rem; }
    .icon-xl { font-size: 3.25rem; }
    
    .mt-5, .my-5 { margin-top: 2.5rem !important; }
    .mb-5, .my-5 { margin-bottom: 2.5rem !important; }
    .pt-5, .py-5 { padding-top: 2.5rem !important; }
    .pb-5, .py-5 { padding-bottom: 2.5rem !important; }
    
    .gallery-item { margin-bottom: 1.25rem; }
    .testimonial-card { padding: 1.35rem; }
    .testimonial-avatar { width: 55px; height: 55px; }
    .pricing-card { padding: 1.75rem 1.35rem; }
    .pricing-card .price { font-size: 2.5rem; }
    .timeline-item { padding: 1.25rem; margin-bottom: 1.35rem; }
    .video-container { margin-bottom: 1.35rem; }
    .form-group { margin-bottom: 1.15rem; }
    .form-row > * { padding-left: 0.5rem; padding-right: 0.5rem; }
    .input-group-text { padding: 0.55rem 0.85rem; font-size: 0.95rem; }
    .accordion-button { padding: 1rem 1.25rem; font-size: 0.95rem; }
    .accordion-body { padding: 1.15rem 1.25rem; }
    .offcanvas { max-width: 340px; }
    .offcanvas-header, .offcanvas-body { padding: 1.25rem; }
    .social-icons a { width: 38px; height: 38px; font-size: 1.1rem; }
    .star-rating { font-size: 1.1rem; }
    .spinner-border, .spinner-grow { width: 2.5rem; height: 2.5rem; }
    .spinner-border-sm, .spinner-grow-sm { width: 1.25rem; height: 1.25rem; }
}

/* ==========================================================================
   Smooth transitions
   ========================================================================== */
@media (min-width: 992px) {
    * {
        transition-property: padding, margin, font-size;
        transition-duration: 0s;
    }
}
