/* === মূল ভেরিয়েবল এবং বেস স্টাইল === */
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons+Sharp');

:root {
    --primary-color: #7367f0;
    --primary-light: #e9e7fd;
    --primary-dark: #5e50ee;
    --success-color: #28c76f;
    --danger-color: #ea5455;
    --warning-color: #ff9f43;
    
    --background-light: #f8f7fa;
    --card-bg-light: #ffffff;
    --text-color-light: #4E4B66;
    --heading-color-light: #333;
    --border-color-light: #ebe9f1;
    --shadow-light: 0 4px 24px 0 rgba(34, 41, 47, 0.1);
    
    --background-dark: #161d31;
    --card-bg-dark: #283046;
    --text-color-dark: #d0d2d6;
    --heading-color-dark: #ffffff;
    --border-color-dark: #3b4253;
    --shadow-dark: 0 4px 24px 0 rgba(0, 0, 0, 0.2);

    --transition-speed: 0.4s;
}

html {
    /* পুরো লেআউটকে ৮০% জুমে দেখানো হচ্ছে */
    zoom: 0.8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Hind Siliguri', sans-serif;
}

body {
    background: var(--background-light);
    color: var(--text-color-light);
    transition: background var(--transition-speed) ease, color var(--transition-speed) ease;
}

body.dark-mode {
    background: var(--background-dark);
    color: var(--text-color-dark);
}

/* === ড্যাশবোর্ড কন্টেইনার এবং লেআউট === */
.dashboard-container { display: flex; }
.main-content {
    margin-left: 260px;
    width: calc(100% - 260px);
    padding: 20px;
    transition: all var(--transition-speed) ease;
}
.main-content.full-width { margin-left: 90px; width: calc(100% - 90px); }

/* === সাইডবার === */
.sidebar {
    width: 260px;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0; /* ★★★ সমাধান: height: 100vh এর পরিবর্তে top এবং bottom ব্যবহার করা হয়েছে ★★★ */
    background: var(--card-bg-light);
    border-right: 1px solid var(--border-color-light);
    transition: all var(--transition-speed) ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}
body.dark-mode .sidebar { background: var(--card-bg-dark); border-right-color: var(--border-color-dark); }
.sidebar.collapsed { width: 90px; }
.sidebar-header {
    display: flex; align-items: center; gap: 15px; padding: 0 25px; height: 70px; flex-shrink: 0;
}
.sidebar-header .logo-icon { font-size: 2.5rem; color: var(--primary-color); }
.sidebar-header .logo-text { font-size: 1.5rem; font-weight: 700; white-space: nowrap; opacity: 1; transition: opacity 0.2s, color var(--transition-speed) ease; }
.sidebar.collapsed .logo-text { opacity: 0; display: none; }
.sidebar-menu { 
    list-style: none; padding: 20px 15px; overflow-y: auto; flex-grow: 1;
    -ms-overflow-style: none; scrollbar-width: none;
}
.sidebar-menu::-webkit-scrollbar { display: none; }
.sidebar-menu .sidebar-header {
    padding: 20px 20px 8px; font-size: 13px; font-weight: 600; color: #a0aec0;
    text-transform: uppercase; letter-spacing: 1px; white-space: nowrap;
}
.sidebar.collapsed .sidebar-header { display: none; }
.sidebar-menu-item a {
    display: flex; align-items: center; padding: 14px 20px; color: #626262; text-decoration: none;
    border-radius: 8px; margin-bottom: 8px; transition: all 0.3s ease; white-space: nowrap;
}
body.dark-mode .sidebar-menu-item a { color: #b0b0b0; }
.sidebar-menu-item a:hover, .sidebar-menu-item.active a {
    background-color: var(--primary-color); color: #fff !important; transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(115, 103, 240, 0.4);
}
body.dark-mode .sidebar-menu-item a:hover, body.dark-mode .sidebar-menu-item.active a { box-shadow: 0 4px 12px rgba(115, 103, 240, 0.3); }
.sidebar-menu-item .menu-icon { font-size: 1.6rem; margin-right: 20px; transition: margin 0.3s; }
.sidebar.collapsed .sidebar-menu-item .menu-icon { margin: 0; }
.sidebar.collapsed .sidebar-menu-item a { justify-content: center; }
.sidebar.collapsed .sidebar-menu-item .menu-text { display: none; }

/* --- হেডার --- */
.header {
    display: flex; justify-content: space-between; align-items: center; padding: 10px 20px;
    background: var(--card-bg-light); border-radius: 12px; box-shadow: var(--shadow-light);
    position: sticky; top: 20px; z-index: 999;
}
body.dark-mode .header { background: var(--card-bg-dark); box-shadow: var(--shadow-dark); }
.header-left .toggle-btn { font-size: 1.8rem; cursor: pointer; padding: 8px; border-radius: 50%; transition: all 0.3s; }
.header-left .toggle-btn:hover { background: var(--primary-light); }
body.dark-mode .header-left .toggle-btn:hover { background: rgba(255,255,255,0.1); }
.header-right { display: flex; align-items: center; gap: 20px; }
.dark-mode-toggle { cursor: pointer; font-size: 1.6rem; }
.profile img { width: 45px; height: 45px; border-radius: 50%; border: 2px solid var(--primary-color); }
.profile a { display: block; line-height: 0; }

/* --- সাধারণ কম্পোনেন্ট --- */
.page-container { padding-top: 20px; }
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; flex-wrap: wrap; gap: 15px; }
.page-title { color: var(--heading-color-light); margin: 0; font-size: 2rem; font-weight: 700; }
body.dark-mode .page-title { color: var(--heading-color-dark); }
.breadcrumbs { color: #888; margin: 0; font-size: 14px; }
.content-card { background: var(--card-bg-light); border-radius: 12px; box-shadow: var(--shadow-light); padding: 25px; }
body.dark-mode .content-card { background: var(--card-bg-dark); box-shadow: var(--shadow-dark); }

/* --- বাটন --- */
.btn {
    padding: 10px 22px; border: none; border-radius: 8px; font-size: 16px; cursor: pointer;
    display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; transition: all 0.3s;
}
.btn .fas, .btn .far, .btn .material-icons-sharp { font-size: 1.2rem; }
.btn-primary { background-color: var(--primary-color); color: white; }
.btn-primary:hover { background-color: var(--primary-dark); box-shadow: 0 2px 8px rgba(115, 103, 240, 0.5); }
.btn-secondary { background-color: #f8f7fa; color: #555; border: 1px solid var(--border-color-light); }
body.dark-mode .btn-secondary { background-color: #3b4253; color: var(--text-color-dark); border-color: #4a5165; }
.btn-secondary:hover { background-color: #e9ecef; }
body.dark-mode .btn-secondary:hover { background-color: #4a5165; }

/* --- টেবিল এবং সংশ্লিষ্ট কম্পোনেন্ট --- */
.card-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 15px; }
.search-box { position: relative; }
.search-box .fas, .search-box .fa-search { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #adb5bd; }
.search-box input {
    padding: 12px 15px 12px 45px; border: 1px solid var(--border-color-light); border-radius: 8px;
    font-size: 16px; min-width: 250px; background: transparent; color: var(--text-color-light);
}
body.dark-mode .search-box input { border-color: var(--border-color-dark); color: var(--text-color-dark); }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 15px; text-align: left; border-bottom: 1px solid var(--border-color-light); }
body.dark-mode .data-table th, body.dark-mode .data-table td { border-bottom-color: var(--border-color-dark); }
.data-table th { color: #888; font-weight: 600; text-transform: uppercase; font-size: 13px; }
.data-table td { font-weight: 500; }
.actions a { text-decoration: none; font-weight: 600; margin-left: 20px; }
.actions .fas, .actions .far { margin-right: 5px; }
.action-edit { color: var(--primary-color); }
.action-delete { color: var(--danger-color); }
.action-copy { color: var(--success-color); }
.card-footer { padding-top: 20px; display: flex; justify-content: flex-end; }
.pagination-controls { display: flex; align-items: center; gap: 10px; }
.pagination-controls select {
    padding: 8px 12px; border-radius: 6px; border: 1px solid var(--border-color-light);
    background: transparent; color: var(--text-color-light);
}
body.dark-mode .pagination-controls select { border-color: var(--border-color-dark); color: var(--text-color-dark); }
.status-badge { padding: 5px 12px; border-radius: 16px; font-size: 12px; font-weight: bold; text-transform: uppercase; }
.status-badge.status-completed, .status-badge.status-connected, .status-badge.status-verified { background-color: #dcfce7; color: #22c55e; }
.status-badge.status-pending, .status-badge.status-received { background-color: #fef9c3; color: #f59e0b; }
.status-badge.status-failed, .status-badge.status-cancelled, .status-badge.status-disconnected { background-color: #fee2e2; color: #ef4444; }

/* --- ফর্ম এলিমেন্ট --- */
.form-group, .select-wrapper { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; }
.form-group input, .form-group textarea, .select-wrapper select {
    width: 100%; padding: 12px 15px; border: 1px solid var(--border-color-light); border-radius: 8px;
    font-size: 16px; box-sizing: border-box; background: transparent; color: var(--text-color-light); transition: border-color 0.3s;
}
body.dark-mode .form-group input, body.dark-mode .form-group textarea, body.dark-mode .select-wrapper select {
    border-color: var(--border-color-dark); color: var(--text-color-dark);
}
.form-group input:focus, .form-group textarea:focus, .select-wrapper select:focus {
    outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 2px var(--primary-light);
}
body.dark-mode .form-group input:focus, body.dark-mode .form-group textarea:focus, body.dark-mode .select-wrapper select:focus {
    box-shadow: 0 0 0 2px rgba(115, 103, 240, 0.3);
}
.select-wrapper { position: relative; }
.select-wrapper::after {
    content: '\e5c5'; font-family: 'Material Icons Sharp'; position: absolute; top: 50%; right: 15px;
    transform: translateY(-50%); pointer-events: none; color: #888;
}
.select-wrapper select { -webkit-appearance: none; -moz-appearance: none; appearance: none; }
.toggle-switch { position: relative; display: inline-block; width: 50px; height: 28px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc; transition: .4s; border-radius: 34px;
}
.slider:before {
    position: absolute; content: ""; height: 20px; width: 20px;
    left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%;
}
input:checked + .slider { background-color: var(--primary-color); }
input:checked + .slider:before { transform: translateX(22px); }

/* --- মডাল --- */
.modal {
    display: none; position: fixed; z-index: 1001; left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.7); backdrop-filter: blur(5px);
}
.modal-content {
    background-color: var(--card-bg-light); margin: 10% auto; padding: 30px; border: none; width: 90%; max-width: 550px;
    border-radius: 12px; box-shadow: var(--shadow-light);
}
body.dark-mode .modal-content { background-color: var(--card-bg-dark); box-shadow: var(--shadow-dark); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 15px; border-bottom: 1px solid var(--border-color-light); }
body.dark-mode .modal-header { border-bottom-color: var(--border-color-dark); }
.modal-header h2 { margin: 0; font-size: 1.5rem; color: var(--heading-color-light); }
body.dark-mode .modal-header h2 { color: var(--heading-color-dark); }
.close-button { color: #aaa; font-size: 28px; font-weight: bold; cursor: pointer; }
.modal-footer { display: flex; justify-content: flex-end; padding-top: 20px; gap: 10px; }

/* === জেনারেল সেটিংস, API সেটিংস, ব্র্যান্ড আইকন === */
.settings-tabs {
    display: flex; align-items: center; gap: 30px; border-bottom: 1px solid var(--border-color-light);
    margin-bottom: 15px; padding-left: 5px;
}
body.dark-mode .settings-tabs { border-bottom-color: var(--border-color-dark); }
.tab-item {
    display: flex; align-items: center; gap: 8px; padding: 15px 5px; text-decoration: none;
    color: #6c757d; font-weight: 500; font-size: 15px; border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}
.tab-item .fas { font-size: 16px; }
.tab-item:hover { color: var(--primary-color); }
.tab-item.active { color: var(--primary-color); font-weight: 600; border-bottom-color: var(--primary-color); }
.tab-badge {
    background-color: var(--primary-light); color: var(--primary-color); padding: 4px 10px;
    border-radius: 16px; font-size: 12px; font-weight: 500; margin-left: 6px;
}
.settings-section { padding: 25px 5px; border-top: 1px solid var(--border-color-light); }
body.dark-mode .settings-section { border-top-color: var(--border-color-dark); }
.settings-section:first-child { border-top: none; padding-top: 10px; }
.settings-section h3 { margin: 0 0 5px 0; font-size: 1.2rem; color: var(--heading-color-light); }
body.dark-mode .settings-section h3 { color: var(--heading-color-dark); }
.settings-section p { margin: 0 0 25px 0; color: #888; }
.form-group small { display: block; margin-top: 8px; color: #888; font-size: 13px; }
.settings-actions {
    padding: 20px; border-top: 1px solid var(--border-color-light); margin: 25px -25px -25px -25px;
    display: flex; justify-content: flex-end; background-color: #fcfcfc;
    border-bottom-left-radius: 12px; border-bottom-right-radius: 12px;
}
body.dark-mode .settings-actions { border-top-color: var(--border-color-dark); background-color: #242b3d; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }
.form-grid-3-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 25px; }
.form-group-color {
    display: flex; align-items: center; border: 1px solid var(--border-color-light); border-radius: 8px;
    padding-left: 12px; background-color: var(--card-bg-light);
}
body.dark-mode .form-group-color { border-color: var(--border-color-dark); background-color: var(--card-bg-dark); }
.form-group-color:focus-within { border-color: var(--primary-color); box-shadow: 0 0 0 2px var(--primary-light); }
body.dark-mode .form-group-color:focus-within { box-shadow: 0 0 0 2px rgba(115, 103, 240, 0.3); }
.form-group-color input[type="text"] { border: none !important; flex-grow: 1; padding: 12px 0 !important; font-size: 16px; box-shadow: none !important; outline: none !important; width: 100%; }
.form-group-color input[type="color"] { width: 38px; height: 30px; border: none; background: none; padding: 0 4px; cursor: pointer; border-radius: 0 7px 7px 0; }
.input-with-prefix {
    display: flex; align-items: center; border: 1px solid var(--border-color-light);
    border-radius: 8px; background-color: var(--card-bg-light);
}
body.dark-mode .input-with-prefix { border-color: var(--border-color-dark); background-color: var(--card-bg-dark); }
.input-with-prefix span {
    padding: 0 15px; background-color: #f8f9fa; border-right: 1px solid var(--border-color-light); color: #6c757d;
    align-self: stretch; display: flex; align-items: center; border-top-left-radius: 8px; border-bottom-left-radius: 8px;
}
body.dark-mode .input-with-prefix span { background-color: #3b4253; border-right-color: var(--border-color-dark); }
.input-with-prefix input { border: none !important; flex-grow: 1; }
.api-card { margin-bottom: 25px; }
.api-card .card-header h3 { margin: 0 0 5px 0; font-size: 1.3rem; color: var(--heading-color-light); }
body.dark-mode .api-card .card-header h3 { color: var(--heading-color-dark); }
.api-card .card-header p { margin: 0 0 15px 0; color: #888; font-size: 0.95rem; }
.input-with-actions {
    display: flex; align-items: center; border: 1px solid var(--border-color-light);
    border-radius: 8px; padding-right: 8px; transition: border-color 0.3s;
}
body.dark-mode .input-with-actions { border-color: var(--border-color-dark); }
.input-with-actions:focus-within { border-color: var(--primary-color); box-shadow: 0 0 0 2px var(--primary-light); }
body.dark-mode .input-with-actions:focus-within { box-shadow: 0 0 0 2px rgba(115, 103, 240, 0.3); }
.input-with-actions input {
    flex-grow: 1; border: none !important; outline: none !important; padding: 12px 15px !important;
    font-size: 16px; background-color: transparent !important; color: var(--text-color-light) !important;
}
body.dark-mode .input-with-actions input { color: var(--text-color-dark) !important; }
.input-with-actions .actions { display: flex; gap: 5px; }
.input-with-actions .icon-btn {
    background: none; border: none; cursor: pointer; font-size: 1.1rem; color: #888;
    padding: 8px; border-radius: 50%; transition: background-color 0.2s, color 0.2s;
}
.input-with-actions .icon-btn:hover { background-color: #f0f0f0; color: var(--primary-color); }
body.dark-mode .input-with-actions .icon-btn:hover { background-color: #3b4253; }
.logo-uploader-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; align-items: flex-start; }
.label-with-tooltip { display: flex; align-items: center; gap: 8px; }
.label-with-tooltip .fa-question-circle { color: #adb5bd; cursor: help; }
.image-uploader {
    border: 2px dashed var(--border-color-light); border-radius: 12px; padding: 10px; text-align: center;
    cursor: pointer; transition: all 0.2s; background-color: var(--background-light); position: relative;
    display: flex; align-items: center; justify-content: center; min-height: 140px;
}
body.dark-mode .image-uploader { border-color: var(--border-color-dark); background-color: #1a2236; }
.image-uploader:hover, .image-uploader.drag-over { border-color: var(--primary-color); }
.image-uploader.has-preview { border-style: solid; padding: 0; background-color: transparent; }
.image-uploader input[type="file"] { display: none; }
.image-uploader .uploader-content { width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; }
.image-uploader .uploader-text { color: #6c757d; }
.image-uploader .browse-link { color: var(--primary-color); font-weight: 500; text-decoration: underline; }
.image-uploader.uploader-round { width: 140px; height: 140px; border-radius: 50%; }
.preview-container { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.remove-image-btn {
    position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; border-radius: 50%; border: none;
    background-color: rgba(0, 0, 0, 0.5); color: white; font-size: 16px; font-weight: bold; cursor: pointer;
    display: flex; align-items: center; justify-content: center; line-height: 1; opacity: 0; transition: opacity 0.2s;
}
.preview-container:hover .remove-image-btn { opacity: 1; }
.image-uploader .image-preview { max-width: calc(100% - 20px); max-height: calc(100% - 20px); object-fit: contain; border-radius: 8px; }
.uploader-round .image-preview { width: calc(100% - 20px); height: calc(100% - 20px); border-radius: 50%; object-fit: cover; }

/* === রিপোর্ট পেজ === */
.report-filters { display: flex; gap: 10px; }
.report-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.report-card {
    background-color: var(--card-bg-light); border-radius: 12px; padding: 20px;
    box-shadow: var(--shadow-light); border: 1px solid transparent; transition: all 0.3s ease;
}
body.dark-mode .report-card { background-color: var(--card-bg-dark); box-shadow: var(--shadow-dark); }
.report-card:hover { transform: translateY(-5px); border-color: var(--primary-color); }
.report-card .card-header { display: flex; justify-content: space-between; align-items: center; color: #888; margin-bottom: 15px; }
.report-card .card-title { font-weight: 600; font-size: 1rem; }
.report-card .card-body .amount {
    font-size: 2.2rem; font-weight: 700; margin: 0 0 8px 0; color: var(--heading-color-light);
}
body.dark-mode .report-card .card-body .amount { color: var(--heading-color-dark); }
.report-card .card-body .stats { margin: 0; color: #777; }
body.dark-mode .report-card .card-body .stats { color: #aaa; }
.report-card .card-body .stats .success-rate { color: var(--success-color); font-weight: 600; }

/* === ডকুমেন্টেশন পেজ === */
.page-container > .content-card + .content-card { margin-top: 25px; }
.content-card h3 {
    font-size: 1.4rem; color: var(--heading-color-light); margin-bottom: 15px; padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color-light);
}
body.dark-mode .content-card h3 { color: var(--heading-color-dark); border-bottom-color: var(--border-color-dark); }
.content-card h4 {
    font-size: 1.1rem; color: var(--heading-color-light); margin-top: 20px; margin-bottom: 10px;
}
body.dark-mode .content-card h4 { color: var(--heading-color-dark); }
.content-card p, .content-card ol, .content-card ul {
    line-height: 1.7; margin-bottom: 15px; color: #6e6b8a;
}
body.dark-mode .content-card p, body.dark-mode .content-card ol, body.dark-mode .content-card ul { color: #b4b7bd; }
.content-card ol, .content-card ul { padding-left: 25px; }
.content-card li { margin-bottom: 8px; }
.content-card pre {
    background-color: #282c34; color: #abb2bf; padding: 20px; border-radius: 8px; overflow-x: auto;
    white-space: pre-wrap; word-wrap: break-word; font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem; margin: 20px 0; border: 1px solid var(--border-color-dark);
}
.content-card p code, .content-card li code, .content-card h4 code {
    background-color: var(--primary-light); color: var(--primary-dark); padding: 3px 7px;
    border-radius: 5px; font-size: 0.9em; font-weight: 600;
}
body.dark-mode .content-card p code, body.dark-mode .content-card li code, body.dark-mode .content-card h4 code {
    background-color: rgba(115, 103, 240, 0.2); color: #a399ff;
}
.content-card pre code { padding: 0; background: none; color: inherit; font-size: inherit; }

/* Billing, Devices, SMS Data পেজের জন্য অতিরিক্ত স্টাইল */
.billing-container { display: flex; flex-wrap: wrap; gap: 30px; }
.billing-sidebar { flex: 0 0 220px; background-color: var(--card-bg-light); border-radius: 12px; padding: 15px; align-self: flex-start; }
body.dark-mode .billing-sidebar { background-color: var(--card-bg-dark); }
.billing-sidebar nav ul { list-style-type: none; padding: 0; margin: 0; }
.billing-sidebar nav ul li a { display: block; padding: 12px 18px; text-decoration: none; color: var(--text-color-light); border-radius: 8px; font-weight: 500; transition: background-color 0.2s, color 0.2s; }
body.dark-mode .billing-sidebar nav ul li a { color: var(--text-color-dark); }
.billing-sidebar nav ul li.active a { background-color: var(--primary-light); color: var(--primary-color); }
body.dark-mode .billing-sidebar nav ul li.active a { background-color: rgba(115, 103, 240, 0.2); color: #a399ff; }
.billing-main { flex: 1; min-width: 0; }
.billing-content-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-bottom: 20px; }
.account-balance, .plan-quota { padding: 25px; background-color: var(--card-bg-light); border-radius: 12px; box-shadow: var(--shadow-light); }
body.dark-mode .account-balance, body.dark-mode .plan-quota { background-color: var(--card-bg-dark); box-shadow: var(--shadow-dark); }
.account-balance h3, .plan-quota h3 { margin-top: 0; font-size: 1.3rem; color: var(--heading-color-light); }
body.dark-mode .account-balance h3, body.dark-mode .plan-quota h3 { color: var(--heading-color-dark); }
.account-balance .balance { font-size: 2.2rem; font-weight: 700; color: var(--primary-color); margin: 10px 0; }
.account-balance .availability { color: #888; margin-bottom: 20px; }
.quota-item { margin-top: 15px; }
.quota-info { display: flex; justify-content: space-between; margin-bottom: 8px; font-weight: 500; }
.quota-bar { background-color: #e9ecef; border-radius: 8px; height: 10px; overflow: hidden; }
body.dark-mode .quota-bar { background-color: #3b4253; }
.quota-progress { background-color: var(--primary-color); height: 100%; }
.plan-allocation { margin-top: 20px; background-color: var(--background-light); padding: 15px; border-radius: 8px; }
body.dark-mode .plan-allocation { background-color: var(--background-dark); }
.plan-allocation p { margin-top: 0; font-weight: 600; }
.plan-allocation ul { list-style-type: none; padding: 0; margin: 10px 0 0 0; color: #6c757d; }
body.dark-mode .plan-allocation ul { color: #b4b7bd; }
.plan-allocation ul li { display: flex; justify-content: space-between; margin-bottom: 5px; }
.billing-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); z-index: 1001; display: none; align-items: center; justify-content: center; }
.billing-modal-overlay.open { display: flex; }
.billing-modal-content { background-color: var(--card-bg-light); padding: 30px; border-radius: 12px; box-shadow: var(--shadow-dark); width: 100%; max-width: 700px; }
body.dark-mode .billing-modal-content { background-color: var(--card-bg-dark); }
.billing-modal-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 15px; margin-bottom: 20px; }
.close-modal-btn { background: none; border: none; font-size: 28px; font-weight: bold; cursor: pointer; color: #aaa; }
.amount-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 15px; margin-top: 10px; }
.amount-btn { padding: 15px; border: 1px solid var(--border-color-light); border-radius: 8px; background-color: transparent; cursor: pointer; font-size: 16px; font-weight: 500; text-align: center; transition: all 0.2s; color: var(--text-color-light); }
body.dark-mode .amount-btn { border-color: var(--border-color-dark); color: var(--text-color-dark); }
.amount-btn:hover { border-color: #adb5bd; }
.amount-btn.active { border-color: var(--primary-color); background-color: var(--primary-light); color: var(--primary-color); }
body.dark-mode .amount-btn.active { background-color: rgba(115, 103, 240, 0.2); }
.billing-modal-footer { display: flex; justify-content: flex-start; gap: 10px; margin-top: 25px; }
#purchase-summary { margin-top: 20px; padding: 15px; background-color: var(--background-light); border-radius: 8px; text-align: center; }
body.dark-mode #purchase-summary { background-color: var(--background-dark); }
#insufficient-balance-warning { color: var(--danger-color); display: none; margin-top: 5px; }
.side-panel-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 1001; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.side-panel-overlay.open { opacity: 1; visibility: visible; }
.side-panel { position: fixed; top: 0; right: -850px; width: 100%; max-width: 800px; height: 100%; background-color: var(--background-light); box-shadow: var(--shadow-dark); transition: right 0.4s ease-in-out; display: flex; flex-direction: column; }
body.dark-mode .side-panel { background-color: var(--background-dark); }
.side-panel-overlay.open .side-panel { right: 0; }
.side-panel-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 25px; background-color: var(--card-bg-light); border-bottom: 1px solid var(--border-color-light); flex-shrink: 0; }
body.dark-mode .side-panel-header { background-color: var(--card-bg-dark); border-bottom-color: var(--border-color-dark); }
.side-panel-header h3 { margin: 0; font-size: 1.2rem; color: var(--heading-color-light); }
body.dark-mode .side-panel-header h3 { color: var(--heading-color-dark); }
.close-panel-btn { background: none; border: none; font-size: 28px; cursor: pointer; color: #888; }
.side-panel-body { padding: 25px; display: grid; grid-template-columns: 1fr 1fr; gap: 25px; overflow-y: auto; flex-grow: 1; }
.panel-card { background-color: var(--card-bg-light); border: 1px solid var(--border-color-light); border-radius: 12px; padding: 20px; }
body.dark-mode .panel-card { background-color: var(--card-bg-dark); border-color: var(--border-color-dark); }
.panel-card-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 15px; margin-bottom: 15px; border-bottom: 1px solid var(--border-color-light); }
body.dark-mode .panel-card-header { border-bottom-color: var(--border-color-dark); }
.panel-card-header h4 { margin: 0; font-size: 1rem; color: var(--heading-color-light); }
body.dark-mode .panel-card-header h4 { color: var(--heading-color-dark); }
.panel-card-body h2 { font-size: 1.4rem; margin-top: 0; color: var(--heading-color-light); }
body.dark-mode .panel-card-body h2 { color: var(--heading-color-dark); }
.panel-card-body .subtitle { color: var(--primary-color); font-weight: bold; margin-top: -10px; display: block; margin-bottom: 15px; }
.features-list { list-style: none; padding: 0; margin: 20px 0; }
.features-list li { margin-bottom: 12px; color: var(--text-color-light); display: flex; align-items: center; gap: 10px; }
body.dark-mode .features-list li { color: var(--text-color-dark); }
.features-list .fas { color: var(--success-color); }
.download-btn { width: 100%; justify-content: center; padding: 12px; }
.qr-section { text-align: center; }
.qr-code-container { margin-top: 20px; padding: 10px; border: 1px solid var(--border-color-light); border-radius: 8px; display: inline-block; background: white; }
.qr-code-container img { max-width: 100%; height: auto; display: block; }
@media (max-width: 768px) { .side-panel { max-width: 100%; right: -100%; } .side-panel-body { grid-template-columns: 1fr; } }
.filter-tabs-container { text-align: center; margin-bottom: 20px; }
.filter-tabs { display: inline-flex; flex-wrap: wrap; gap: 10px; padding: 8px; background-color: var(--card-bg-light); border-radius: 12px; box-shadow: 0 2px 4px rgba(0,0,0,0.04); border: 1px solid var(--border-color-light); }
body.dark-mode .filter-tabs { background-color: var(--card-bg-dark); border-color: var(--border-color-dark); }
.filter-tab { padding: 8px 18px; text-decoration: none; color: #555; border-radius: 8px; display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; transition: background-color 0.2s, color 0.2s; }
body.dark-mode .filter-tab { color: var(--text-color-dark); }
.filter-tab .fas { font-size: 14px; color: #888; transition: color 0.2s; }
.filter-tab:hover { background-color: #f0f0f0; }
body.dark-mode .filter-tab:hover { background-color: #3b4253; }
.filter-tab.active { background-color: var(--primary-light); color: var(--primary-color); }
body.dark-mode .filter-tab.active { background-color: rgba(115, 103, 240, 0.2); color: #a399ff; }
.filter-tab.active .fas { color: var(--primary-color); }
body.dark-mode .filter-tab.active .fas { color: #a399ff; }
.form-section { padding: 10px 0; }
.form-row { display: flex; flex-wrap: wrap; gap: 25px; margin-bottom: 20px; }
.form-row:last-child { margin-bottom: 0; }
.form-group.half-width { width: calc(50% - 12.5px); flex-grow: 1; }
.form-group.third-width { width: calc(33.333% - 17px); flex-grow: 1; }
.form-group textarea { resize: vertical; min-height: 80px; }
@media (max-width: 768px) { .form-row { flex-direction: column; gap: 20px; } .form-group.half-width, .form-group.third-width { width: 100%; } }

/* === Profile Dropdown in Header === */
.profile-dropdown { position: relative; }
.profile-avatar { cursor: pointer; width: 45px; height: 45px; border-radius: 50%; overflow: hidden; border: 2px solid var(--primary-color); display: flex; align-items: center; justify-content: center; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dropdown-menu {
    position: absolute; top: calc(100% + 15px); right: 0; background-color: var(--card-bg-light);
    border-radius: 10px; box-shadow: var(--shadow-light); width: 230px; z-index: 1001;
    overflow: hidden; display: none; border: 1px solid var(--border-color-light);
}
body.dark-mode .dropdown-menu { background-color: var(--card-bg-dark); border-color: var(--border-color-dark); }
.dropdown-menu.show { display: block; }
.dropdown-header { padding: 15px 20px; border-bottom: 1px solid var(--border-color-light); }
body.dark-mode .dropdown-header { border-bottom-color: var(--border-color-dark); }
.dropdown-header strong { display: block; color: var(--heading-color-light); }
body.dark-mode .dropdown-header strong { color: var(--heading-color-dark); }
.dropdown-header small { display: block; color: #888; font-size: 13px; }
.dropdown-item {
    display: flex; align-items: center; gap: 15px; padding: 12px 20px; text-decoration: none;
    color: var(--text-color-light); font-size: 15px; transition: background-color 0.2s;
}
body.dark-mode .dropdown-item { color: var(--text-color-dark); }
.dropdown-item:hover { background-color: #f8f7fa; }
body.dark-mode .dropdown-item:hover { background-color: #3b4253; }
.dropdown-item .material-icons-sharp { font-size: 1.4rem; color: #888; }
.dropdown-divider { height: 1px; background-color: var(--border-color-light); margin: 5px 0; }
body.dark-mode .dropdown-divider { background-color: var(--border-color-dark); }
.dropdown-item.logout { color: var(--danger-color); }
.dropdown-item.logout:hover { background-color: rgba(234, 84, 85, 0.1); }

/* === Toast Notification (Pop-up Message) === */
#toast-notification {
    position: fixed; top: 20px; right: 20px; padding: 15px 25px; border-radius: 8px;
    color: white; font-size: 16px; font-weight: 500; z-index: 1010; visibility: hidden;
    opacity: 0; transform: translateY(-30px); transition: opacity 0.3s, transform 0.3s ease-in-out;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
#toast-notification.show { visibility: visible; opacity: 1; transform: translateY(0); }
#toast-notification.success { background-color: #28a745; }
#toast-notification.error { background-color: #dc3545; }

/* === Notification Dropdown === */
.notification-dropdown { position: relative; }
.notification-bell {
    cursor: pointer; font-size: 1.6rem; position: relative;
    color: var(--text-color-light); padding: 8px;
}
body.dark-mode .notification-bell { color: var(--text-color-dark); }
.notification-dot {
    position: absolute; top: 8px; right: 8px; width: 8px; height: 8px;
    background-color: var(--danger-color); border-radius: 50%;
    border: 2px solid var(--card-bg-light); display: none; /* শুরুতে লুকানো থাকবে */
}
body.dark-mode .notification-dot { border-color: var(--card-bg-dark); }
.notification-menu {
    position: absolute; top: calc(100% + 15px); right: 0; width: 320px;
    display: none;
}
.notification-menu.show { display: block; }
.notification-item {
    display: flex; align-items: flex-start; gap: 15px; padding: 15px 20px;
    text-decoration: none; color: var(--text-color-light); transition: background-color 0.2s;
}
body.dark-mode .notification-item { color: var(--text-color-dark); }
.notification-item:hover { background-color: #f8f7fa; }
body.dark-mode .notification-item:hover { background-color: #3b4253; }
.notification-item .icon { font-size: 1.4rem; color: var(--primary-color); margin-top: 2px; }
.notification-item .content strong {
    display: block; color: var(--heading-color-light); font-size: 15px;
}
body.dark-mode .notification-item .content strong { color: var(--heading-color-dark); }
.notification-item .content small { font-size: 13px; color: #888; }
/* === লগইন ও রেজিস্ট্রেশন পেজের জন্য CSS (চূড়ান্ত সমাধান) === */

/* মৌলিক রিসেট */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

/* পুরো পেজের ব্যাকগ্রাউন্ড এবং কন্টেন্টকে মাঝখানে আনার জন্য */
.auth-body {
    background-color: #f0f2f5;
    display: flex;
    justify-content: center; /* অনুভূমিকভাবে মাঝখানে আনে */
    align-items: center;    /* উল্লম্বভাবে মাঝখানে আনে */
    width: 100%;
    height: 100%;
    overflow: hidden; /* শুধুমাত্র লগইন পেজের জন্য স্ক্রলবার বন্ধ করা */
}

/* লগইন বক্সের মূল কন্টেইনার */
.auth-container {
    background-color: #ffffff;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 500px;
    border-radius: 0;
    box-sizing: border-box;
}

/* কাস্টম শিরোনামের জন্য কন্টেইনার */
.custom-auth-title {
    text-align: center;
    margin-bottom: 25px;
}

/* মূল শিরোনাম (Secure Soft Pay) */
.main-title {
    color: #0d6efd;
    font-weight: bold;
    font-size: 24px;
    margin: 0;
}

/* উপ-শিরোনাম (Sign In) */
.sub-title {
    font-weight: bold;
    font-size: 18px;
    color: #555;
    margin-top: 5px;
}

/* ইনপুট ফিল্ডের জন্য সাধারণ স্টাইল */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
}

/* লগইন বাটনের জন্য বিশেষ স্টাইল */
.auth-btn {
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    font-weight: bold;
    border-radius: 0;
    justify-content: center;
}

/* "Register here" বাটন পরিবর্তনের জন্য টেক্সট */
.auth-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #555;
}
.auth-switch a {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 600;
}

/* ভুল বা সফল বার্তা দেখানোর বক্সের স্টাইল */
.auth-errors, .auth-success {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 14px;
}
.auth-errors {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.auth-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}.default-link-body {
    background-color: #f0f4f9;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
}

.default-link-container {
    display: flex;
    width: 100%;
    max-width: 900px;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.left-panel {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.company-logo {
    max-width: 120px;
    margin-bottom: 40px;
}

.illustration-img {
    max-width: 100%;
    height: auto;
}

.right-panel {
    flex: 1;
    background-color: #f8faff;
    padding: 40px;
    display: flex;
    align-items: center;
}

.right-panel form {
    width: 100%;
}

.form-input-group {
    position: relative;
    margin-bottom: 20px;
}

.form-input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
}

.form-input-group input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.form-input-group input:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.2);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
}
/* === Filter Tabs (for SMS Data page) === */
/* ★★★ নতুন wrapper ক্লাস, ট্যাবগুলোকে মাঝখানে আনার জন্য ★★★ */
.filter-tabs-container {
    text-align: center;
    margin-bottom: 20px;
}

.filter-tabs {
    /* ★★★ 'flex' থেকে 'inline-flex' করা হয়েছে যাতে কন্টেন্টের সমান चौड़ाई হয় ★★★ */
    display: inline-flex; 
    flex-wrap: wrap;
    gap: 10px;
    padding: 8px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    border: 1px solid #e0e0e0;
}

.filter-tab {
    padding: 8px 16px;
    text-decoration: none;
    color: #555;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}

.filter-tab .fas {
    font-size: 14px;
    color: #888;
    transition: color 0.2s;
}

.filter-tab:hover {
    background-color: #f4f7fa;
}

.filter-tab.active {
    background-color: #e9efff;
    color: #0d6efd;
}

.filter-tab.active .fas {
    color: #0d6efd;
}
/* === Reports Page (reports.php) === */
.page-header .report-filters {
    display: flex;
    gap: 10px;
}

.report-filters .btn .far,
.report-filters .btn .fas {
    margin-right: 8px;
}

.financial-report-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    padding: 15px 20px;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
}

.financial-report-bar span {
    font-weight: 600;
    color: #0d6efd;
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.report-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
}

.report-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #6c757d;
    margin-bottom: 15px;
}

.report-card .card-title {
    font-weight: 500;
}

.report-card .card-body .amount {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: #212529;
}

.report-card .card-body .stats {
    margin: 0;
    color: #6c757d;
}

.report-card .card-body .stats .success-rate {
    color: #28a745;
    font-weight: 500;
}
/* === General Settings Page Tabs === */
.settings-tabs {
    display: flex;
    align-items: center;
    gap: 30px; /* ট্যাবগুলোর মধ্যে স্পেস */
    border-bottom: 1px solid #eef2f7;
    margin-bottom: 15px;
    padding-left: 5px;
}

.tab-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 5px;
    text-decoration: none;
    color: #6c757d; /* সাধারণ ট্যাবের রঙ */
    font-weight: 500;
    font-size: 15px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.tab-item .fas {
    font-size: 16px;
}

.tab-item:hover {
    color: #0d6efd;
}

.tab-item.active {
    color: #0d6efd; /* সক্রিয় ট্যাবের রঙ */
    font-weight: 600;
    border-bottom-color: #0d6efd;
}

.tab-badge {
    background-color: #e9efff; /* হালকা নীল ব্যাকগ্রাউন্ড */
    color: #0d6efd;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    margin-left: 6px;
}

.tab-badge.visual {
    background-color: #f0f0f0;
    color: #555;
}
/* === General Settings Form === */
.settings-section {
    padding: 25px 5px;
    border-top: 1px solid #eef2f7;
}
.settings-section h3 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
}
.settings-section p {
    margin: 0 0 25px 0;
    color: #6c757d;
}
.form-group small {
    display: block;
    margin-top: 8px;
    color: #6c757d;
    font-size: 13px;
}
.settings-actions {
    padding: 20px 0;
    text-align: right;
    margin-top: 10px;
}
.content-card .settings-tabs {
    border-bottom: 1px solid #eef2f7;
    margin-bottom: 0;
}
.content-card .tab-content {
    padding-top: 0;
}
/* === Settings Page - Color Scheme === */
.form-grid-3-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.form-group-color {
    display: flex;
    align-items: center;
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding-left: 12px;
    background-color: #fff;
}

.form-group-color:focus-within {
    border-color: #0d6efd;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.2);
}

.form-group-color input[type="text"] {
    border: none;
    flex-grow: 1;
    padding: 12px 0;
    font-size: 16px;
    box-shadow: none;
    outline: none;
    width: 100%;
}

.form-group-color input[type="color"] {
    width: 38px;
    height: 30px;
    border: none;
    background: none;
    padding: 0 4px;
    cursor: pointer;
    border-radius: 0 7px 7px 0;
}
/* === Brand Icon & Favicon Page (Updated) === */
.logo-uploader-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: flex-start;
}

.label-with-tooltip {
    display: flex;
    align-items: center;
    gap: 8px;
}
.label-with-tooltip .fa-question-circle {
    color: #adb5bd;
    cursor: help;
}

.image-uploader {
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background-color: #f8f9fa;
    position: relative;
    display: flex; /* ★★★ লেখা মাঝখানে আনার জন্য যুক্ত করা হয়েছে ★★★ */
    align-items: center; /* ★★★ লেখা মাঝখানে আনার জন্য যুক্ত করা হয়েছে ★★★ */
    justify-content: center; /* ★★★ লেখা মাঝখানে আনার জন্য যুক্ত করা হয়েছে ★★★ */
    min-height: 140px; /* ★★★ একটি নির্দিষ্ট উচ্চতা দেওয়া হয়েছে ★★★ */
}

.image-uploader:hover, .image-uploader.drag-over {
    border-color: #0d6efd;
}

/* ★★★ নতুন ক্লাস: যখন ছবি প্রিভিউ দেখানো হবে ★★★ */
.image-uploader.has-preview {
    border: 2px dashed #0d6efd; /* একটি সুন্দর নীল বর্ডার দেওয়া হয়েছে */
    padding: 0;
    background-color: transparent;
}
.image-uploader.has-preview:hover {
    background-color: #f8f9fa;
}

.image-uploader input[type="file"] {
    display: none;
}

.image-uploader .uploader-content {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.image-uploader .uploader-text {
    color: #6c757d;
}
.image-uploader .browse-link {
    color: #0d6efd;
    font-weight: 500;
    text-decoration: underline;
}

.image-uploader.uploader-round {
    width: 140px;
    height: 140px;
    border-radius: 50%;
}

/* ★★★ নতুন ক্লাস: প্রিভিউ কন্টেইনার এবং ডিলিট বাটন ★★★ */
.preview-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.remove-image-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    opacity: 0;
    transition: opacity 0.2s;
}
.preview-container:hover .remove-image-btn {
    opacity: 1;
}

.image-uploader .image-preview {
    max-width: calc(100% - 20px);
    max-height: calc(100% - 20px);
    object-fit: contain;
    border-radius: 8px; /* ★★★ প্রিভিউ ছবির জন্য বর্ডার-রেডিয়াস ★★★ */
}

.uploader-round .image-preview {
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    border-radius: 50%;
    object-fit: cover;
}
/* === চেকআউট পেজ (`checkout.php`) === */
.checkout-body {
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px 0;
}

.checkout-container {
    background-color: #ffffff;
    width: 100%;
    max-width: 600px;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* === চেকআউট পেজ (`checkout.php`) === */
.checkout-body {
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px 0;
}

.checkout-container {
    background-color: #ffffff;
    width: 100%;
    max-width: 600px;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* === নতুন চেকআউট পেজ ডিজাইন === */

/* পুরোনো হেডার আড়াল করা */
.checkout-top-header, .checkout-header, .separator-bar {
    display: none;
}

/* নতুন টপ বার */
.new-checkout-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.decorative-search-bar {
    flex-grow: 1;
    height: 35px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background-color: #fff;
}
.new-checkout-close-btn {
    font-size: 28px;
    color: #888;
    text-decoration: none;
    margin-left: 15px;
    font-weight: 300;
}

/* নতুন হেডার (লোগো ও সাইটের তথ্য) */
.new-checkout-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}
.new-logo-wrapper img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #f0f0f0;
}
.new-site-name {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    font-weight: 600;
}
.new-info-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.new-info-btn {
    background-color: white;
    border: 1px solid #dcdcdc;
    border-radius: 20px;
    padding: 6px 15px;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #555;
}
.new-info-btn .fas {
    color: #777;
}

/* লাল রঙের 'পেমেন্ট পদ্ধতি' বার */
.new-payment-selection-bar {
    background-color: #c9302c;
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-weight: 500;
    margin-bottom: 20px;
}

/* পেমেন্ট গ্রিড এবং কার্ড স্টাইল (আপডেট করা) */
.payment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.payment-method {
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.payment-method:hover {
    border-color: #0d6efd;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.payment-method img {
    /* ★★★ লোগোর সাইজ এখানে বড় করা হয়েছে ★★★ */
    max-height: 50px;
    margin-bottom: 10px;
}

/* লোগো এবং টেক্সটের মাঝে ডিভাইডার */
.payment-method span::before {
    content: '';
    display: block;
    width: 90%;
    height: 1px;
    background-color: #dddddd;
    margin: 0 auto 10px;
}

.payment-method span {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* নিচের 'Pay' বাটন */
.new-pay-button-container {
    margin-top: 25px;
}
.new-btn-pay {
    width: 100%;
    padding: 15px;
    background: #4285f4;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}
.new-btn-pay:hover {
    background: #3367d6;
}


/* === চেকআউট নির্দেশনাবলী ভিউ (অপরিবর্তিত) === */
.instruction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.back-button {
    background: none;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 16px;
    cursor: pointer;
    color: #888;
}
.close-button-link {
    background: none;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    cursor: pointer;
    color: #888;
    text-decoration: none;
}

.info-boxes {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.info-box {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.logo-box img {
    max-height: 30px;
}
.amount-box {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}

.instruction-details {
    background-color: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
}

.instruction-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.instruction-details ul li {
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
}
.instruction-details ul li:before {
    content: '•';
    color: #0d6efd;
    font-size: 20px;
    padding-right: 10px;
}
.instruction-details ul li:last-child {
    border-bottom: none;
}

.copy-btn {
    background-color: #0d6efd;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 12px;
    margin-left: auto;
}
.copy-btn .far {
    margin-right: 5px;
}

.trx-input-group {
    margin-top: 20px;
}
.trx-input-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}
.trx-input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    box-sizing: border-box;
}

.verify-button {
    width: 100%;
    padding: 15px;
    background-color: #0d6efd;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.2s;
}
.verify-button:hover {
    background-color: #0b5ed7;
}
/* === Help Section (Checkout Page) === */
.help-grid {
    display: grid;
    grid-template-columns: 1fr; /* মোবাইল ডিভাইসের জন্য ১ কলাম */
    gap: 15px;
    margin-top: 20px;
}

/* বড় স্ক্রিনের জন্য ২ কলাম লেআউট */
@media (min-width: 576px) {
    .help-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    /* ৩টি বাটন থাকলে শেষ বাটনটি পুরো জায়গা নেবে */
    .help-button:last-child:nth-child(odd) {
        grid-column: span 2;
    }
}

.help-button {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    background-color: #f8f9fa;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s, box-shadow 0.2s;
    font-size: 14px;
    line-height: 1.4;
}

.help-button:hover {
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.help-button .help-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
}

.help-icon.call { background-color: #3498db; }
.help-icon.whatsapp { background-color: #25d366; }
.help-icon.email { background-color: #f39c12; }

/* === Billing Page Styles === */
.billing-container {
    display: flex;
    gap: 20px;
}

.billing-sidebar {
    flex: 0 0 200px;
}

.billing-sidebar nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.billing-sidebar nav ul li a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    border-radius: 8px;
}

.billing-sidebar nav ul li.active a {
    background-color: #e9efff;
    color: #0d6efd;
    font-weight: 500;
}

.billing-main {
    flex: 1;
}

.billing-content-grid {
    display: grid;
    /* ★★★ This creates the 2-column layout ★★★ */
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.account-balance,
.plan-quota {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.account-balance h3,
.plan-quota h3 {
    margin-top: 0;
    font-size: 1.2rem;
}

.account-balance .balance {
    font-size: 2rem;
    font-weight: bold;
    color: #0d6efd;
    margin: 10px 0;
}

.account-balance .availability {
    color: #6c757d;
    margin-bottom: 20px;
}

.plan-actions {
    display: flex;
    gap: 10px;
}

.btn-upgrade {
    background-color: #ffc107;
    color: #212529;
}

.btn-renew {
    background-color: #0d6efd;
    color: white;
}

.quota-item {
    margin-top: 15px;
}

.quota-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.quota-bar {
    background-color: #e9ecef;
    border-radius: 8px;
    height: 10px;
    overflow: hidden;
}

.quota-progress {
    background-color: #0d6efd;
    height: 100%;
}

.plan-allocation {
    margin-top: 15px;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.plan-allocation p {
    margin-top: 0;
    font-weight: 500;
}

.plan-allocation ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    color: #6c757d;
}
/* Existing CSS content... */

/* === Billing Page Modal Styles === */
.billing-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1001;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
}

.billing-modal-overlay.open {
    display: flex; /* Show when open class is added */
}

.billing-modal-content {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 700px;
}

.billing-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.billing-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.close-modal-btn {
    background: none;
    border: none;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}

.amount-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.amount-btn {
    padding: 15px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    background-color: #ffffff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s;
}

.amount-btn:hover {
    border-color: #adb5bd;
}

.amount-btn.active {
    border-color: #0d6efd;
    background-color: #e9efff;
    color: #0d6efd;
}

.billing-modal-footer {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 25px;
}

#customAmountInputContainer input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
}
/* === Dashboard Page (index.php) Styles === */
.dashboard-grid {
    display: grid;
    /* responsive grid layout */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.section-title {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.stat-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
    border-left: 5px solid transparent;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

/* Color accents */
.stat-card.blue { border-color: #3498db; }
.stat-card.orange { border-color: #f39c12; }
.stat-card.purple { border-color: #8e44ad; }
.stat-card.green { border-color: #2ecc71; }
.stat-card.yellow { border-color: #f1c40f; }
.stat-card.red { border-color: #e74c3c; }

.stat-card .card-icon {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    font-size: 4rem;
    color: rgba(0, 0, 0, 0.07);
}

.stat-card .card-content h4 {
    margin: 0 0 10px 0;
    font-size: 1rem;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
}

.stat-card .stat-value {
    margin: 0;
    font-size: 2.8rem;
    font-weight: 700;
    color: #343a40;
}

.stat-card .stat-description {
    margin: 5px 0 0 0;
    color: #adb5bd;
    font-size: 14px;
}

/* Smaller cards for user stats */
.user-stats.dashboard-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.stat-card.small {
    padding: 20px;
    text-align: center;
}

.stat-card.small .card-content h4 {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #333;
}
.stat-card.small .stat-value {
    font-size: 2.5rem;
    margin-top: 10px;
}

/* Icon colors for small cards */
.stat-card.green h4 .fas { color: #2ecc71; }
.stat-card.yellow h4 .fas { color: #f1c40f; }
.stat-card.red h4 .fas { color: #e74c3c; }
/* === Dashboard Page (index.php) Styles === */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.section-title {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
.stat-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
    border-left: 5px solid transparent;
    transition: transform 0.2s;
}
.stat-card:hover {
    transform: translateY(-5px);
}
.stat-card.blue { border-color: #3498db; }
.stat-card.orange { border-color: #f39c12; }
.stat-card.purple { border-color: #8e44ad; }
.stat-card.green { border-color: #2ecc71; }
.stat-card.yellow { border-color: #f1c40f; }
.stat-card.red { border-color: #e74c3c; }
/* ★★★ নতুন কার্ডের জন্য নতুন রঙ ★★★ */
.stat-card.teal { border-color: #1abc9c; }

.stat-card .card-icon {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    font-size: 4rem;
    color: rgba(0, 0, 0, 0.07);
}
.stat-card .card-content h4 {
    margin: 0 0 10px 0;
    font-size: 1rem;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
}
.stat-card .stat-value {
    margin: 0;
    font-size: 2.8rem;
    font-weight: 700;
    color: #343a40;
}
.stat-card .stat-description {
    margin: 5px 0 0 0;
    color: #adb5bd;
    font-size: 14px;
}
.user-stats.dashboard-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.stat-card.small {
    padding: 20px;
    text-align: center;
}
.stat-card.small .card-content h4 {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #333;
}
.stat-card.small .stat-value {
    font-size: 2.5rem;
    margin-top: 10px;
}
.stat-card.green h4 .fas { color: #2ecc71; }
.stat-card.yellow h4 .fas { color: #f1c40f; }
.stat-card.red h4 .fas { color: #e74c3c; }

