/* === গ্লোবাল স্টাইল === */
@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);
}


/* === ড্যাশবোর্ড স্টাইল === */
.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);
    overflow-y: auto; /* যদি মেনু লম্বা হয়, স্ক্রল করার জন্য */
}

.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 i {
    margin-right: 12px;
    width: 20px; /* আইকনগুলোর জন্য নির্দিষ্ট জায়গা */
    text-align: center;
}

.sidebar-menu li a:hover,
.sidebar-menu li.active a {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-left-color: #ffc107; /* অ্যাক্টিভ মেনু হাইলাইট */
}

/* === নতুন: সাইডবার ডিভাইডার === */
.sidebar-divider {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 1rem 1.5rem;
}

/* === নতুন: সাবমেনু স্টাইল === */
.sidebar-menu li.has-submenu a.submenu-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-menu li.has-submenu a.submenu-toggle span {
    flex-grow: 1; /* লেখা যেন মাঝখানে থাকে */
}

.sidebar-menu .submenu-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

/* যখন সাবমেনু খোলা, অ্যারো ঘুরবে */
.sidebar-menu li.has-submenu.open > a.submenu-toggle .submenu-arrow {
    transform: rotate(180deg);
}

.submenu {
    list-style: none;
    padding-left: 0;
    margin: 0;
    background-color: rgba(0, 0, 0, 0.15); /* সাবমেনুর ব্যাকগ্রাউন্ড */
    
    /* ডিফল্টভাবে সাবমেনু হাইড করা */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

/* যখন সাবমেনু খোলা, তখন দেখানো */
.sidebar-menu li.has-submenu.open > .submenu {
    max-height: 500px; /* একটি বড় মান দেওয়া হলো */
    transition: max-height 0.3s ease-in;
}

.submenu li a {
    padding-left: 3.5rem; /* সাবমেনু আইটেম ইনডেন্ট করা */
    font-size: 0.95rem;
    color: #d1d1d1;
    border-left: none; /* সাবমেনুর হাইলাইট বর্ডার বাদ দেওয়া */
}

.submenu li a:hover,
.submenu li.active a {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-left: none;
}
/* === সাবমেনু স্টাইল শেষ === */


/* ড্যাশবোর্ড মেইন কন্টেন্ট */
.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;
    }
}

/* === পেজ হেডার === */
.page-header {
    margin-bottom: 2rem;
}
.page-header h1 {
    margin: 0;
    font-size: 2rem;
    color: var(--dark-text);
}

/* === ফর্ম কন্টেইনার === */
.form-container {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    max-width: 700px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 1.5rem;
}

.form-group-flex {
    flex: 1;
    min-width: 200px;
}

.form-group-full {
    width: 100%;
}

.form-group-flex label,
.form-group-full label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #495057;
}

.form-group-flex input[type="text"],
.form-group-flex input[type="number"],
.form-group-flex input[type="date"],
.form-group-full input[type="text"],
.form-group-full textarea {
    width: 100%;
    padding: 0.8rem 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-full textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group-flex input:focus,
.form-group-full input:focus,
.form-group-full textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

/* === Flatpickr (Date Picker) স্টাইল === */
input.flatpickr-input {
    background-color: #fff;
    cursor: pointer;
}

/* === অ্যানালাইসিস কার্ড === */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 2rem;
}
.stat-card {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.stat-card .icon {
    font-size: 2.5rem;
    padding: 15px;
    border-radius: 50%;
    color: #fff;
}
.stat-card .icon.cash { background-color: var(--success-color); }
.stat-card .icon.check { background-color: var(--primary-color); }
.stat-card .icon.total { background-color: #fd7e14; }

.stat-card .info h3 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: #6c757d;
    font-weight: 500;
}
.stat-card .info p {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-text);
}

/* === অ্যানালাইসিস ট্যাব === */
.analysis-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 1.5rem;
}
.tab-button {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    background-color: #fff;
    color: var(--primary-color);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}
.tab-button:hover {
    background-color: #f8f9fa;
}
.tab-button.active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

/* === ফিল্টার সেকশন === */
.filter-section {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}
.filter-section form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 20px;
}
.filter-section .form-group-flex {
    margin-bottom: 0;
}
.filter-total {
    margin-top: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-text);
}
.filter-total span {
    color: var(--success-color);
}

/* === খরচ লিস্ট টেবিল === */
.expense-list {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.expense-table-container {
    width: 100%;
    overflow-x: auto;
}
.expense-table {
    width: 100%;
    border-collapse: collapse;
}
.expense-table th,
.expense-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}
.expense-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
}
.expense-table tbody tr:hover {
    background-color: #f1f1f1;
}
.expense-table .amount-col {
    font-weight: 600;
    color: var(--error-color);
    min-width: 120px;
    text-align: right;
}
.expense-table .date-col {
    min-width: 150px;
}
.expense-table .desc-col {
    min-width: 250px;
    white-space: pre-wrap;
}
.expense-table .link-col a {
    color: var(--primary-color);
    text-decoration: none;
}
.expense-table .link-col a:hover {
    text-decoration: underline;
}

/* === হাইলাইট কার্ড (সর্বমোট খরচ) === */
.card-container .stat-card.highlight {
    background-color: var(--secondary-color);
}
.card-container .stat-card.highlight .info h3 {
    color: #e0e0e0;
}
.card-container .stat-card.highlight .info p {
    color: #ffffff;
}
.card-container .stat-card.highlight .icon {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffc107;
}

/* === উন্নত টেবিল ডিজাইন === */
.expense-table th {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.expense-table tbody tr:last-child td {
    border-bottom: none; /* শেষ আইটেমের নিচের বর্ডার মুছে ফেলা */
}
.expense-table td {
    vertical-align: top;
    padding-top: 15px;
    padding-bottom: 15px;
}

/* === নতুন: অ্যাডকারীর তথ্য (গ্রে কালার) === */
.expense-table .meta-info {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 5px;
    font-style: italic;
}
.expense-table .meta-info strong {
    color: #495057;
}

/* === নতুন: অ্যাকশন বাটন === */
.expense-table .action-col {
    min-width: 120px;
    text-align: right;
    white-space: nowrap;
}
.action-btn {
    display: inline-block;
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 5px;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s;
}
.action-btn.edit {
    background-color: var(--primary-color);
}
.action-btn.edit:hover {
    background-color: var(--secondary-color);
}
.action-btn.delete {
    background-color: var(--error-color);
}
.action-btn.delete:hover {
    background-color: #a71d2a;
}
/* === style.css ফাইলের শেষে যোগ করুন === */

/* === এডিট মডাল (Pop-up) === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1040;
    display: none; /* ডিফল্টভাবে লুকানো */
    align-items: center;
    justify-content: center;
}
.modal-overlay.active {
    display: flex; /* দেখানোর জন্য */
}
.modal-content {
    background: #fff;
    border-radius: 8px;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.modal-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--primary-color);
}
.modal-close-btn {
    font-size: 1.8rem;
    color: #888;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
}
.modal-body {
    padding: 1.5rem;
}
.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: right;
}
/* === style.css ফাইলের শেষে যোগ করুন === */

/* === লাইভ সার্চ রেজাল্ট বক্স === */
.search-results-container {
    position: relative;
}
.live-search-results {
    position: absolute;
    width: 100%;
    background: #fff;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
}
.search-result-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f1f1f1;
}
.search-result-item:last-child {
    border-bottom: none;
}
.search-result-item:hover {
    background-color: #f8f9fa;
}
.search-result-item p {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark-text);
}
.search-result-item span {
    font-size: 0.9rem;
    color: #6c757d;
}

/* === শেয়ারহোল্ডার ডিটেইলস বক্স (পেমেন্ট পেজ) === */
.shareholder-details-box {
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: none; /* ডিফল্টভাবে লুকানো */
}
.shareholder-details-box h3 {
    margin-top: 0;
    color: var(--primary-color);
}
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}
.details-grid p {
    margin: 0;
    font-size: 1rem;
}
.details-grid p strong {
    color: #495057;
    display: block;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

/* === অ্যানালাইসিস পেজ লিস্ট === */
.analysis-list-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}
.analysis-list-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.3s;
}
.analysis-list-item:last-child {
    border-bottom: none;
}
.analysis-list-item:hover {
    background-color: #f8f9fa;
}
.analysis-list-item h3 {
    margin: 0 0 5px 0;
    color: var(--primary-color);
}
.analysis-list-item p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

/* === অ্যানালাইসিস ডিটেইলস ভিউ === */
.details-view-container {
    display: none; /* ডিফল্টভাবে লুকানো */
}
.details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.back-to-list-btn {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
}
.back-to-list-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
}
/* === নতুন: ড্যাশবোর্ড সামারি কার্ড === */
.summary-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid var(--border-color);
}
.summary-header {
    padding: 1rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
}
.summary-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}
.summary-body {
    padding: 1.5rem;
}
.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 0;
    border-bottom: 1px dashed var(--border-color);
    font-family: 'Arial', sans-serif; /* টাকার হিসাবের জন্য ভিন্ন ফন্ট */
}
.summary-item:last-child {
    border-bottom: none;
    padding-bottom: 0.5rem;
}
.summary-item .label {
    font-size: 1rem;
    color: #495057;
    font-family: 'Hind Siliguri', sans-serif; /* বাংলা ফন্ট */
}
.summary-item .value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-text);
}
.summary-item .value.positive {
    color: var(--success-color);
}
.summary-item .value.negative {
    color: var(--error-color);
}
.summary-footer {
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    border-top: 1px solid var(--border-color);
}
.summary-footer .summary-item {
    border-bottom: none;
    padding: 0;
}
.summary-footer .summary-item .label {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}
.summary-footer .summary-item .value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}
/* === নতুন: কমিটি সেকশন কার্ড === */
.committee-card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.committee-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.committee-image-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%; /* গোল সার্কেল */
    object-fit: cover; /* ইমেজ কেটে সুন্দরভাবে ফিট হবে */
    border: 4px solid var(--primary-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.committee-card h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.4rem;
    color: var(--primary-color);
}

.committee-card p {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    color: var(--dark-text);
    font-weight: 500;
}

.committee-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    border: 1px dashed var(--border-color);
    padding: 10px;
    border-radius: 5px;
}

.committee-contact .mobile {
    flex-grow: 1;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    text-align: left;
}

.copy-btn {
    padding: 8px 12px;
    border: none;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
}
.copy-btn:hover {
    background-color: var(--primary-color);
}

.committee-actions {
    margin-top: 1rem;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}
/* === নতুন: এসএমএস প্রেরণ পেজ === */

/* ব্যালেন্স কার্ড */
.sms-balance-card {
    background-color: var(--primary-color);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    max-width: 350px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 74, 153, 0.3);
}
.sms-balance-card .icon {
    font-size: 2.5rem;
    opacity: 0.8;
}
.sms-balance-card .info h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
}
.sms-balance-card .info p {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
}

/* মাল্টি-সিলেক্ট কন্টেইনার */
.multi-select-container {
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 5px;
    background-color: white;
    min-height: 50px;
    display: flex;
    flex-wrap: wrap; /* ট্যাগগুলো নতুন লাইনে যেতে পারবে */
    gap: 5px;
    align-items: center;
}
.selected-item {
    display: inline-flex;
    align-items: center;
    background-color: #e0e0e0;
    border-radius: 4px;
    padding: 5px 8px;
    font-size: 0.9rem;
    font-weight: 500;
}
.selected-item .item-name {
    margin-right: 5px;
}
.remove-item {
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    color: #888;
    margin-left: 5px;
}
.remove-item:hover {
    color: var(--error-color);
}
.multi-select-input {
    flex-grow: 1;
    border: none;
    outline: none;
    padding: 8px;
    font-size: 1rem;
    min-width: 200px;
}
.search-results-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
    z-index: 101;
    max-height: 250px;
    overflow-y: auto;
    display: none; /* ডিফল্টভাবে লুকানো */
}
.search-results-list .result-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f1f1f1;
}
.search-results-list .result-item:hover {
    background-color: #f8f9fa;
}
.search-results-list .result-item p {
    margin: 0;
    font-weight: 500;
}
.search-results-list .result-item span {
    font-size: 0.9rem;
    color: #6c757d;
}
/* === এসএমএস পেজের নতুন ডিজাইন === */
.sms-form-container {
    max-width: 800px;
    margin: 0 auto 1.5rem auto; /* ফর্মগুলো মাঝখানে আনার জন্য */
}

/* ক্যারেক্টার কাউন্টার */
.char-counter {
    font-size: 0.9rem;
    font-weight: 500;
    color: #6c757d;
    text-align: right;
    margin-top: 5px;
    font-family: 'Arial', sans-serif;
}
.char-counter .sms-parts {
    font-weight: bold;
    color: var(--primary-color);
    margin-left: 10px;
}

/* মাল্টি-সিলেক্ট কন্টেইনার */
.multi-select-container {
    position: relative; /* === এই লাইনটি যোগ করা হয়েছে === */
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 8px;
    background-color: white;
    min-height: 50px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.selected-item {
    display: inline-flex;
    align-items: center;
    background-color: var(--primary-color); /* ট্যাগ কালার */
    color: white;
    border-radius: 15px; /* গোল ট্যাগ */
    padding: 5px 12px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 74, 153, 0.2);
}
.selected-item .item-name {
    margin-right: 8px;
}
.remove-item {
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    color: #f1f1f1;
    margin-left: 5px;
    line-height: 1;
}
.remove-item:hover {
    color: white;
    transform: scale(1.1);
}
.multi-select-input {
    flex-grow: 1;
    border: none;
    outline: none;
    padding: 8px 5px;
    font-size: 1rem;
    min-width: 200px;
}