/* === গ্লোবাল স্টাইল === */
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #0056b3; /* প্রধান রঙ (নীল) */
    --secondary-color: #003d80;
    --light-bg: #f8f9fa;
    --dark-text: #333;
    --light-text: #f1f1f1;
    --border-color: #dee2e6;
    --success-color: #28a745;
    --error-color: #dc3545;
}

body {
    font-family: 'Hind Siliguri', 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--light-bg);
    color: var(--dark-text);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

* {
    box-sizing: border-box;
}

/* === লগইন কন্টেইনার === */
.login-container {
    background-color: #ffffff;
    padding: 2.5rem 3rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    margin: 20px;
    text-align: center;
}

.login-container h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 2rem;
    font-weight: 700;
}

.login-container .subtitle {
    margin-bottom: 2rem;
    font-size: 1rem;
    color: #6c757d;
}

/* === ফর্ম স্টাইল === */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #495057;
}

.form-group input {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Hind Siliguri', sans-serif;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 0.9rem;
    border: none;
    border-radius: 5px;
    background-color: var(--primary-color);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: var(--secondary-color);
}

/* === মেসেজ (এরর/সাকসেস) === */
/* এই অংশটি মুছে ফেলা হয়েছে, কারণ আমরা SweetAlert2 ব্যবহার করবো */


/* === ড্যাশবোর্ড স্টাইল === */
.dashboard-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f4f7f6;
    align-items: stretch; /* রি-সেট */
    justify-content: flex-start; /* রি-সেট */
}

/* সাইডবার (Sidebar) */
.sidebar {
    position: fixed;
    top: 0;
    left: -260px; /* ডিফল্টভাবে লুকানো */
    width: 260px;
    height: 100%;
    background-color: #004a99;
    color: var(--light-text);
    padding-top: 20px;
    transition: left 0.3s ease;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar.active {
    left: 0; /* সাইডবার দেখানোর জন্য */
}

.sidebar-header {
    padding: 0 20px 20px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #ffffff;
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0 0 0;
    margin: 0;
}

.sidebar-menu li a {
    display: block;
    padding: 15px 25px;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
    border-left: 4px solid transparent;
}

.sidebar-menu li a:hover,
.sidebar-menu li.active a {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-left-color: #ffc107; /* অ্যাক্টিভ মেনু হাইলাইট */
}

/* ড্যাশবোর্ড মেইন কন্টেন্ট */
.main-content {
    flex-grow: 1;
    transition: margin-left 0.3s ease;
    margin-left: 0; /* যখন সাইডবার বন্ধ */
    padding: 0;
}

/* টপবার (Top Bar) */
.topbar {
    background-color: #ffffff;
    padding: 15px 25px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 900;
}

.hamburger-menu {
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary-color);
}

.user-profile a {
    color: var(--error-color);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer; /* লগআউটের জন্য কার্সার পরিবর্তন */
}

/* ড্যাশবোর্ডের মূল কন্টেন্ট এলাকা */
.content-area {
    padding: 2rem;
}

/* রেসপন্সিভ ডিজাইন */
@media (min-width: 768px) {
    /* বড় স্ক্রিনে সাইডবার সবসময় খোলা থাকবে */
    .sidebar {
        left: 0;
    }
    .main-content {
        margin-left: 260px; /* সাইডবারের প্রস্থ */
    }
    .hamburger-menu {
        display: none; /* বড় স্ক্রিনে হ্যামবার্গার মেনু হাইড */
    }
}

/* ছোট স্ক্রিনের জন্য সাইডবার ওভারলে */
@media (max-width: 767px) {
    .sidebar.active {
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
    }
    /* যখন সাইডবার খোলা, তখন কন্টেন্ট ফেইড হবে */
    .content-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
    }
    .sidebar.active + .main-content .content-overlay {
        display: block;
    }
}
