/* ========================================================
   ১. গ্লোবাল এবং বেসিক ডিজাইন (সম্পূর্ণ ওয়েবসাইটের লেআউট)
   ======================================================== */
:root {
    --primary: #E2136E;
    --secondary: #E2136E;
    --bg-color: #FDF8F5;
    --text-dark: #333333;
    --text-muted: #888888;
    --input-border: #EEEEEE;
    --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: 75px; 
}


/* ========================================================
   ২. হেডার ডিজাইন (সব পেজের উপরের মেনুবার)
   ======================================================== */
.app-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;
    position: sticky; top: 0; z-index: 101; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.app-header .menu-icon, .app-header .user-icon { font-size: 22px; cursor: pointer; width: 30px; text-align: center; }
.app-header .site-title { flex: 1; text-align: center; font-size: 16px; font-weight: 700; letter-spacing: 0.5px; }
.app-header .notification-icon { position: relative; font-size: 20px; cursor: pointer; width: 30px; text-align: center; }
.app-header .notification-dot { position: absolute; top: -2px; right: 2px; width: 8px; height: 8px; background: #ffffff; border-radius: 50%; }

.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: 170px; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.15); 
    border-radius: 8px; overflow: hidden; z-index: 1005;
    animation: fadeInDown 0.2s ease-in-out; border: 1px solid #eee;
}
.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 #f5f5f5; transition: 0.3s;
}
.user-dropdown-menu a:last-child { border-bottom: none; }
.user-dropdown-menu a:hover { background: #fdfdfd; color: var(--primary); padding-left: 20px; }
.user-dropdown-menu a i { width: 25px; color: var(--secondary); 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: 600; text-decoration: none; margin-bottom: 12px; transition: 0.3s; text-align: center; }
.btn-solid { background: #ffffff; color: var(--primary); border: none; }
.btn-outline { background: transparent; color: #ffffff; border: 1px solid #ffffff; }


/* ========================================================
   ৫. ইউজার সাইডবার (লগইন করা ইউজারদের মেনু)
   ======================================================== */
.user-sidebar-wrapper { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); 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; }
@keyframes slideInLeft { from { transform: translateX(-100%); } to { transform: translateX(0); } }

.user-sidebar-header { background: linear-gradient(90deg, var(--primary), var(--secondary)); color: #fff; height: 60px; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; }
.user-sidebar-header h3 { font-size: 18px; font-weight: 700; text-transform: uppercase; }
.user-sidebar-header i { font-size: 22px; cursor: pointer; }

.user-sidebar-profile { padding: 20px; text-align: center; border-bottom: 1px solid var(--input-border); }
.user-sidebar-profile .avatar { width: 100px; height: 100px; border-radius: 50%; border: 2px solid var(--primary); margin-bottom: 10px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); display: inline-flex; justify-content: center; align-items: center; font-size: 45px; color: var(--primary); background: #FFF6F0; }
.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: var(--secondary); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 15px; border-radius: 20px; display: inline-block; margin-bottom: 10px; }
.unverified-badge { background: #e74c3c; 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: 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; }
.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 #fcfcfc; transition: 0.2s; }
.user-sidebar-menu a:hover { background: #FFF6F0; }
.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: #cccccc; font-size: 12px; }
.user-sidebar-menu a.logout-btn { color: #e74c3c; margin-bottom: 60px; }
.user-sidebar-menu a.logout-btn i.icon { color: #e74c3c; }


/* ========================================================
   ৬. পাবলিক সাইডবার (লগআউট অবস্থায় থাকা ইউজারদের মেনু)
   ======================================================== */
.public-sidebar-wrapper { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 1000; }
.public-sidebar-content { width: 280px; height: 100%; background: #ffffff; box-shadow: 2px 0 10px rgba(0,0,0,0.1); 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; }
.sidebar-header-block i { font-size: 24px; }
.sidebar-header-block h3 { margin: 0; font-size: 18px; font-weight: 700; }

.public-sidebar-menu { flex: 1; overflow-y: auto; padding: 15px; }
.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: #f9f9f9; 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 #f5f5f5; margin-top: auto; }
.sidebar-close-btn { width: 100%; background: linear-gradient(90deg, var(--primary), var(--secondary)); color: #fff; border: none; 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: #edf7ed; color: #1e4620; padding: 12px 15px; border-radius: 8px; margin-bottom: 20px; font-size: 13px; font-weight: 600; text-align: left; border: 1px solid #c8e6c9; gap: 12px; line-height: 1.5; }
.alert-success i { color: #2e7d32; font-size: 18px; flex-shrink: 0; }

.alert-error { display: flex; align-items: center; background-color: #fdeded; color: #5f2120; padding: 12px 15px; border-radius: 8px; margin-bottom: 20px; font-size: 13px; font-weight: 600; text-align: left; border: 1px solid #f8bbd0; gap: 12px; line-height: 1.5; }
.alert-error i { color: #d32f2f; 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)); 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 0;
    height: 65px; 
    z-index: 100; 
}

.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; 
}

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

.bottom-nav-item.active { 
    opacity: 1; 
}

.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(90deg, var(--primary), var(--secondary));
    width: 55px;
    height: 55px;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 5px solid var(--bg-color);
    box-shadow: 0 -3px 8px rgba(0,0,0,0.05);
}

.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: #333333; background: #ffffff; border-top: 1px solid #EEEEEE; 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: #FF4B2B; box-shadow: 0 4px 15px rgba(255, 75, 43, 0.4); }

.telegram-float { bottom: 75px; background: #2AABEE; box-shadow: 0 4px 15px rgba(42, 171, 238, 0.4); }
.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; }
}
