/* ========================================================
   ১. গ্লোবাল এবং বেসিক ডিজাইন (সম্পূর্ণ ওয়েবসাইটের লেআউট)
   ======================================================== */
:root {
    --primary: #38bdf8;
    --secondary: #818cf8;
    --bg-color: #ffffff;      /* ব্যাকগ্রাউন্ড সাদা */
    --text-light: #333333;    /* লেখার কালার ডার্ক */
    --text-dark: #333333;
    --text-sub: #555555;
    --text-muted: #888888;
    --input-border: #dddddd;
    --card-bg: #f8fafc;       /* কার্ডের ব্যাকগ্রাউন্ড হালকা অফ-হোয়াইট/সাদা */
}

* { 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-light); }

.main-container {
    max-width: 480px; margin: 0 auto; background-color: var(--bg-color);
    min-height: 100vh; position: relative; padding-bottom: 75px; 
}


/* ========================================================
   ২. হেডার ডিজাইন (সব পেজের উপরের মেনুবার)
   ======================================================== */
.app-header {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    color: var(--text-light); 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 20px rgba(0, 0, 0, 0.08);
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, #38bdf8, #818cf8, #f43f5e, #fbbf24, #34d399) 1;
}

.app-header .menu-icon, .app-header .user-icon { font-size: 22px; cursor: pointer; width: 30px; text-align: center; color: #0284c7; }
.app-header .site-title { flex: 1; text-align: center; font-size: 16px; font-weight: 800; letter-spacing: 0.5px; background: linear-gradient(90deg, #0284c7, #818cf8, #f43f5e); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.app-header .notification-icon { position: relative; font-size: 20px; cursor: pointer; width: 30px; text-align: center; color: #0284c7; }
.app-header .notification-dot { position: absolute; top: -2px; right: 2px; width: 8px; height: 8px; background: #f43f5e; border-radius: 50%; box-shadow: 0 0 8px #f43f5e; }

.header-left { display: flex; align-items: center; gap: 15px; }
.app-header .site-title { text-align: left; flex: none; font-size: 16px; font-weight: 800; }


/* ========================================================
   ৩. হেডার ড্রপডাউন মেনু (লগইন/রেজিস্ট্রেশন পপআপ)
   ======================================================== */
.user-dropdown-menu {
    display: none; position: absolute; top: 60px; right: 15px; 
    background: #ffffff; min-width: 170px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); 
    border-radius: 12px; overflow: hidden; z-index: 1005;
    animation: fadeInDown 0.2s ease-in-out; border: 1.5px solid #e2e8f0;
}
.user-dropdown-menu a {
    display: flex; align-items: center; padding: 12px 15px; 
    color: #333333; text-decoration: none; font-size: 13px; font-weight: 600; 
    border-bottom: 1px solid #f1f5f9; transition: 0.3s;
}
.user-dropdown-menu a:last-child { border-bottom: none; }
.user-dropdown-menu a:hover { background: rgba(56, 189, 248, 0.1); color: #0284c7; padding-left: 20px; }
.user-dropdown-menu a i { width: 25px; color: #0284c7; 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: 14px; font-size: 14px; font-weight: 700; text-decoration: none; margin-bottom: 12px; transition: 0.3s; text-align: center; }
.btn-solid { background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 50%, #8b5cf6 100%); color: #ffffff; border: none; box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3); }
.btn-outline { background: transparent; color: #1d4ed8; border: 1.5px solid #1d4ed8; box-shadow: 0 0 10px rgba(29, 78, 216, 0.1); }


/* ========================================================
   ৫. ইউজার সাইডবার (লগইন করা ইউজারদের মেনু)
   ======================================================== */
.user-sidebar-wrapper { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1000; display: none; }
.user-sidebar-content { width: 280px; height: 100%; background: #ffffff; color: #333333; position: relative; animation: slideInLeft 0.3s ease; display: flex; flex-direction: column; }
@keyframes slideInLeft { from { transform: translateX(-100%); } to { transform: translateX(0); } }

.user-sidebar-header { background: #f8fafc; color: #333333; height: 60px; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1.5px solid #e2e8f0; }
.user-sidebar-header h3 { font-size: 18px; font-weight: 700; text-transform: uppercase; color: #0284c7; }
.user-sidebar-header i { font-size: 22px; cursor: pointer; color: #0284c7; }

.user-sidebar-profile { padding: 20px; text-align: center; border-bottom: 1px solid #e2e8f0; }
.user-sidebar-profile .avatar { width: 100px; height: 100px; border-radius: 50%; border: 2.5px solid #8b5cf6; margin-bottom: 10px; box-shadow: 0 0 20px rgba(139, 92, 246, 0.2); display: inline-flex; justify-content: center; align-items: center; font-size: 45px; color: #0284c7; background: #f1f5f9; }
.user-sidebar-profile h4 { font-size: 16px; font-weight: 700; color: #333333; margin-bottom: 8px; display: flex; align-items: center; justify-content: center; gap: 5px; }

.verified-badge { background: linear-gradient(135deg, #059669, #34d399); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 15px; border-radius: 20px; display: inline-block; margin-bottom: 10px; box-shadow: 0 0 10px rgba(52, 211, 153, 0.3); }
.unverified-badge { background: linear-gradient(135deg, #dc2626, #f87171); color: #fff; 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: #555555; margin-bottom: 5px; font-weight: 600; }
.user-sidebar-profile .join-date { font-size: 11px; color: #888888; font-weight: normal; }

.user-sidebar-menu { flex: 1; overflow-y: auto; padding: 10px 0; }
.user-sidebar-menu a { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; color: #333333; text-decoration: none; font-size: 14px; font-weight: 600; border-bottom: 1px solid #f1f5f9; transition: 0.2s; }
.user-sidebar-menu a:hover { background: rgba(56, 189, 248, 0.1); color: #0284c7; }
.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: #8b5cf6; font-size: 18px; }
.user-sidebar-menu a i.arrow { color: #cbd5e1; font-size: 12px; }
.user-sidebar-menu a.logout-btn { color: #dc2626; margin-bottom: 60px; }
.user-sidebar-menu a.logout-btn i.icon { color: #dc2626; }


/* ========================================================
   ৬. পাবলিক সাইডবার (লগআউট অবস্থায় থাকা ইউজারদের মেনু)
   ======================================================== */
.public-sidebar-wrapper { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1000; }
.public-sidebar-content { width: 280px; height: 100%; background: #ffffff; color: #333333; box-shadow: 2px 0 20px rgba(0,0,0,0.15); position: relative; animation: slideInLeft 0.3s ease; display: flex; flex-direction: column; }

.sidebar-header-block { background: #f8fafc; padding: 20px; display: flex; align-items: center; gap: 15px; color: #333333; border-bottom: 1.5px solid #e2e8f0; }
.sidebar-header-block i { font-size: 24px; color: #0284c7; }
.sidebar-header-block h3 { margin: 0; font-size: 18px; font-weight: 700; color: #0284c7; }

.public-sidebar-menu { flex: 1; overflow-y: auto; padding: 15px; }
.sidebar-category-title { font-size: 13px; color: #0284c7; 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: #333333; text-decoration: none; font-weight: 600; font-size: 14px; transition: 0.3s; border-radius: 8px; margin-bottom: 2px; }
.public-sidebar-menu a:hover { background: rgba(56, 189, 248, 0.1); padding-left: 15px; color: #0284c7; }
.public-sidebar-menu a i { width: 35px; color: #8b5cf6; font-size: 18px; text-align: left; }

.sidebar-footer-block { padding: 15px; border-top: 1px solid #e2e8f0; margin-top: auto; }
.sidebar-close-btn { width: 100%; background: linear-gradient(135deg, #1d4ed8 0%, #8b5cf6 50%, #06b6d4 100%); color: #fff; border: none; padding: 12px; border-radius: 12px; font-size: 16px; font-weight: bold; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 10px; transition: 0.3s; box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3); }
.sidebar-close-btn:active { transform: scale(0.98); }


/* ========================================================
   ৭. অ্যালার্ট মেসেজ ডিজাইন
   ======================================================== */
.alert-success { display: flex; align-items: center; background-color: #ecfdf5; color: #065f46; padding: 12px 15px; border-radius: 12px; margin-bottom: 20px; font-size: 13px; font-weight: 600; text-align: left; border: 1.5px solid #a7f3d0; gap: 12px; line-height: 1.5; }
.alert-success i { color: #059669; font-size: 18px; flex-shrink: 0; }

.alert-error { display: flex; align-items: center; background-color: #fef2f2; color: #991b1b; padding: 12px 15px; border-radius: 12px; margin-bottom: 20px; font-size: 13px; font-weight: 600; text-align: left; border: 1.5px solid #fecaca; gap: 12px; line-height: 1.5; }
.alert-error i { color: #dc2626; font-size: 18px; flex-shrink: 0; }


/* ========================================================
   ৮. ফুটার, বটম নেভিগেশন এবং ফ্লোটিং চ্যাট বাটন
   ======================================================== */
.bottom-nav { 
    position: fixed; 
    bottom: 0; 
    width: 100%; 
    max-width: 480px; 
    left: 50%; 
    transform: translateX(-50%); 
    background: #ffffff; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 0;
    height: 65px; 
    z-index: 100; 
    border-top: 2px solid transparent;
    border-image: linear-gradient(90deg, #38bdf8, #818cf8, #f43f5e, #fbbf24, #34d399) 1;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
}

.bottom-nav-item { 
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center; 
    color: #555555; 
    text-decoration: none; 
    font-size: 12px; 
    font-weight: 600;
    opacity: 0.8; 
    transition: 0.3s;
}

.bottom-nav-item i { 
    font-size: 22px; 
    display: block; 
    margin-bottom: 4px; 
}

.bottom-nav-item.active { 
    opacity: 1; 
    color: #0284c7;
}

.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, #38bdf8 0%, #818cf8 50%, #f43f5e 100%);
    width: 55px;
    height: 55px;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 5px solid #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.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: #555555; background: #ffffff; border-top: 1px solid #e2e8f0; position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; z-index: 99; }

.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: 105px; background: linear-gradient(135deg, #f43f5e, #fbbf24); box-shadow: 0 4px 15px rgba(244, 63, 94, 0.3); }

.telegram-float { bottom: 75px; background: linear-gradient(135deg, #0284c7, #38bdf8); box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3); }
.telegram-float::after { content: ''; position: absolute; width: 100%; height: 100%; background: inherit; 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%; left: 0; transform: none; }
    .telegram-float, .chat-float { right: 30px; transform: none; }
}