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

:root {
    --primary-color: #dc3545;
    --primary-gradient: linear-gradient(135deg, #dc3545, #b02a37);
    --secondary-gradient: linear-gradient(135deg, #0f172a, #1e293b);
    --bg-color: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --card-bg: #ffffff;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --border-radius: 12px;
    --transition-speed: 0.3s;
}

/* Global Animations and Smoothness */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: 'Anek Bangla', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    margin: 0;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Keyframes for Entry Effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Entry Animation Classes */
.animate-up {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-fade {
    animation: fadeIn 0.8s ease-in-out forwards;
}

.animate-scale {
    animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Base utilities */
.glass-panel {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

/* Custom Cards */
.custom-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.custom-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(220, 53, 69, 0.1);
}

/* Premium Hover for Links & Buttons */
.btn {
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 10px 24px;
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(0.95);
}

.btn-primary-custom {
    background: var(--primary-gradient);
    color: white !important;
    border: none;
    box-shadow: 0 8px 15px rgba(220, 53, 69, 0.25);
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(220, 53, 69, 0.35);
    filter: brightness(1.1);
}

/* Navbar Enhancements */
.navbar {
    transition: background 0.3s ease, padding 0.3s ease;
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 70%;
}

/* Forms with Glow */
.form-control, .form-select {
    border-radius: 12px;
    padding: 12px 18px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1);
    transform: translateY(-1px);
}

/* Smooth Image Hover */
img {
    transition: transform 0.5s ease;
}

.hover-zoom:hover img {
    transform: scale(1.08);
}

/* Loading States (Pulse) */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

.loading-pulse {
    animation: pulse 1.5s infinite ease-in-out;
}

/* Mobile Bottom Navigation (Premium) */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: radial-gradient(circle at 50% 0, transparent 38px, rgba(255, 255, 255, 0.98) 39px);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: none;
    z-index: 2000;
    padding: 12px 10px;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.1);
    border-radius: 35px 35px 0 0;
    overflow: visible;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

body {
    padding-top: 85px; /* Offset for fixed header on all devices */
}

@media (max-width: 991px) {
    body {
        padding-top: 75px; /* Slightly smaller offset for mobile header */
        padding-bottom: 90px; /* Offset for bottom nav */
    }
    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }
}

.nav-item-mobile {
    text-align: center;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 700;
    transition: all 0.3s ease;
    padding: 5px;
    border-radius: 12px;
}

.nav-item-mobile i {
    font-size: 1.6rem;
    display: block;
    margin-bottom: 2px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-item-mobile span {
    display: block;
    font-size: 0.65rem;
    opacity: 0.8;
}

.nav-item-central {
    background: linear-gradient(135deg, #FF1E56 0%, #8B0000 100%);
    color: white !important;
    width: 70px;
    height: 70px;
    border-radius: 50% !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
    transform: translateY(-35px);
    box-shadow: 
        0 15px 35px rgba(225, 29, 72, 0.4),
        0 0 0 5px rgba(255, 255, 255, 1);
    border: 1px solid rgba(255,255,255,0.2);
    z-index: 10;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    animation: elitePulse 2s infinite ease-in-out;
}

@keyframes elitePulse {
    0% { box-shadow: 0 15px 35px rgba(225, 29, 72, 0.4), 0 0 0 0 rgba(225, 29, 72, 0.4); }
    70% { box-shadow: 0 15px 35px rgba(225, 29, 72, 0.4), 0 0 0 12px rgba(225, 29, 72, 0); }
    100% { box-shadow: 0 15px 35px rgba(225, 29, 72, 0.4), 0 0 0 0 rgba(225, 29, 72, 0); }
}

.search-box-inner {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-item-central i {
    font-size: 3.2rem !important;
    margin: 0 !important;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    background: linear-gradient(to bottom, #fff, #fecaca);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-item-central span {
    position: absolute;
    top: 38%;
    left: 45%;
    transform: translate(-50%, -50%);
    font-size: 0.55rem !important;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    white-space: nowrap;
}

.nav-item-central:hover {
    transform: translateY(-45px) rotate(45deg) scale(1.05);
    box-shadow: 0 20px 45px rgba(225, 29, 72, 0.5);
}

/* Active Indicator Dot */
.nav-item-mobile.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color);
}

.nav-item-central.active::after {
    background: white;
    bottom: 5px;
    box-shadow: 0 0 10px white;
}

.nav-item-mobile.active {
    color: var(--primary-color);
}

.nav-item-mobile.active i {
    animation: iconPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(-5px) scale(1.2);
    text-shadow: 0 10px 15px rgba(225, 29, 72, 0.3);
}

@keyframes iconPop {
    0% { transform: scale(0.8) translateY(0); }
    50% { transform: scale(1.3) translateY(-8px); }
    100% { transform: scale(1.2) translateY(-5px); }
}

.nav-item-mobile:active {
    transform: scale(0.9);
}

.nav-item-mobile:hover i {
    transform: translateY(-3px) scale(1.1);
}

/* High-End Super App Header */
.navbar-ultra {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 2000;
}

/* Hybrid Navbar: Full-Width Mobile + Standard Desktop */
.navbar-ultra {
    background: transparent !important;
    border: none !important;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 2000;
    transition: all 0.3s ease;
    padding: 0 !important;
}

@media (min-width: 992px) {
    .navbar-ultra {
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 12px 0 !important;
        border-bottom: 1px solid rgba(225, 29, 72, 0.08) !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
    }
}

.mobile-header-wrapper {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border-bottom: 1px solid rgba(225, 29, 72, 0.08);
}

.brand-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-pill img {
    height: 32px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.05));
}

.brand-pill span {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.5px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.action-pill-group {
    display: flex;
    gap: 8px;
}

.action-pill {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 1.2rem;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
}

.action-pill.active {
    background: rgba(225, 29, 72, 0.05);
    color: var(--primary-color);
    border-color: rgba(225, 29, 72, 0.1);
}

.avatar-wrapper {
    position: relative;
    padding: 2px;
    background: linear-gradient(45deg, #FF1E56, #E11D48);
    border-radius: 15px;
}

.avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 13px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: bold;
    overflow: hidden;
}

.status-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: #10B981;
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.action-pill.has-update::after {
    content: '';
    position: absolute;
    top: 5px;
    right: 5px;
    width: 8px;
    height: 8px;
    background: #10B981;
    border-radius: 50%;
    border: 2px solid white;
    animation: dotPulse 2s infinite;
}

@keyframes dotPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Minimalist High-End Preloader Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-box {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 120px;
    height: 120px;
}

.loader-logo-static {
    width: 60px;
    height: auto;
    z-index: 10;
    animation: logo-fade-pulse 2s infinite ease-in-out;
}

.premium-spinner {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 30%, #E11D48);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #fff 0);
    mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #fff 0);
    animation: spin-ultra 1s linear infinite;
}

@keyframes spin-ultra {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes logo-fade-pulse {
    0%, 100% { opacity: 0.5; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
/* Premium Full-Width Navigation (Desktop) */
@media (min-width: 992px) {
    .navbar-ultra {
        margin-top: 0;
        border-radius: 0 !important;
        max-width: 100%;
        left: 0 !important;
        transform: none;
        padding: 12px 0 !important;
        box-shadow: 0 4px 20px rgba(0,0,0,0.03) !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        position: fixed !important;
        top: 0;
        width: 100%;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
}

@media (min-width: 992px) { body { padding-top: 75px; } }
