/* ========================================================
   ১. গ্লোবাল এবং বেসিক ডিজাইন (সম্পূর্ণ ওয়েবসাইটের লেআউট)
   ======================================================== */
:root {
    --primary: #032EB1;
    --secondary: #064FD9;
    --royal-blue-light: #0B5CFF;
    --cyan-accent: #00B8FF;
    --gold-accent: #FFD700;
    --gold-dark: #D4AF37;
    --orange-red: #FF4500;
    --orange-accent: #FF5722;

    --bg-color: #FFFFFF;
    --surface-soft: #F4F7FC;
    --text-dark: #101828;
    --text-muted: #667085;
    --input-border: #E4E7EC;
    --card-bg: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, h1, h2, h3, h4, p, a, span, div, input, button, label {
    font-family: sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
}

.main-container {
    max-width: 480px;
    margin: 0 auto;
    background-color: var(--bg-color);
    min-height: 100vh;
    position: relative;
    padding-bottom: 85px;
}


/* ========================================================
   ২. হেডার ডিজাইন (সব পেজের উপরের মেনুবার)
   ======================================================== */
.app-header {
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--royal-blue-light));
    color: #FFFFFF;
    height: 60px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 101;
    box-shadow: 0 4px 14px rgba(3, 46, 177, 0.22);
    border-bottom: 2px solid var(--gold-accent);
}

.app-header .menu-icon,
.app-header .user-icon {
    font-size: 22px;
    cursor: pointer;
    width: 30px;
    text-align: center;
    color: #FFFFFF;
}

.app-header .site-title {
    flex: 1;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #FFFFFF;
}

.app-header .notification-icon {
    position: relative;
    font-size: 20px;
    cursor: pointer;
    width: 30px;
    text-align: center;
    color: #FFFFFF;
}

.app-header .notification-dot {
    position: absolute;
    top: -2px;
    right: 2px;
    width: 8px;
    height: 8px;
    background: var(--gold-accent);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--gold-accent);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.app-header .site-title {
    text-align: left;
    flex: none;
    font-size: 16px;
    font-weight: 700;
}


/* ========================================================
   ৩. হেডার ড্রপডাউন মেনু (লগইন/রেজিস্ট্রেশন পপআপ)
   ======================================================== */
.user-dropdown-menu {
    display: none;
    position: absolute;
    top: 60px;
    right: 15px;
    background: #FFFFFF;
    min-width: 180px;
    box-shadow: 0 8px 24px rgba(3, 46, 177, 0.16);
    border-radius: 10px;
    overflow: hidden;
    z-index: 1005;
    animation: fadeInDown 0.2s ease-in-out;
    border: 1px solid var(--input-border);
}

.user-dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border-bottom: 1px solid var(--surface-soft);
    transition: 0.3s;
}

.user-dropdown-menu a:last-child {
    border-bottom: none;
}

.user-dropdown-menu a:hover {
    background: var(--surface-soft);
    color: var(--primary);
    padding-left: 20px;
}

.user-dropdown-menu a i {
    width: 25px;
    color: var(--orange-red);
    font-size: 15px;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* ========================================================
   ৪. গ্লোবাল বাটন ডিজাইন (সকল পেজের বাটন)
   ======================================================== */
.btn {
    display: block;
    width: 100%;
    padding: 14px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 12px;
    transition: 0.3s;
    text-align: center;
    cursor: pointer;
}

.btn-solid {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: #FFFFFF;
    border: 1px solid var(--gold-dark);
    box-shadow: 0 6px 16px rgba(6, 79, 217, 0.25);
}

.btn-outline {
    background: #FFFFFF;
    color: var(--primary);
    border: 1.5px solid var(--secondary);
}


/* ========================================================
   ৫. ইউজার সাইডবার (লগইন করা ইউজারদের মেনু)
   ======================================================== */
.user-sidebar-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(16, 24, 40, 0.55);
    z-index: 1000;
    display: none;
}

.user-sidebar-content {
    width: 280px;
    height: 100%;
    background: #FFFFFF;
    position: relative;
    animation: slideInLeft 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 20px rgba(3, 46, 177, 0.15);
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.user-sidebar-header {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: #FFFFFF;
    height: 60px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--gold-accent);
}

.user-sidebar-header h3 {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    color: #FFFFFF;
}

.user-sidebar-header i {
    font-size: 22px;
    cursor: pointer;
    color: #FFFFFF;
}

.user-sidebar-profile {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--input-border);
    background: #FFFFFF;
}

.user-sidebar-profile .avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--gold-accent);
    margin-bottom: 10px;
    box-shadow: 0 6px 16px rgba(6, 79, 217, 0.18);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 45px;
    color: var(--primary);
    background: var(--surface-soft);
}

.user-sidebar-profile h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.verified-badge {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid var(--gold-accent);
    display: inline-block;
    margin-bottom: 10px;
}

.unverified-badge {
    background: var(--orange-red);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 10px;
}

.user-sidebar-profile p {
    font-size: 12px;
    color: var(--text-dark);
    margin-bottom: 5px;
    font-weight: 600;
}

.user-sidebar-profile .join-date {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: normal;
}

.user-sidebar-menu {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
    background: #FFFFFF;
}

.user-sidebar-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid var(--surface-soft);
    transition: 0.2s;
}

.user-sidebar-menu a:hover {
    background: var(--surface-soft);
    color: var(--primary);
}

.user-sidebar-menu a .menu-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-sidebar-menu a i.icon {
    width: 20px;
    text-align: center;
    color: var(--secondary);
    font-size: 18px;
}

.user-sidebar-menu a i.arrow {
    color: #98A2B3;
    font-size: 12px;
}

.user-sidebar-menu a.logout-btn {
    color: var(--orange-red);
    margin-bottom: 60px;
}

.user-sidebar-menu a.logout-btn i.icon {
    color: var(--orange-red);
}


/* ========================================================
   ৬. পাবলিক সাইডবার (লগআউট অবস্থায় থাকা ইউজারদের মেনু)
   ======================================================== */
.public-sidebar-wrapper {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(16, 24, 40, 0.55);
    z-index: 1000;
}

.public-sidebar-content {
    width: 280px;
    height: 100%;
    background: #FFFFFF;
    box-shadow: 4px 0 20px rgba(3, 46, 177, 0.15);
    position: relative;
    animation: slideInLeft 0.3s ease;
    display: flex;
    flex-direction: column;
}

.sidebar-header-block {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #FFFFFF;
    border-bottom: 2px solid var(--gold-accent);
}

.sidebar-header-block i {
    font-size: 24px;
    color: var(--gold-accent);
}

.sidebar-header-block h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
}

.public-sidebar-menu {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: #FFFFFF;
}

.sidebar-category-title {
    font-size: 13px;
    color: var(--text-muted);
    margin: 15px 0 10px 0;
    font-weight: bold;
    padding-left: 10px;
}

.sidebar-category-title:first-child {
    margin-top: 0;
}

.public-sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 10px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s;
    border-radius: 8px;
    margin-bottom: 2px;
}

.public-sidebar-menu a:hover {
    background: var(--surface-soft);
    padding-left: 15px;
    color: var(--primary);
}

.public-sidebar-menu a i {
    width: 35px;
    color: var(--secondary);
    font-size: 18px;
    text-align: left;
}

.sidebar-footer-block {
    padding: 15px;
    border-top: 1px solid var(--input-border);
    background: #FFFFFF;
    margin-top: auto;
}

.sidebar-close-btn {
    width: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: #FFFFFF;
    border: 1px solid var(--gold-dark);
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.sidebar-close-btn:active {
    transform: scale(0.98);
}


/* ========================================================
   ৭. অ্যালার্ট মেসেজ ডিজাইন (সাকসেস এবং এরর নোটিফিকেশন)
   ======================================================== */
.alert-success {
    display: flex;
    align-items: center;
    background-color: #ECFDF3;
    color: #027A48;
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    border: 1px solid #ABEFC6;
    gap: 12px;
    line-height: 1.5;
}

.alert-success i {
    color: #12B76A;
    font-size: 18px;
    flex-shrink: 0;
}

.alert-error {
    display: flex;
    align-items: center;
    background-color: #FEF3F2;
    color: #B42318;
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    border: 1px solid #FECDCA;
    gap: 12px;
    line-height: 1.5;
}

.alert-error i {
    color: var(--orange-red);
    font-size: 18px;
    flex-shrink: 0;
}


/* ========================================================
   ৮. ফুটার, বটম নেভিগেশন এবং ফ্লোটিং চ্যাট বাটন
   ======================================================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 480px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--royal-blue-light));
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    height: 65px;
    z-index: 100;
    border-top: 2px solid var(--gold-accent);
    box-shadow: 0 -4px 16px rgba(3, 46, 177, 0.2);
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    opacity: 0.8;
    transition: 0.2s;
}

.bottom-nav-item i {
    font-size: 22px;
    display: block;
    margin-bottom: 4px;
}

.bottom-nav-item.active {
    opacity: 1;
    color: var(--gold-accent);
}

.bottom-nav-item.center-float {
    position: relative;
    opacity: 1;
    justify-content: flex-end;
    padding-bottom: 8px;
}

.bottom-nav-item.center-float .float-icon-wrapper {
    position: absolute;
    top: -22px;
    background: linear-gradient(135deg, var(--orange-red), var(--orange-accent));
    width: 55px;
    height: 55px;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 4px solid var(--bg-color);
    box-shadow: 0 6px 16px rgba(255, 69, 0, 0.35), 0 0 0 2px var(--gold-accent);
}

.bottom-nav-item.center-float .float-icon-wrapper i {
    margin-bottom: 0;
    font-size: 24px;
    color: #FFFFFF;
}

footer {
    text-align: center;
    padding: 15px 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
    background: #FFFFFF;
    border-top: 1px solid var(--input-border);
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.telegram-float,
.chat-float {
    position: fixed;
    right: 50%;
    transform: translateX(200px);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #FFFFFF;
    font-size: 22px;
    text-decoration: none;
    z-index: 100;
}

.chat-float {
    bottom: 115px;
    background: linear-gradient(135deg, var(--orange-red), var(--orange-accent));
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.38);
    border: 2px solid var(--gold-accent);
}

.telegram-float {
    bottom: 78px;
    background: linear-gradient(135deg, var(--secondary), var(--cyan-accent));
    box-shadow: 0 4px 15px rgba(6, 79, 217, 0.38);
    border: 2px solid var(--gold-accent);
}

.telegram-float::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--cyan-accent);
    border-radius: 50%;
    z-index: -1;
    animation: waterRipple 1.5s infinite ease-out;
}

@keyframes waterRipple {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.6); opacity: 0; }
}


/* ========================================================
   ৯. রেসপন্সিভ ডিজাইন (ডেস্কটপ ও বড় স্ক্রিনের জন্য)
   ======================================================== */
@media (min-width: 481px) {
    .main-container {
        max-width: 100%;
    }
    .bottom-nav {
        max-width: 100%;
        left: 0;
        transform: none;
    }
    footer {
        max-width: 100%;
    }
    .telegram-float,
    .chat-float {
        right: 30px;
        transform: none;
    }
}