/* === বেসিক এবং ড্যাশবোর্ড লেআউট === */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #f4f7fa;
}

.container {
    padding: 20px;
}

/* ★★★ নতুন লোডার স্টাইল ★★★ */
.bkash-loader {
    position: fixed;
    z-index: 9999;
    width: 100%;
    height: 100%;
    background-color: #ffffffc2;
    left: 0;
    top: 0;
    background-image: url('https://res.cloudinary.com/d-coders/image/upload/v1592201998/wp-plugins/bkash.gif');
    background-position: center;
    background-repeat: no-repeat;
    display: none;
}


/* === হেডার === */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
}

.header-title h1 {
    margin: 0;
    font-size: 22px;
}

.header-icon {
    font-size: 22px;
    color: #555;
    text-decoration: none;
    cursor: pointer;
    margin: 0;
}

/* === সাইডবার === */
.sidebar {
    position: fixed;
    top: 61px;
    left: -250px;
    width: 250px;
    height: 100%;
    background-color: #2c3e50;
    transition: left 0.3s ease;
    padding-top: 20px;
    z-index: 999;
}

.sidebar.open {
    left: 0;
}

.sidebar-menu {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li a {
    display: block;
    padding: 15px 20px;
    color: #ecf0f1;
    text-decoration: none;
    font-size: 18px;
}

.sidebar-menu li a:hover {
    background-color: #34495e;
}

/* === সাইডবার মেনু হেডার (নতুন যুক্ত) === */
.sidebar-menu .sidebar-header {
    padding: 20px 20px 8px;
    font-size: 13px;
    font-weight: 600;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-content {
    padding: 80px 20px 20px 20px;
    transition: margin-left 0.3s ease;
}

.main-content.shifted {
    margin-left: 250px;
}

/* === সাধারণ পেজ কম্পোনেন্ট === */
.page-container {
    padding: 20px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.breadcrumbs {
    color: #6c757d;
    margin: 0;
    font-size: 14px;
}

.page-title {
    margin: 0;
    font-size: 2.2rem;
    font-weight: bold;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    text-decoration: none; /* লিঙ্ক-ভিত্তিক বাটনের আন্ডারলাইন সরাতে */
}

.btn-primary {
    background-color: #0d6efd;
    color: white;
}

.btn-secondary {
    background-color: white;
    color: #212529;
    border: 1px solid #ced4da;
}

.btn .fas {
    margin-right: 8px;
}

.content-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.card-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.icon-btn {
    color: #6c757d;
    font-size: 18px;
}

.search-box {
    position: relative;
}

.search-box .fa-search {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
}

.search-box input {
    padding: 10px 15px 10px 40px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 16px;
    width: 250px;
}

/* === ডেটা টেবিল === */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th, .data-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #f1f1f1;
    vertical-align: middle;
}

.data-table th {
    color: #6c757d;
    font-weight: 600;
}

.data-table th .fas {
    font-size: 12px;
    margin-left: 5px;
}

.data-table td {
    color: #212529;
    font-weight: 500;
}

.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: #0d6efd;
    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:not(:checked) + .slider {
    background-color: #ccc;
}

input:checked + .slider:before {
    transform: translateX(22px);
}

.actions a {
    text-decoration: none;
    font-weight: 600;
    margin-left: 20px;
}
.actions .fa-pencil-alt, .actions .fa-trash-alt {
    margin-right: 5px;
}

.action-edit { color: #0d6efd; }
.action-delete { color: #dc3545; }

.card-footer {
    padding-top: 20px;
    display: flex;
    justify-content: flex-end;
}

.pagination-controls span {
    margin-right: 10px;
    color: #6c757d;
}

.pagination-controls select {
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

/* === Modal (পপআপ) === */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
    background-color: #ffffff;
    margin: 10% auto;
    padding: 30px;
    border: none;
    width: 80%;
    max-width: 550px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e5e5;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.close-button {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover, .close-button:focus {
    color: #000;
}

.modal-body {
    padding: 20px 0;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.required-star {
    color: #dc3545;
    margin-left: 2px;
}

.select-wrapper {
    position: relative;
}

.select-wrapper select {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ced4da;
    font-size: 16px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: white;
}

.select-wrapper::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    pointer-events: none;
    color: #888;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 15px;
    gap: 10px;
}

/* === ফর্ম গ্রিড এবং ইনপুট === */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px 0;
}

.form-group input[type="text"],
.form-group input[type="number"],
.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;
}

.form-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

/* === ড্যাশবোর্ডের টেস্ট পেমেন্ট ফর্ম (`index.php`) === */
.test-payment-form {
    margin-top: 20px;
}

.test-payment-form label {
    font-weight: bold;
    color: #333;
}

/* === চেকআউট পেজ (`checkout.php`) === */
.checkout-body {
    background-color: #f0f4f9;
    background-image: url('../images/body-blue.webp');
    background-size: 150px; /* ★★★ নতুন সাইজ সেট করা হয়েছে ★★★ */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.checkout-container {
    background-color: rgba(255, 255, 255, 0.95);
    width: 100%;
    max-width: 600px;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.checkout-top-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.fake-url-bar {
    flex-grow: 1;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    color: #888;
}

.checkout-close-btn, .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;
}

.checkout-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.logo-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #fce4ec;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-circle img {
    max-width: 40px;
}

.separator-bar {
    background-color: #0d6efd;
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    margin-bottom: 25px;
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 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: 30px;
    margin-bottom: 10px;
}

.payment-method span {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* === চেকআউট নির্দেশনাবলী ভিউ === */
.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;
}

.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;
}

/* === পেমেন্ট বাতিল পেজ (`payment_cancelled.php`) === */
.cancellation-body {
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.cancellation-box {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 450px;
}

.cancellation-box h2 {
    font-size: 24px;
    color: #dc3545;
    margin-bottom: 15px;
}

.cancellation-box p {
    color: #555;
    margin-bottom: 25px;
}

/* === লগইন ও রেজিস্ট্রেশন পেজ === */
.auth-body {
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.auth-container {
    background-color: #ffffff;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 420px;
}

.auth-title {
    text-align: left;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
}

.auth-btn {
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    font-weight: bold;
}

.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;
}

/* === API Settings Page === */
.api-card {
    margin-bottom: 25px;
}

.api-card .card-header h3 {
    margin: 0;
    font-size: 1.2rem;
}
.api-card .card-header p {
    margin: 5px 0 0;
    color: #6c757d;
}

.input-with-actions {
    display: flex;
    align-items: center;
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding-right: 5px;
}
.input-with-actions input {
    flex-grow: 1;
    border: none;
    padding: 12px;
    font-size: 16px;
    background-color: transparent;
}
.input-with-actions input:focus {
    outline: none;
}
.input-with-actions .actions {
    display: flex;
    gap: 5px;
}
.input-with-actions .icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #555;
    padding: 8px;
}

.api-card small {
    display: block;
    margin-top: 8px;
    color: #6c757d;
}

.documentation-card .btn-link {
    display: inline-block;
    padding: 10px 15px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    text-decoration: none;
    color: #0d6efd;
    font-weight: 600;
}
.documentation-card .btn-link .far {
    margin-right: 8px;
}

/* === ডকুমেন্টেশন পেজ === */
pre {
    background-color: #2d2d2d;
    color: #f8f8f2;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
}
hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 25px 0;
}

/* === Devices Page (devices.php) === (নতুন যুক্ত) */
.btn .fa-wifi {
    margin-right: 8px;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.status-disconnected {
    background-color: #fee2e2; /* হালকা লাল */
    color: #ef4444; /* গাঢ় লাল */
}

.status-connected {
    background-color: #dcfce7; /* হালকা সবুজ */
    color: #22c55e; /* গাঢ় সবুজ */
}

.actions .action-verify {
    color: #3b82f6; /* নীল রঙ */
}

.actions .action-verify .fas {
    margin-right: 5px;
}
/* === সাইড প্যানেল (Connect Android App) === */
.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;
}

.side-panel-overlay.open {
    opacity: 1;
    visibility: visible;
}

.side-panel {
    position: fixed;
    top: 0;
    right: -800px; /* শুরুতে পর্দার বাইরে থাকবে */
    width: 100%;
    max-width: 800px;
    height: 100%;
    background-color: #f4f7fa;
    box-shadow: -2px 0 15px rgba(0,0,0,0.1);
    transition: right 0.4s ease-in-out;
    display: flex;
    flex-direction: column;
}

.side-panel-overlay.open .side-panel {
    right: 0; /* 'open' ক্লাস যুক্ত হলে ভেতরে চলে আসবে */
}

.side-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
}

.side-panel-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.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;
}

.panel-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
}

.panel-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #f1f1f1;
}

.panel-card-header h4 {
    margin: 0;
    font-size: 1rem;
}

.panel-card-body h2 {
    font-size: 1.4rem;
    margin-top: 0;
}

.panel-card-body .subtitle {
    color: #0d6efd;
    font-weight: bold;
    margin-top: -10px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.features-list li {
    margin-bottom: 12px;
    color: #555;
}

.features-list .fa-check-circle {
    color: #22c55e;
    margin-right: 10px;
}

.download-btn {
    width: 100%;
    justify-content: center;
    padding: 12px;
}

.download-btn .fa-download {
    margin-right: 8px;
}

.qr-section {
    text-align: center;
}

.qr-code-container {
    margin-top: 20px;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 8px;
    display: inline-block;
}

.qr-code-container img {
    max-width: 100%;
    height: auto;
    display: block;
}
/* === Payment Links Page Specific Styles === */

/* পেজের হেডারে ডান পাশে বাটনগুলোকে গ্রুপ করার জন্য */
.page-header-actions {
    display: flex;
    gap: 10px; /* বাটনগুলোর মধ্যে স্পেস */
}

/* Edit, Copy, Delete বাটনগুলোর আইকনের জন্য */
.actions .fa-pencil-alt, 
.actions .fa-trash-alt, 
.actions .far.fa-copy {
    margin-right: 5px;
}

/* নতুন 'Copy' অ্যাকশন লিঙ্কের জন্য সবুজ রঙ */
.action-copy { 
    color: #198754; 
}
/* === Create Payment Link Form Styles === */
.form-section {
    padding: 10px 0;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.form-group.half-width {
    width: 50%;
}
.form-group.third-width {
    width: 33.33%;
}

.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    font-family: inherit;
    resize: vertical;
}

.input-with-prefix {
    display: flex;
    align-items: center;
    border: 1px solid #ced4da;
    border-radius: 8px;
}
.input-with-prefix span {
    padding: 0 15px;
    background-color: #f8f9fa;
    border-right: 1px solid #ced4da;
    color: #6c757d;
}
.input-with-prefix input {
    border: none;
    flex-grow: 1;
}

.form-group input[type="date"] {
    width: 100%;
    padding: 11px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    font-family: inherit;
    color: #555;
}
/* === Toast Notification === */
#toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    z-index: 1010;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    transform: translateY(-20px);
}
#toast-notification.show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}
#toast-notification.success {
    background-color: #28a745;
}
#toast-notification.error {
    background-color: #dc3545;
}
/* === Payment Link Form Page (pay.php) === */
.link-form-container {
    background-color: #ffffff;
    padding: 30px 40px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 550px;
    text-align: center;
}

.link-form-header .product-image-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 auto 15px;
    background-color: #f0f2f5;
}
.link-form-header .product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.link-form-header h2 {
    font-size: 22px;
    margin: 0 0 5px 0;
}
.link-form-header p {
    color: #6c757d;
    margin: 0 0 25px 0;
}

.link-form-body {
    text-align: left;
}
/* === Default Payment Link Page (default.php) === */
.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;
}