/* =========================================
   SALARY MANAGER PRO - ULTIMATE DESIGN SYSTEM
   Version: 4.0 (Notification Overhaul & Badge Fix)
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* --- Premium Color Palette --- */
    --primary: #4f46e5;       /* Indigo 600 - Main Brand */
    --primary-dark: #4338ca;  /* Indigo 700 */
    --primary-light: #e0e7ff; /* Indigo 100 */
    
    --secondary: #10b981;     /* Emerald - Income/Success */
    --danger: #ef4444;        /* Rose - Expense/Alert */
    --warning: #f59e0b;       /* Amber - Global Notice */
    
    --bg-body: #f8fafc;       /* Slate 50 */
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.90);
    
    --text-main: #0f172a;     /* Slate 900 */
    --text-muted: #64748b;    /* Slate 500 */
    --border: #e2e8f0;        /* Slate 200 */
    
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 15px rgba(79, 70, 229, 0.5);

    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
    
    --nav-height: 80px;
    --header-height: 70px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Dark Mode Variables --- */
body.dark-mode {
    --bg-body: #0f172a;       /* Slate 900 */
    --bg-card: #1e293b;       /* Slate 800 */
    --bg-glass: rgba(30, 41, 59, 0.90);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: #334155;
    --primary-light: rgba(79, 70, 229, 0.2);
    --shadow-sm: 0 1px 3px 0 rgba(0,0,0,0.5);
}

/* =========================================
   GLOBAL RESET & BASICS
   ========================================= */
* {
    margin: 0; padding: 0; box-sizing: border-box; 
    font-family: 'Inter', 'Hind Siliguri', sans-serif;
    -webkit-tap-highlight-color: transparent; outline: none;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    overflow: hidden; /* App-like feel */
    height: 100vh;
    transition: background-color 0.4s ease;
    -webkit-user-select: none; user-select: none; /* Prevent text selection */
}

input, textarea { -webkit-user-select: text; user-select: text; }
a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; }

/* Canvas Background */
#bg-canvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; pointer-events: none; opacity: 0.6;
}

/* App Wrapper */
.app-wrapper {
    width: 100%; height: 100%; max-width: 500px; margin: 0 auto;
    background: var(--bg-body); position: relative; display: flex;
    flex-direction: column; box-shadow: 0 0 50px rgba(0,0,0,0.1);
}





/* =========================================
   HEADER & NOTIFICATION BADGE FIX (v5.0) 🔔
   Sherlock Mode: Logic, Position & Dopamine
   ========================================= */

.app-header {
    height: var(--header-height);
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

/* User Profile Section */
.user-profile { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    cursor: pointer; 
    transition: transform 0.2s;
}
.user-profile:active { transform: scale(0.96); }

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: var(--shadow-glow);
    object-fit: cover;
    border: 2px solid #fff;
}

.user-info { display: flex; flex-direction: column; }
.greeting { font-size: 0.7rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.username { font-weight: 800; font-size: 0.95rem; color: var(--text-main); line-height: 1.2; }

.header-actions { display: flex; gap: 8px; align-items: center; }

/* Date Capsule */
.date-capsule {
    background: var(--primary-light);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    border: 1px solid rgba(79, 70, 229, 0.1);
}

/* --- 🎯 NOTIFICATION ICON & RED DOT POSITION FIX --- */
.icon-btn {
    position: relative; /* এটি খুবই গুরুত্বপূর্ণ */
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px; /* আধুনিক স্কয়ারিশ রাউন্ড */
    background: var(--bg-body);
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.icon-btn:active { transform: scale(0.9); background: var(--border); }
.icon-btn i { font-size: 1.4rem; color: var(--text-main); }

/* The Red Dot (Dopamine Trigger - Corrected Position) */
.badge-dot {
    position: absolute;
    top: 6px;    /* আইকনের ভেতর সঠিক উচ্চতা */
    right: 6px;  /* আইকনের ভেতর সঠিক দূরত্ব */
    width: 10px;
    height: 10px;
    background: #ff3b30; /* প্রিমিয়াম অ্যাপল রেড */
    border-radius: 50%;
    border: 2px solid #fff; /* ব্যাকগ্রাউন্ড থেকে আলাদা করার জন্য */
    box-shadow: 0 0 10px rgba(255, 59, 48, 0.5);
    z-index: 10;
    display: none; /* JS এর মাধ্যমে কন্ট্রোল হবে */
    animation: pulseBadge 1.5s infinite;
}

/* ডার্ক মোডে ডট বর্ডার ফিক্স */
body.dark-mode .badge-dot { border-color: var(--bg-card); }

@keyframes pulseBadge {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7); }
    70% { transform: scale(1.3); box-shadow: 0 0 0 6px rgba(255, 59, 48, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); }
}

/* =========================================
   NOTIFICATION CARDS (HYBRID & READ RECEIPT)
   ========================================= */

.notif-card {
    position: relative;
    padding: 16px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s;
    overflow: hidden;
}

/* Unread Dopamine Highlight */
.notif-card.unread {
    background: linear-gradient(90deg, var(--primary-light) 0%, var(--bg-card) 100%);
    border-left: 4px solid var(--primary);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.1);
}

/* Global Notice Style */
.notif-card.global {
    background: linear-gradient(90deg, #fffbeb 0%, var(--bg-card) 100%);
    border-left: 4px solid var(--warning);
}

body.dark-mode .notif-card.unread { background: linear-gradient(90deg, rgba(79, 70, 229, 0.1) 0%, var(--bg-card) 100%); }
body.dark-mode .notif-card.global { background: linear-gradient(90deg, rgba(245, 158, 11, 0.1) 0%, var(--bg-card) 100%); }

.notif-header { display: flex; justify-content: space-between; margin-bottom: 8px; }
.notif-title { font-weight: 700; font-size: 0.9rem; color: var(--text-main); display: flex; align-items: center; gap: 8px; }
.notif-time { font-size: 0.7rem; color: var(--text-muted); font-weight: 500; }

.notif-body { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 12px; }

/* Actions ( manageable & clickable) */
.notif-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.btn-notif-action {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    background: rgba(79, 70, 229, 0.1);
    padding: 5px 12px;
    border-radius: 8px;
    transition: 0.2s;
}

.btn-notif-action:hover { background: var(--primary); color: #fff; }

.btn-notif-delete {
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 5px;
    transition: 0.2s;
}
.btn-notif-delete:hover { color: var(--danger); transform: scale(1.1); }


/* নোটিফিকেশন কার্ডের বেস স্টাইল */
.notif-card {
    background: #fff;
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 12px;
    border: 1px solid #e2e8f0;
    position: relative;
    transition: 0.3s;
}

/* 🔵 না-পড়া (Unread) নোটিফিকেশনের বিশেষ স্টাইল */
.notif-card.unread {
    background: #f0f4ff; /* হালকা নীল ব্যাকগ্রাউন্ড */
    border-left: 5px solid #4f46e5; /* বাম পাশে নীল বর্ডার */
}

/* না-পড়া নোটিফিকেশনের ভেতর ছোট একটি ডট */
.notif-card.unread::after {
    content: '';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 8px;
    height: 8px;
    background: #4f46e5;
    border-radius: 50%;
}


/* =========================================
   MAIN CONTENT AREA
   ========================================= */
.content-area {
    flex: 1; overflow-y: auto; padding: 20px;
    padding-bottom: 100px; /* Space for Bottom Nav */
    scroll-behavior: smooth;
}
.content-area::-webkit-scrollbar { display: none; }
.tab-view { display: none; animation: fadeIn 0.4s ease; }
.tab-view.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* =========================================
   DASHBOARD CARDS & CHARTS
   ========================================= */
.balance-card {
    background: linear-gradient(135deg, var(--primary), #6366f1);
    color: white; padding: 25px; border-radius: var(--radius-lg);
    position: relative; overflow: hidden;
    box-shadow: var(--shadow-lg), 0 10px 20px rgba(79, 70, 229, 0.4);
    margin-bottom: 25px;
}
.card-pattern {
    position: absolute; top: -50px; right: -50px; width: 200px; height: 200px;
    background: rgba(255,255,255,0.1); border-radius: 50%; filter: blur(40px);
}
.card-header { display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; opacity: 0.9; margin-bottom: 10px; }
.balance-amount { font-size: 2.8rem; font-weight: 800; margin-bottom: 20px; letter-spacing: -1px; display: flex; align-items: baseline; gap: 5px; }
.currency { font-size: 1.5rem; opacity: 0.8; font-weight: 600; }
.card-footer { display: flex; gap: 10px; }
.stat-pill {
    background: rgba(255,255,255,0.2); padding: 6px 12px; border-radius: 30px;
    font-size: 0.8rem; font-weight: 600; display: flex; align-items: center; gap: 6px;
    backdrop-filter: blur(5px);
}




/* [style.css] - হোম পেজের স্ট্যাট বক্স আপডেট */

.stat-box {
    position: relative;
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* বাটনগুলোকে ক্লিক করার মতো ফিল দেওয়া */
.stat-box:active { transform: scale(0.95); }
.stat-box:hover { box-shadow: 0 10px 20px rgba(0,0,0,0.08); border-color: var(--primary); }

/* লোন বাটনের বিশেষ ডিজাইন */
.adv-box {
    border: 1px dashed var(--danger);
    background: #fff5f5;
}
.adv-plus-icon {
    position: absolute; top: 5px; right: 5px;
    background: var(--danger); color: white;
    width: 20px; height: 20px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; font-weight: bold;
    box-shadow: 0 2px 5px rgba(239, 68, 68, 0.3);
}

/* পপ-আপ মডালের হাইলাইট টেক্সট */
.highlight-text {
    font-size: 1.1rem; color: var(--text-main); line-height: 1.6; text-align: center;
}
.highlight-num {
    color: var(--primary); font-weight: 800; font-size: 1.3rem;
    background: rgba(79, 70, 229, 0.1); padding: 2px 8px; border-radius: 6px;
}
.rate-edit-icon {
    color: var(--text-muted); cursor: pointer; margin-left: 5px; font-size: 1rem;
}
.rate-edit-icon:hover { color: var(--primary); }

/* লোন লিস্টের বার (Day) এর স্টাইল */
.day-badge {
    font-size: 0.75rem; background: #f1f5f9; color: #64748b;
    padding: 2px 8px; border-radius: 4px; margin-left: 5px; font-weight: 600;
}







/* Stats Grid */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 25px; }
.stat-box {
    background: var(--bg-card); padding: 15px 5px; border-radius: var(--radius-md);
    text-align: center; box-shadow: var(--shadow-sm); border: 1px solid var(--border);
    transition: var(--transition); cursor: pointer;
}
.stat-box:active { transform: scale(0.95); }
.stat-box .icon { font-size: 1.4rem; margin-bottom: 5px; color: var(--text-muted); }
.ot-box .icon { color: var(--primary); }
.night-box .icon { color: #8b5cf6; }
.tiffin-box .icon { color: var(--secondary); }
.adv-box .icon { color: var(--danger); }
.stat-box .val { font-weight: 700; font-size: 1rem; color: var(--text-main); }
.stat-box .lbl { font-size: 0.7rem; color: var(--text-muted); margin-top: 2px; }

/* Collapsible Chart */
.section-container {
    background: var(--bg-card); border-radius: var(--radius-md);
    padding: 20px; margin-bottom: 25px;
    box-shadow: var(--shadow-sm); border: 1px solid var(--border);
}
.section-header { display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.section-header h3 { font-size: 1rem; font-weight: 700; }
.chart-container { position: relative; height: 200px; width: 100%; margin-top: 15px; }

/* =========================================
   LOGS LIST (WORK HISTORY)
   ========================================= */
.list-container { display: flex; flex-direction: column; gap: 10px; }
.log-item {
    background: var(--bg-card); padding: 15px; border-radius: var(--radius-md);
    display: flex; justify-content: space-between; align-items: center;
    border: 1px solid var(--border); transition: var(--transition);
}
.log-left h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.log-left small { font-size: 0.75rem; color: var(--text-muted); }
.log-badges { display: flex; gap: 5px; }
.badge { font-size: 0.7rem; padding: 2px 8px; border-radius: 6px; font-weight: 600; }
.badge.ot { background: var(--primary-light); color: var(--primary); }
.badge.night { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.badge.tiffin { background: rgba(16, 185, 129, 0.1); color: var(--secondary); }

/* =========================================
   PROFILE PAGE & SETTINGS
   ========================================= */
.profile-header-card {
    text-align: center; padding: 30px 20px; background: var(--bg-card);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    margin: -20px -20px 20px -20px; border-bottom: 1px solid var(--border);
}

/* Avatar Upload Style */
.avatar-wrapper {
    position: relative; width: 90px; height: 90px; margin: 0 auto 15px;
    border-radius: 50%; overflow: hidden; cursor: pointer;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4); border: 3px solid var(--bg-card);
}
.avatar-wrapper img, .default-avatar { width: 100%; height: 100%; object-fit: cover; }
.default-avatar {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white; font-size: 2.5rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.upload-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%;
    background: rgba(0, 0, 0, 0.5); padding: 5px; text-align: center;
    color: white; opacity: 0; transition: 0.3s;
}
.avatar-wrapper:hover .upload-overlay { opacity: 1; }

/* Progress Bar */
.progress-container { width: 100%; background: var(--border); border-radius: 12px; margin-top: 10px; display: none; height: 6px; overflow: hidden; }
.progress-bar { width: 0%; height: 100%; background: var(--secondary); transition: width 0.3s ease; }
.upload-stats { font-size: 0.7rem; color: var(--text-muted); margin-top: 5px; display: none; font-weight: 700; }

.version-tag { background: var(--primary-light); color: var(--primary); padding: 4px 12px; border-radius: 10px; font-size: 0.75rem; font-weight: 800; }
.btn-edit-profile { margin-top: 15px; padding: 8px 20px; border: 1px solid var(--border); border-radius: 20px; font-size: 0.8rem; font-weight: 600; color: var(--text-main); }

/* Settings List */
.settings-list { background: var(--bg-card); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); }
.setting-item { display: flex; align-items: center; gap: 15px; padding: 15px 20px; border-bottom: 1px solid var(--border); cursor: pointer; }
.setting-item:last-child { border-bottom: none; }
.setting-item .icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.1rem; }
.bg-blue { background: #3b82f6; } .bg-dark { background: #334155; } .bg-red { background: #fee2e2; color: #ef4444 !important; }
.setting-item .text { flex: 1; font-weight: 500; font-size: 0.95rem; }

/* =========================================
   MODALS, FORMS & AUTH
   ========================================= */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
    z-index: 1000; display: none; align-items: flex-end; justify-content: center;
}
.modal-content {
    background: var(--bg-card); width: 100%; max-width: 500px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: 25px;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.2);
    animation: slideUp 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    max-height: 90vh; overflow-y: auto;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.close-btn { font-size: 2rem; cursor: pointer; color: var(--text-muted); line-height: 1; }

.input-group { margin-bottom: 15px; position: relative; }
.input-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; color: var(--text-muted); }
.form-control {
    width: 100%; padding: 14px; background: var(--bg-body);
    border: 2px solid var(--border); border-radius: var(--radius-sm);
    font-size: 1rem; color: var(--text-main); transition: 0.2s;
}
.form-control:focus { border-color: var(--primary); background: var(--bg-card); }

.btn-primary {
    background: var(--primary); color: white; padding: 15px; border-radius: var(--radius-md);
    font-weight: 700; font-size: 1rem; box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    transition: 0.2s; width: 100%; display: flex; justify-content: center; align-items: center;
}
.btn-primary:active { transform: scale(0.98); }

/* Auth Specific */
.auth-section { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 30px; }
.auth-header { margin-bottom: 40px; text-align: center; }
.auth-form .icon { position: absolute; left: 16px; top: 16px; color: var(--text-muted); font-size: 1.2rem; }
.auth-form input { padding-left: 48px; }
.toggle-pass { position: absolute; right: 15px; top: 16px; color: var(--text-muted); cursor: pointer; }

/* Range & Checkbox */
.range-group { margin-bottom: 25px; background: var(--bg-body); padding: 15px; border-radius: var(--radius-md); border: 1px solid var(--border); }
.range-header { display: flex; justify-content: space-between; margin-bottom: 10px; font-weight: 600; }
.checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 25px; }
.check-box-card input { display: none; }
.card-inner {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    padding: 20px; background: var(--bg-body); border: 2px solid var(--border);
    border-radius: var(--radius-md); cursor: pointer; transition: 0.2s; color: var(--text-muted);
}
.check-box-card input:checked + .card-inner { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
/* Absent Mode Fix */
.absent-card input:checked + #absent-ui { background-color: #fee2e2 !important; border-color: #ef4444 !important; color: #ef4444; }

/* =========================================
   NAVIGATION & UTILITIES
   ========================================= */
/* --- Bottom Nav Fix --- */
.bottom-nav {
    position: fixed; 
    bottom: 0; 
    /* আগে left: 0 ছিল, সেটা বাদ দিয়ে নিচের ৩টি লাইন দিন */
    left: 50%; 
    transform: translateX(-50%); /* এটা এলিমেন্টকে একদম মাঝখানে রাখবে */
    width: 100%; 
    max-width: 500px; /* আমাদের অ্যাপের সাইজের সাথে মিল রেখে লিমিট */
    
    height: var(--nav-height);
    background: var(--bg-glass); 
    backdrop-filter: blur(15px); 
    border-top: 1px solid var(--border);
    display: flex; 
    justify-content: space-around; 
    align-items: center; 
    padding-bottom: 15px; 
    z-index: 500;
    /* ডেস্কটপে যেন বর্ডারগুলো সুন্দর দেখায় */
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
}
.nav-item {
    display: flex; flex-direction: column; align-items: center; color: var(--text-muted);
    font-size: 0.7rem; font-weight: 500; gap: 4px; padding: 10px; cursor: pointer;
}
.nav-item.active { color: var(--primary); } .nav-item i { font-size: 1.5rem; }


/* --- FAB Button Responsive Fix (Mobile + Desktop) --- */
.fab-container {
    position: fixed;
    bottom: 90px; /* নেভিগেশন বারের ঠিক উপরে */
    z-index: 600;

    /* ১. মোবাইলের জন্য ডিফল্ট সেটিং */
    /* মোবাইলে বাটনটি সবসময় ডানদিকের দেয়াল থেকে ২০ পিক্সেল দূরে থাকবে */
    right: 20px; 
    left: auto;
    transform: none;
    margin-left: 0;
}

/* ২. বড় স্ক্রিন বা ডেস্কটপ (৫২০ পিক্সেলের বেশি চওড়া হলে) */
@media (min-width: 520px) {
    .fab-container {
        /* এখানে আমরা বাটনটিকে মাঝখানের কন্টেইনারের সাপেক্ষে পজিশন করছি */
        left: 50%;
        right: auto; /* মোবাইলের right: 20px বাতিল */
        
        /* ক্যালকুলেশন: 
           অ্যাপের অর্ধেক ২৫০px। 
           সেখান থেকে বাটনকে ডানদিকে সরাতে হবে।
           ১৮০px সরালে এটি অ্যাপের বর্ডারের ভেতরে সুন্দরভাবে বসে থাকবে। 
        */
        margin-left: 180px; 
    }
}






.fab-btn {
    width: 56px; height: 56px; background: var(--primary); color: white;
    border-radius: 18px; font-size: 1.5rem; box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.5);
    display: flex; align-items: center; justify-content: center;
}

#toast-container { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 2000; width: 90%; max-width: 400px; }
.toggle-switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-color: #cbd5e1; transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: var(--primary); }
input:checked + .slider:before { transform: translateX(20px); }

/* Driver.js Overrides (Tutorial) */
.driver-popover { background: var(--bg-card) !important; color: var(--text-main) !important; border-radius: 16px !important; }
.driver-popover-title { color: var(--primary) !important; font-weight: 800 !important; }
.driver-popover-description { color: var(--text-muted) !important; }




/* --- Month Picker Grid --- */
.month-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* ৩ কলাম */
    gap: 12px;
    margin-bottom: 25px;
}

.m-item {
    padding: 12px 5px;
    text-align: center;
    background: var(--bg-body);
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    color: var(--text-muted);
}

.m-item:active { transform: scale(0.95); }

.m-item.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

/* Year Selector */
.year-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-body);
    padding: 10px 20px;
    border-radius: 16px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.year-selector button {
    font-size: 1.2rem;
    color: var(--primary);
    background: var(--primary-light);
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    transition: 0.2s;
}

.year-selector button:active { background: var(--primary); color: white; }
#year-display { font-size: 1.4rem; font-weight: 800; color: var(--text-main); }


/* =========================================
   TOAST NOTIFICATION STYLES
   ========================================= */
.toast-msg {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 30px;
    margin-top: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    animation: slideDownToast 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

/* Success/Error Colors handle by JS, but defaults: */
.toast-msg.success { background: #10b981; color: white; }
.toast-msg.error { background: #ef4444; color: white; }
.toast-msg.warning { background: #f59e0b; color: white; }

@keyframes slideDownToast {
    from { opacity: 0; transform: translateY(-30px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}


/* =========================================
   AUTH STEPS & BUTTONS (Multi-step Form)
   ========================================= */
.step-content {
    display: none;
    animation: fadeIn 0.4s ease;
}
.step-content.active { display: block; }

.btn-block { width: 100%; display: flex; justify-content: center; gap: 10px; }

.btn-row {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.btn-secondary {
    flex: 1;
    background: var(--bg-body);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 14px;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: 0.2s;
}
.btn-secondary:active { background: var(--border); }

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 14px;
    border-radius: var(--radius-md);
    font-weight: 700;
    width: 100%;
    margin-top: 10px;
    cursor: pointer;
}
.btn-outline-primary:active { background: var(--primary-light); }


/* =========================================
   DRIVER.JS (TUTORIAL) CUSTOMIZATION
   ========================================= */
.driver-popover {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(15px) !important;
    border-radius: 24px !important;
    border: 1px solid rgba(255,255,255,0.5) !important;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2) !important;
    padding: 20px !important;
    color: var(--text-main) !important;
}

.driver-popover-title {
    color: var(--primary) !important;
    font-weight: 800 !important;
    font-size: 1.2rem !important;
    margin-bottom: 8px !important;
}

.driver-popover-description {
    line-height: 1.6 !important;
    color: var(--text-muted) !important;
    font-size: 0.95rem !important;
}

.driver-popover-footer button {
    background: var(--primary) !important;
    color: white !important;
    border-radius: 12px !important;
    padding: 8px 18px !important;
    font-weight: 700 !important;
    text-shadow: none !important;
    border: none !important;
}

.driver-popover-close-btn {
    color: var(--text-muted) !important;
}

/* Dark Mode fixes for Driver.js */
body.dark-mode .driver-popover {
    background: rgba(30, 41, 59, 0.98) !important;
    border-color: rgba(255,255,255,0.1) !important;
}


/* =========================================
   RESPONSIVE TWEAKS (MEDIA QUERIES)
   ========================================= */
/* For very small devices (iPhone SE) */
@media (max-width: 360px) {
    .balance-amount { font-size: 2.2rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .nav-item span { display: none; } /* Hide labels in nav */
    .nav-item i { font-size: 1.8rem; }
}

/* For larger screens (Tablet/Desktop Wrapper) */
@media (min-width: 501px) {
    body {
        background-color: #e2e8f0; /* Darker bg outside app */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .app-wrapper {
        border-radius: 30px;
        overflow: hidden;
        height: 95vh;
        border: 8px solid white;
    }
}

/* =========================================
   AUTH PAGES (LOGIN & REGISTER) - PREMIUM UI
   ========================================= */

/* মেইন কন্টেইনার */
.auth-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px 25px;
    background: #f8fafc; /* স্লেট ব্যাকগ্রাউন্ড */
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    animation: fadeIn 0.5s ease-out;
}

/* লোগো এবং হেডার */
.auth-header {
    margin-bottom: 40px;
    text-align: center;
}

.auth-header img {
    width: 80px;
    height: 80px;
    border-radius: 22px;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.2);
    margin-bottom: 20px;
}

.auth-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.auth-header p {
    color: #64748b;
    font-size: 0.95rem;
}

/* ইনপুট গ্রুপ ফিক্স (আইকন ওভারল্যাপ সমস্যা সমাধান) */
.auth-form .input-group {
    position: relative;
    margin-bottom: 20px;
    width: 100%;
}

.auth-form .input-group i.icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.25rem;
    pointer-events: none;
    z-index: 10;
}

/* ইনপুট ফিল্ড স্টাইল */
.auth-form input {
    width: 100% !important;
    padding: 16px 16px 16px 52px !important; /* বাম পাশে জায়গা রাখা হয়েছে আইকনের জন্য */
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.auth-form input:focus {
    border-color: #4f46e5;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    transform: translateY(-1px);
}

/* পাসওয়ার্ড টগল আইকন পজিশন */
.toggle-pass {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 20;
    padding: 5px;
    transition: color 0.2s;
}

.toggle-pass:hover {
    color: #4f46e5;
}

/* বাটন ডিজাইন */
.btn-block {
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #4f46e5;
    color: white;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

.btn-primary:active {
    transform: scale(0.98);
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid #4f46e5;
    color: #4f46e5;
    margin-top: 15px;
}

/* রেজিস্ট্রেশন স্টেপস এনিমেশন */
.step-content {
    display: none;
    animation: slideIn 0.4s ease-out;
}

.step-content.active {
    display: block;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ফুটার সেকশন */
.auth-footer {
    margin-top: 40px;
    text-align: center;
    border-top: 1px solid #e2e8f0;
    padding-top: 25px;
}

.auth-footer p {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 10px;
}

.btn-text {
    color: #4f46e5;
    font-weight: 700;
    font-size: 0.95rem;
    background: none;
    border: none;
    cursor: pointer;
}

.profile-footer-info {
    text-align: center;
    margin-top: 20px;
    padding-bottom: 20px;
    font-size: 0.8rem;
    color: #94a3b8; /* হালকা স্লেট কালার */
    font-weight: 600;
    letter-spacing: 0.5px;
    opacity: 0.7;
}

/* =========================================
   ULTRA-MODERN PROFILE DESIGN - v5.0
   Features: Mesh Gradient, Glassmorphism, Dark Mode
   ========================================= */

/* Profile Hero Section - Slim & Enhanced */
.profile-hero-section {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(241, 245, 249, 1) 100%);
    /* Background Pattern */
    background-image: radial-gradient(at 0% 0%, rgba(79, 70, 229, 0.05) 0px, transparent 50%),
                      radial-gradient(at 100% 0%, rgba(139, 92, 246, 0.05) 0px, transparent 50%);
    padding: 40px 20px 30px;
    text-align: center;
    position: relative;
    border-radius: 0 0 40px 40px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}

/* Dark Mode Hero */
body.dark-mode .profile-hero-section {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    background-image: radial-gradient(at 0% 0%, rgba(79, 70, 229, 0.15) 0px, transparent 50%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-header-actions {
    position: absolute;
    top: 15px;
    width: calc(100% - 40px);
    display: flex;
    justify-content: space-between;
    z-index: 10;
}

.icon-btn-lite {
    width: 38px; height: 38px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: #475569; font-size: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: 0.3s;
}

body.dark-mode .icon-btn-lite {
    background: rgba(30, 41, 59, 0.7);
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.1);
}

/* Slim Avatar Container */
.avatar-container {
    width: 105px; height: 105px;
    margin: 0 auto 12px;
    position: relative;
    padding: 4px;
    background: linear-gradient(135deg, #4f46e5, #8b5cf6);
    border-radius: 50%;
    box-shadow: 0 12px 30px rgba(79, 70, 229, 0.25);
}

.main-avatar, .main-avatar-placeholder {
    width: 100%; height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff; /* Inner Border */
}

body.dark-mode .main-avatar, 
body.dark-mode .main-avatar-placeholder {
    border-color: #1e293b;
}

.camera-badge {
    position: absolute; bottom: 2px; right: 2px;
    background: #4f46e5; width: 30px; height: 30px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15); color: #fff;
    border: 2px solid #fff; font-size: 0.9rem;
}

body.dark-mode .camera-badge { border-color: #1e293b; }

/* Text & Badges */
.user-display-name { font-size: 1.3rem; font-weight: 800; color: #0f172a; margin-bottom: 4px; }
body.dark-mode .user-display-name { color: #f8fafc; }

.user-meta-info { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 12px; }
.version-badge { background: #4f46e5; color: #fff; padding: 2px 10px; border-radius: 20px; font-size: 0.7rem; font-weight: 700; }
.user-status-tag { color: #64748b; font-size: 0.8rem; font-weight: 600; }
body.dark-mode .user-status-tag { color: #94a3b8; }

.btn-glass-edit {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(79, 70, 229, 0.2);
    padding: 8px 20px; border-radius: 12px;
    font-size: 0.85rem; font-weight: 700; color: #4f46e5;
    display: inline-flex; align-items: center; gap: 6px;
    transition: 0.3s;
}

body.dark-mode .btn-glass-edit {
    background: rgba(79, 70, 229, 0.1);
    color: #a5b4fc;
    border-color: rgba(79, 70, 229, 0.3);
}

/* Slim & Grouped Settings */
.settings-container { padding: 0 16px; }
.settings-group { margin-bottom: 20px; }
.group-title { 
    font-size: 0.75rem; font-weight: 800; color: #94a3b8; 
    text-transform: uppercase; letter-spacing: 1.2px; 
    margin: 0 0 10px 8px; 
}

.setting-card {
    background: #fff; padding: 12px 14px;
    border-radius: 18px; margin-bottom: 8px;
    display: flex; align-items: center; gap: 12px;
    border: 1px solid rgba(241, 245, 249, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.01);
    transition: 0.2s; cursor: pointer;
}

body.dark-mode .setting-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.03);
}

.setting-card:active { transform: scale(0.97); background: #f8fafc; }
body.dark-mode .setting-card:active { background: #334155; }

.s-icon {
    width: 38px; height: 38px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}

.s-text { flex: 1; font-weight: 600; color: #334155; font-size: 0.9rem; }
body.dark-mode .s-text { color: #e2e8f0; }

.s-arrow { color: #cbd5e1; font-size: 1.1rem; opacity: 0.7; }

/* Icon Backgrounds - Modern Colors */
.bg-indigo { background: #eef2ff; color: #4f46e5; }
.bg-amber { background: #fffbeb; color: #f59e0b; }
.bg-slate { background: #f1f5f9; color: #475569; }
.bg-whatsapp { background: #ecfdf5; color: #10b981; }
.bg-red-soft { background: #fff1f2; color: #ef4444; }

body.dark-mode .bg-indigo { background: rgba(79, 70, 229, 0.15); color: #818cf8; }
body.dark-mode .bg-amber { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
body.dark-mode .bg-slate { background: rgba(148, 163, 184, 0.15); color: #cbd5e1; }
body.dark-mode .bg-whatsapp { background: rgba(16, 185, 129, 0.15); color: #34d399; }
body.dark-mode .bg-red-soft { background: rgba(239, 68, 68, 0.15); color: #f87171; }

/* Footer Info */
.profile-footer-info {
    text-align: center; font-size: 0.75rem; color: #94a3b8;
    margin-top: 10px; padding-bottom: 20px; font-weight: 500;
}

/* Uploading Overlay */
.upload-loader { 
    position: absolute; inset: 0; 
    background: rgba(255,255,255,0.85); 
    border-radius: 50%; display: none; 
    align-items: center; justify-content: center; z-index: 5; 
}
body.dark-mode .upload-loader { background: rgba(15, 23, 42, 0.85); }
/* --- Floating Version Tag --- */
.version-tag-floating {
    position: absolute;
    top: 20px;
    right: 70px; /* শেয়ার বাটনের পাশে */
    background: rgba(79, 70, 229, 0.1);
    color: #4f46e5;
    padding: 2px 10px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 800;
    border: 1px solid rgba(79, 70, 229, 0.2);
    letter-spacing: 0.5px;
    z-index: 5;
}

body.dark-mode .version-tag-floating {
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    border-color: rgba(255, 255, 255, 0.1);
}

/* --- Active Status Indicator with Animation --- */
.active-status-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 18px;
    background: rgba(16, 185, 129, 0.08); /* হালকা সবুজ ব্যাকগ্রাউন্ড */
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    padding: 4px 12px;
    border-radius: 20px;
}

body.dark-mode .active-status-container {
    background: rgba(16, 185, 129, 0.12);
}

.user-status-tag {
    color: #059669; /* Emerald Green */
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

body.dark-mode .user-status-tag {
    color: #34d399;
}

/* Pulse Animation Dot */
.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    position: relative;
}

.pulse-dot::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #10b981;
    border-radius: 50%;
    z-index: -1;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* --- Hero Section Slimming --- */
.profile-hero-section {
    padding: 50px 20px 30px; /* ভার্সন ট্যাগের জন্য একটু জায়গা বাড়ানো */
}

.user-display-name {
    margin-bottom: 2px; /* স্ট্যাটাসের সাথে গ্যাপ কমানো */
}

/* =========================================
   MODERN REPORT BUTTON - PREMIUM v5.1
   ========================================= */
.btn-report-modern {
    background: rgba(79, 70, 229, 0.1); /* হালকা ইন্ডিগো ব্যাকগ্রাউন্ড */
    border: 1px solid rgba(79, 70, 229, 0.2);
    padding: 6px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4f46e5;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.05);
}

.btn-report-modern i {
    font-size: 1.1rem;
    transition: transform 0.3s;
}

.btn-report-modern:hover {
    background: #4f46e5;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-report-modern:hover i {
    transform: translateY(-2px); /* সামান্য উপরে উঠে আসবে */
}

.btn-report-modern:active {
    transform: scale(0.95);
}

/* Dark Mode Support */
body.dark-mode .btn-report-modern {
    background: rgba(79, 70, 229, 0.15);
    border-color: rgba(79, 70, 229, 0.3);
    color: #a5b4fc;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

body.dark-mode .btn-report-modern:hover {
    background: #4f46e5;
    color: #ffffff;
}

/* sticky header adjustment */
.section-header.sticky-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    background: var(--bg-body);
    position: sticky;
    top: 0;
    z-index: 50;
}

/* =========================================
   ULTRA-SLIM LOGBOOK HEADER & BUTTON
   ========================================= */

.slim-logs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5px;
    margin-bottom: 12px;
    border-bottom: 0.5px solid rgba(0,0,0,0.08); /* একদম পাতলা বর্ডার */
}

body.dark-mode .slim-logs-header {
    border-color: rgba(255, 255, 255, 0.08);
}

.slim-logs-header h3 {
    font-size: 0.95rem; /* ছোট এবং স্লিম ফন্ট */
    font-weight: 700;
    color: #475569;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

body.dark-mode .slim-logs-header h3 {
    color: #94a3b8;
}

/* --- THE SLIM REPORT BUTTON --- */
.btn-slim-report {
    background: rgba(79, 70, 229, 0.06); /* হালকা ট্রান্সপারেন্ট ব্যাকগ্রাউন্ড */
    color: #4f46e5;
    padding: 4px 12px; /* খুব কম প্যাডিং */
    border: 0.5px solid rgba(79, 70, 229, 0.3); /* চিকন নীল বর্ডার */
    border-radius: 8px; /* অল্প রাউন্ডেড */
    font-size: 0.75rem; /* ছোট ফন্ট সাইজ */
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

/* ডার্ক মোডে বাটনের চেহারা */
body.dark-mode .btn-slim-report {
    background: rgba(255, 255, 255, 0.05);
    color: #a5b4fc;
    border-color: rgba(255, 255, 255, 0.1);
}

/* হোভার করলে হালকা ইফেক্ট */
.btn-slim-report:active {
    background: #4f46e5;
    color: #fff;
    transform: scale(0.96);
}

.btn-slim-report i {
    font-size: 0.9rem;
}
/* --- Slim OT Selector Grid --- */
.ot-selector-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* এক লাইনে ৪টি করে বাটন */
    gap: 8px;
    margin-top: 5px;
}

.ot-num-btn {
    background: #fff;
    border: 0.5px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 10px 0;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-mode .ot-num-btn {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

/* একটিভ বাটনের স্টাইল */
.ot-num-btn.active {
    background: #4f46e5;
    color: #fff;
    border-color: #4f46e5;
    transform: scale(0.95);
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2);
}

body.dark-mode .ot-num-btn.active {
    background: #6366f1;
    color: #fff;
}
/* --- Slim Header Total OT Style --- */
.header-total-ot {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b; /* স্লেট কালার */
}

.header-total-ot i {
    font-size: 1.1rem;
    color: #4f46e5; /* আইকন নীল */
}

.header-total-ot strong {
    color: #0f172a; /* নাম্বার কালার আরও গাঢ় */
    font-size: 1rem;
    font-weight: 800;
}

body.dark-mode .header-total-ot strong {
    color: #f1f5f9;
}



/* =========================================
   CUTE ACTION BUTTONS (EDIT & DELETE)
   ========================================= */

.action-btn-group {
    display: flex;
    gap: 8px; /* আইকন দুটির মাঝখানের গ্যাপ */
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 10px; /* একটু রাউন্ডেড স্কয়ার (Squircle) যা কিউট লাগে */
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* বাউন্সি এনিমেশন */
}

/* ক্লিক করলে ছোট হয়ে বাউন্স করবে */
.action-btn:active {
    transform: scale(0.85);
}

/* --- Edit Button (Cute Blue/Indigo) --- */
.btn-edit-cute {
    background-color: #eef2ff; /* একদম হালকা নীল */
    color: #6366f1; /* সুন্দর ইন্ডিকো কালার */
}

/* --- Delete Button (Soft Red/Rose) --- */
.btn-delete-cute {
    background-color: #fff1f2; /* একদম হালকা লাল */
    color: #f43f5e; /* রোজ কালার */
}

/* ডার্ক মোড সাপোর্ট */
body.dark-mode .btn-edit-cute {
    background-color: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
}

body.dark-mode .btn-delete-cute {
    background-color: rgba(244, 63, 94, 0.15);
    color: #fda4af;
}

/* না-পড়া নোটিফিকেশন (Unread) */
.notif-card.unread {
    background: #eff6ff; /* হালকা আকাশী নীল */
    border-left: 5px solid #4f46e5; /* বাম পাশে গাড় নীল বর্ডার */
}

/* পড়া নোটিফিকেশন (Read) */
.notif-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    transition: 0.3s ease;
    position: relative;
    padding-right: 45px; /* ডিলিট বাটনের জন্য জায়গা */
}

/* ডিলিট বাটন স্টাইল */
.btn-notif-delete {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: #ef4444;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.6;
    transition: 0.2s;
}
.btn-notif-delete:hover { opacity: 1; transform: translateY(-50%) scale(1.1); }

/* --- PREMIUM LOG MODAL ENHANCEMENT --- */

/* ১. মডাল কন্টেন্টকে আরও সুন্দর করা */
.modal-content {
    border-radius: 32px 32px 0 0; /* উপরে আরও বেশি রাউন্ড */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ২. ওটি গ্রিড বাটনগুলোকে প্রিমিয়াম লুক দেওয়া */
.ot-num-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ot-num-btn:hover {
    border-color: var(--primary);
    background: #fff;
    transform: translateY(-2px);
}

.ot-num-btn.active {
    background: linear-gradient(135deg, var(--primary), #6366f1) !important;
    color: white !important;
    border: none;
    box-shadow: 0 8px 15px rgba(79, 70, 229, 0.3);
}

/* ৩. নাইট ও টিফিন বাটনকে কার্ড স্টাইল দেওয়া */
.check-box-card .card-inner {
    padding: 15px;
    background: #f1f5f9;
    border: 2px solid transparent;
    border-radius: 18px;
    font-weight: 700;
}

.check-box-card input:checked + .card-inner {
    background: #fff;
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* ৪. মেইন সেভ বাটনকে আরও বোল্ড করা */
.btn-primary {
    background: linear-gradient(90deg, #4f46e5, #6366f1);
    height: 55px;
    font-size: 1.1rem;
    letter-spacing: 1px;
    border-radius: 18px;
    box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.4);
}

/* ৫. অনুপস্থিত মোড (Absent Mode) কার্ড ডিজাইন */
.absent-card .card-inner {
    border: 1px solid #fee2e2;
    background: #fffcfc;
}

/* Driver.js Popover Fix */
.driver-popover {
    z-index: 2000000 !important; /* সবকিছুর উপরে */
    max-width: 280px !important;
    border-radius: 20px !important;
}

/* Nuclear Sync Box Enhancement */
#nuclear-logs {
    background: #0f172a !important; /* ডার্ক থিম */
    color: #38bdf8 !important; /* নিওন ব্লু টেক্সট */
    border: 1px solid #1e293b;
    line-height: 1.8;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
}