:root { 
    --bg-color: #e0e8f3; --card-bg: #e0e8f3; --text-color: #2c385e; --text-muted: #7a869a; --border-color: transparent; --navbar-bg: #e0e8f3; --primary: #3b82f6; --sidebar-width: 380px;
    --nm-shadow-out: 6px 6px 12px rgba(163, 177, 198, 0.6), -6px -6px 12px rgba(255, 255, 255, 0.8); --nm-shadow-in: inset 4px 4px 8px rgba(163, 177, 198, 0.6), inset -4px -4px 8px rgba(255, 255, 255, 0.8); --nm-shadow-nav: 0 4px 15px rgba(163, 177, 198, 0.5);
}
body.dark-theme { 
    --bg-color: #1e2530; --card-bg: #1e2530; --text-color: #e2e8f0; --text-muted: #8a99ad; --border-color: transparent; --navbar-bg: #1e2530; --primary: #38bdf8;
    --nm-shadow-out: 6px 6px 12px rgba(15, 20, 26, 0.7), -4px -4px 10px rgba(42, 51, 66, 0.6); --nm-shadow-in: inset 4px 4px 8px rgba(15, 20, 26, 0.8), inset -4px -4px 8px rgba(42, 51, 66, 0.6); --nm-shadow-nav: 0 4px 15px rgba(15, 20, 26, 0.5);
}
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; transition: background 0.25s, color 0.25s, box-shadow 0.25s; }
html, body { height: 100%; width: 100%; overflow: hidden; background-color: var(--bg-color); color: var(--text-color); }
.navbar { 
    background-color: rgba(224, 232, 243, 0.85); 
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 70px; 
    z-index: 1000; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 0 24px; 
    box-shadow: var(--nm-shadow-nav); 
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}
body.dark-theme .navbar {
    background-color: rgba(30, 37, 48, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-left { display: flex; align-items: center; gap: 16px; }
.nav-logo { color: var(--text-color); font-size: 22px; font-weight: 700; cursor: pointer; letter-spacing: -0.5px; display: flex; align-items: center; }
.hamburger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; z-index: 1001; }
.hamburger span { display: block; width: 22px; height: 3px; background-color: var(--text-color); border-radius: 2px; }

/* ট্রান্সপারেন্ট গ্লাসফিক্স নেভবার ড্রপডাউন */
.nav-container { 
    display: none; 
    flex-direction: column; 
    position: absolute; 
    top: 70px; 
    left: 0; 
    width: 290px; 
    max-width: 85vw;
    background: rgba(224, 232, 243, 0.75); 
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.45);
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
    border-bottom-right-radius: 18px;
    padding: 20px 16px; 
    gap: 16px; 
    box-shadow: 0 16px 36px rgba(0,0,0,0.12); 
    max-height: calc(100vh - 70px); 
    overflow-y: auto; 
    -webkit-overflow-scrolling: touch; 
    z-index: 1002;
    transition: background 0.3s, box-shadow 0.3s;
}
body.dark-theme .nav-container {
    background: rgba(30, 37, 48, 0.8);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 36px rgba(0,0,0,0.45);
}
.nav-container.active { display: flex; }
.nav-menu { 
    list-style: none; 
    display: flex; 
    flex-direction: column; 
    width: 100%; 
    gap: 8px; 
    padding-bottom: 30px; 
}

.nav-menu li a { 
    color: var(--text-color); 
    text-decoration: none; 
    cursor: pointer; 
    font-size: 14px; 
    font-weight: 600; 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    padding: 10px 14px; 
    border-radius: 10px; 
    transition: all 0.2s ease;
}
.nav-menu li a:hover { 
    box-shadow: var(--nm-shadow-in); 
    color: var(--primary); 
    background: rgba(255, 255, 255, 0.4);
}
body.dark-theme .nav-menu li a:hover {
    background: rgba(255, 255, 255, 0.06);
}
.nav-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.btn-theme-toggle { background: var(--bg-color); color: #fbbf24; border: none; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; box-shadow: var(--nm-shadow-out); display: flex; align-items: center; justify-content: center; font-size: 16px; }
body.dark-theme .btn-theme-toggle { color: #38bdf8; }
.btn-profile-toggle { background: var(--bg-color); color: var(--text-color); border: none; padding: 11px 20px; border-radius: 12px; cursor: pointer; font-size: 13px; font-weight: 600; box-shadow: var(--nm-shadow-out); display: flex; align-items: center; }
.btn-profile-toggle:hover { color: var(--primary); }
.btn-logout { background: var(--bg-color); color: #ef4444; border: none; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; box-shadow: var(--nm-shadow-out); display: flex; align-items: center; justify-content: center; }
.dashboard-wrapper { margin-top: 70px; display: flex; height: calc(100vh - 70px); width: 100%; position: relative; }
.sidebar-overlay { position: fixed; top: 70px; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.2); backdrop-filter: blur(4px); z-index: 998; opacity: 0; pointer-events: none; transition: 0.3s ease; }
.sidebar-overlay.open { opacity: 1; pointer-events: auto; }
.sidebar-panel { position: fixed; top: 70px; left: calc(-1 * var(--sidebar-width)); width: var(--sidebar-width); height: calc(100vh - 70px); background: var(--card-bg); display: flex; flex-direction: column; z-index: 999; transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 5px 0 25px rgba(0,0,0,0.05); }
.sidebar-panel.open { left: 0; }
.btn-sidebar-close { position: absolute; top: 18px; right: 18px; background: none; border: none; font-size: 20px; color: var(--text-muted); cursor: pointer; z-index: 10; }
.sidebar-header { padding: 20px 20px 10px 20px; text-align: center; flex-shrink: 0; }
.profile-avatar-wrapper { position: relative; width: 75px; height: 75px; margin: 0 auto 10px; padding: 5px; background: var(--bg-color); border-radius: 50%; box-shadow: var(--nm-shadow-in); }
.profile-avatar-wrapper img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.sidebar-header h3 { font-size: 15px; font-weight: 700; color: var(--text-color); }
.sidebar-header p { color: var(--text-muted); font-size: 12px; margin-top: 2px; }
.sidebar-menu-list { flex: 1; overflow-y: auto; padding: 15px; display: flex; flex-direction: column; gap: 10px; -webkit-overflow-scrolling: touch; }
.sidebar-menu-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; cursor: pointer; transition: 0.2s; background: var(--bg-color); box-shadow: var(--nm-shadow-out); }
.sidebar-menu-item:hover, .sidebar-menu-item.active { box-shadow: var(--nm-shadow-in); color: var(--primary); }
.sidebar-menu-item .menu-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }

.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeIn 0.3s ease; }
.info-section h4 { font-size: 13px; font-weight: 700; color: var(--text-color); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.edit-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.edit-field label { font-size: 12px; font-weight: 600; color: var(--text-muted); padding-left: 4px; }
.edit-field input, .edit-field textarea { width: 100%; padding: 12px 14px; border: none; border-radius: 12px; font-size: 13px; background: var(--bg-color); color: var(--text-color); outline: none; box-shadow: var(--nm-shadow-in); }
.btn-save { width: 100%; background: var(--bg-color); color: var(--text-color); border: none; padding: 14px; border-radius: 12px; cursor: pointer; font-size: 13px; font-weight: 700; box-shadow: var(--nm-shadow-out); }
.btn-save:hover { color: var(--primary); }
.todo-input-group { display: flex; gap: 10px; margin-bottom: 16px; }
.todo-list, .inbox-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.todo-item, .msg-item { background: var(--bg-color); padding: 14px; border-radius: 14px; font-size: 13px; display: flex; justify-content: space-between; align-items: center; box-shadow: var(--nm-shadow-out); }
.todo-item.done { text-decoration: line-through; opacity: 0.6; box-shadow: var(--nm-shadow-in); color: var(--text-muted); }
.msg-item { flex-direction: column; align-items: flex-start; gap: 8px; }
.msg-header { width: 100%; display: flex; justify-content: space-between; font-size: 11px; color: var(--text-muted); font-weight: 600; }
.msg-body { font-size: 13px; line-height: 1.4; color: var(--text-color); }
.saved-code-item { background: var(--bg-color); padding: 12px; border-radius: 10px; margin-top: 10px; position: relative; box-shadow: var(--nm-shadow-out); }
.divider { margin: 20px 0 15px; position: relative; display: flex; align-items: center; justify-content: center; }
.divider::before { content: ""; position: absolute; width: 100%; height: 2px; background: linear-gradient(90deg, rgba(163,177,198,0) 0%, rgba(163,177,198,0.4) 50%, rgba(163,177,198,0) 100%); }
body.dark-theme .divider::before { background: linear-gradient(90deg, rgba(15,20,26,0) 0%, rgba(15,20,26,0.6) 50%, rgba(15,20,26,0) 100%); }
.divider span { background: var(--bg-color); padding: 0 12px; position: relative; font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 10000; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--bg-color); color: var(--text-color); padding: 14px 24px; border-radius: 12px; font-size: 13px; font-weight: 600; box-shadow: var(--nm-shadow-out); display: flex; align-items: center; gap: 8px; animation: slideUp 0.3s ease; }
.content-container { width: 100%; height: 100%; background: var(--bg-color); z-index: 1; display: flex; flex-direction: column; overflow: hidden; }
.web-frame { width: 100%; height: 100%; border: none; flex: 1; min-height: 0; }
.hidden { display: none !important; }

/* লাইভ ব্রডকাস্ট ব্যানার স্টাইল */
.dashboard-broadcast-banner {
    display: none;
    width: 100%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    padding: 10px 20px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.25);
    position: relative;
    z-index: 10;
    flex-shrink: 0;
    transition: all 0.3s ease;
    animation: fadeIn 0.3s ease;
}
.broadcast-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}
.broadcast-banner-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    font-size: 13.5px;
    margin-bottom: 3px;
    gap: 12px;
}
.broadcast-banner-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.broadcast-banner-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}
#broadcast-banner-time {
    font-size: 11px;
    opacity: 0.85;
    font-weight: normal;
}
.broadcast-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}
.broadcast-close-btn:hover {
    background: rgba(255, 255, 255, 0.38);
    transform: scale(1.08);
}
.broadcast-banner-body {
    font-size: 12.5px;
    opacity: 0.95;
    line-height: 1.45;
    white-space: pre-wrap;
}
.broadcast-banner-btn-wrap {
    margin-top: 6px;
}
.broadcast-btn {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    font-size: 11.5px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    transition: background 0.2s ease, transform 0.2s ease;
}
.broadcast-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

@media (max-width: 480px) {
    .navbar { padding: 0 12px; } .nav-left { gap: 8px; } .nav-logo { font-size: 16px !important; transform: scale(0.9); }
    .nav-actions { gap: 6px !important; } .btn-profile-toggle { padding: 8px 10px !important; font-size: 11px !important; }
    .sidebar-panel { width: 320px; left: -330px; } .sidebar-panel.open { left: 0; }
    .sidebar-content { padding-bottom: 70px; }
}
