:root {
    --primary-color: #0F969C;
    --secondary-color: #A2F9B8;
    --background-color: #1A1A2E;
    --card-bg: #2B2E4A;
    --text-color: #E0E0E0;
    --light-text: #b0b0b0;
    --accent-color: #FFD400;
    --danger-color: #e74c3c;
    --info-color: #3498db;
    --profit-color: #2ecc71;
    --purchase-color: #e67e22;
    --border-color: #3e4163;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--background-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

/* --- বাটন হোভার --- */
button:hover, .menu-button:hover, .back-btn:hover {
    cursor: pointer;
}

.login-container, .dashboard-container {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    width: 100%;
    margin-top: 5vh;
}

/* ❇️ অ্যাডমিন হেডার ❇️ */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 15px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

#adminLogoPreview {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.admin-header h2 {
    margin: 0;
    font-size: 1.5em;
    color: var(--accent-color);
    margin-bottom: 0;
}

h2 {
    text-align: center;
    color: var(--accent-color);
    margin-bottom: 25px;
}

/* --- ইনপুট ফিল্ড --- */
input[type="email"], input[type="password"], input[type="text"], input[type="number"], textarea, select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    background: var(--background-color);
    color: var(--text-color);
    font-size: 16px;
    box-sizing: border-box;
}

input[type="month"], input[type="date"], input[type="datetime-local"] {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 15px;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    background: var(--background-color);
    color: var(--text-color);
    font-size: 16px;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    color-scheme: dark;
}

textarea {
    resize: vertical;
    font-family: 'Poppins', sans-serif;
}

/* --- বাটন স্টাইল --- */
button {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
button:hover { background-color: #0a6c70; }

button.save-btn { background-color: #27ae60; }
button.save-btn:hover { background-color: #229954; }

#logoutButton {
    width: auto;
    padding: 10px 20px;
    background-color: #c0392b;
    margin: 0;
    font-size: 1em;
}
#logoutButton:hover { background-color: #a03024; }

.error { color: var(--danger-color); text-align: center; margin-top: 15px; }
.success { color: #2ecc71; text-align: center; margin: 15px 0; font-size: 1.1em; font-weight: bold; }

/* --- ড্যাশবোর্ড স্ট্যাটাস --- */
.admin-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--background-color);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    gap: 15px;
    border: 1px solid var(--primary-color);
}

.stat-icon {
    font-size: 2.5em;
    padding: 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; 
    align-self: center; 
}

.stat-card.sales .stat-icon { background: rgba(46, 204, 113, 0.1); color: var(--profit-color); }
.stat-card.sales .stat-info h3 { color: var(--profit-color); }

.stat-card.purchase .stat-icon { background: rgba(230, 126, 34, 0.1); color: var(--purchase-color); }
.stat-card.purchase .stat-info h3 { color: var(--purchase-color); }

.stat-card.profit .stat-icon { background: rgba(46, 204, 113, 0.2); color: var(--profit-color); }
.stat-card.profit .stat-info h3 { color: var(--profit-color); font-weight: bold; }

.stat-card.orders .stat-icon { background: rgba(255, 212, 0, 0.1); color: var(--accent-color); }
.stat-card.orders .stat-info h3 { color: var(--accent-color); }

.stat-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1; 
    min-width: 0; 
}
.stat-info p {
    font-size: 0.9em; color: var(--text-color); margin: 0; line-height: 1.3; 
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; 
}
.stat-info h3 {
    margin: 0; font-size: 1.8em; word-break: keep-all; white-space: nowrap; 
}

/* সেলস রিপোর্ট (৪ কলাম) */
.admin-stats-grid.lifetime-stats {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    margin-top: 10px;
    margin-bottom: 0;
}

.lifetime-stats .stat-card {
    border-color: var(--card-bg);
    padding: 15px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}
.lifetime-stats .stat-card .stat-icon { font-size: 2em; padding: 12px; margin-bottom: 5px; }

.lifetime-stats.sales-stats .stat-card .stat-icon { background: rgba(46, 204, 113, 0.1); color: var(--profit-color); }
.lifetime-stats.sales-stats .stat-info h3 { color: var(--profit-color); }

.lifetime-stats.purchase-stats .stat-card .stat-icon { background: rgba(230, 126, 34, 0.1); color: var(--purchase-color); }
.lifetime-stats.purchase-stats .stat-info h3 { color: var(--purchase-color); }

.lifetime-stats.profit-stats .stat-card .stat-icon { background: rgba(46, 204, 113, 0.2); color: var(--profit-color); }
.lifetime-stats.profit-stats .stat-info h3 { color: var(--profit-color); font-weight: bold; }

.lifetime-stats.orders-stats .stat-card .stat-icon { background: rgba(255, 212, 0, 0.1); color: var(--accent-color); }
.lifetime-stats.orders-stats .stat-info h3 { color: var(--accent-color); }

.lifetime-stats .stat-info { align-items: center; }
.lifetime-stats .stat-info p { white-space: normal; font-size: 0.85em; }
.lifetime-stats .stat-info h3 { font-size: 1.4em; }

.hidden { display: none; }

/* এডিটর সেকশন */
.editor-section {
    background: var(--background-color); padding: 20px; border-radius: 8px; margin-top: 20px;
}
.editor-section h3 {
    border-bottom: 2px solid var(--primary-color); padding-bottom: 10px; margin-bottom: 20px; color: var(--accent-color);
}
.editor-section h4 {
    color: var(--secondary-color); margin-bottom: 15px; border-bottom: 1px solid var(--card-bg); padding-bottom: 10px;
}
.editor-section h4 i { margin-right: 8px; }

.sub-editor-section {
    background: var(--card-bg); padding: 15px; border-radius: 5px; margin-bottom: 20px;
}
.sub-editor-section h5 {
    color: var(--accent-color); margin: 0 0 10px 0; font-size: 1.1em;
}
.sub-editor-section .add-link-btn { background-color: #27ae60; margin-top: 10px; }
.sub-editor-section .add-link-btn:hover { background-color: #229954; }

.editor-section button {
    background: var(--accent-color); color: var(--background-color);
}
.editor-section button:hover { background: #e0bd00; }

hr {
    border: none; height: 2px; background-color: var(--primary-color); margin: 30px 0; opacity: 0.7;
}

label { display: block; margin-bottom: 5px; font-weight: bold; color: var(--text-color); }

.checkbox-container { display: flex; align-items: center; margin: 15px 0; }
.checkbox-container input[type="checkbox"] { width: auto; margin: 0 10px 0 0; }
.checkbox-container label { margin: 0; font-weight: normal; }
small { display: block; margin-top: -10px; margin-bottom: 15px; font-size: 12px; color: var(--text-color); opacity: 0.7; }

.button-group { display: flex; gap: 10px; margin-top: 10px; }
.button-group .clear-btn { background: #7f8c8d; color: white; }
.button-group .clear-btn:hover { background: #6c7a7b; }

#package-list-container, #review-list-container, .support-link-list, #app-list-container, #faq-list-container, #video-list-container, #slide-list-container {
    margin-top: 20px;
}

.package-item, .review-item, .link-item, .app-item, .faq-item, .video-item {
    background: var(--card-bg); padding: 15px; border-radius: 8px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; border-left: 4px solid var(--primary-color); word-break: break-all;
}

/* কাস্টমার লিস্ট */
.customer-item {
    background: var(--card-bg); padding: 15px; border-radius: 8px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; border-left: 4px solid var(--primary-color); word-break: break-all;
}
.customer-item.selected { border-left-color: var(--accent-color); background-color: var(--background-color); }
.customer-item .info { display: flex; flex-direction: column; gap: 4px; flex: 1; padding-right: 10px; overflow-wrap: break-word; }
.customer-item .info .name { font-size: 1.1em; font-weight: bold; color: var(--text-color); }
.customer-item .info .whatsapp, .customer-item .info .details { font-size: 0.9em; color: var(--light-text); margin: 0; }
.customer-item .actions { display: flex; gap: 8px; align-items: center; }
.customer-item .actions button { width: auto; padding: 10px 12px; font-size: 16px; margin-left: 0; line-height: 1; }

/* প্যাকেজ আইটেম */
.package-item span, .review-item span, .link-item span, .app-item span, .faq-item span, .video-item span {
    font-size: 1.1em; font-weight: bold; flex: 1; padding-right: 10px;
}
.package-item .balance-info {
    font-size: 1em; font-weight: bold; color: var(--secondary-color); margin-right: 15px; flex-shrink: 0;
}
.package-item .balance-info .unlimited { color: var(--info-color); }
.package-item .balance-info .low-stock { color: var(--danger-color); }

.package-item .actions, .review-item .actions, .link-item .actions, .app-item .actions, .faq-item .actions, .video-item .actions {
    display: flex; gap: 5px; 
}
.package-item .actions button, .review-item .actions button, .link-item .actions button, .app-item .actions button, .faq-item .actions button, .video-item .actions button {
    width: auto; padding: 8px 12px; font-size: 14px; margin-left: 0; 
}

.edit-btn { background: var(--info-color); }
.edit-btn:hover { background: #2980b9; }
.delete-btn { background: var(--danger-color); }
.delete-btn:hover { background: #c0392b; }
.report-btn { background: var(--profit-color); }
.report-btn:hover { background: #27ae60; }

/* মেন্যু গ্রিড */
.menu-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 20px;
}
.menu-button {
    background: var(--background-color); border: 2px solid var(--primary-color); padding: 25px 15px; border-radius: 10px; color: var(--text-color); font-size: 1.1em; font-weight: bold; display: flex; flex-direction: column; align-items: center; gap: 15px; transition: all 0.3s ease; text-align: center;
}
.menu-button:hover {
    background: var(--primary-color); color: var(--background-color); transform: translateY(-5px); box-shadow: 0 5px 15px rgba(15, 150, 156, 0.3);
}
.menu-button i { font-size: 2.5em; }

.back-btn {
    width: auto; padding: 8px 15px; background: var(--info-color); font-size: 14px; margin-bottom: 15px; position: sticky; top: 10px; z-index: 1000;
}

/* প্রাইসিং ফর্ম */
.pricing-sub-form {
    background: var(--background-color); padding: 15px; border-radius: 8px; border: 1px solid var(--primary-color); margin-bottom: 15px;
}
.form-group-inline {
    display: inline-block; width: calc(50% - 10px); margin-right: 10px; vertical-align: top; box-sizing: border-box; 
}
.form-group-inline:last-of-type { margin-right: 0; }
.pricing-sub-form label { font-size: 14px; color: var(--light-text); }
.add-btn { background-color: #27ae60; margin-top: 10px; width: 100%; }
.add-btn:hover { background-color: #229954; }
#pricing-list-container { margin-top: 15px; }
.pricing-item {
    background: var(--card-bg); padding: 10px 15px; border-radius: 5px; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--border-color); flex-direction: row;
}
.pricing-item span { font-weight: bold; color: var(--secondary-color); flex-grow: 1; word-break: break-all; }
.pricing-item span .price-value { color: var(--text-color); font-weight: normal; }
.pricing-item .actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; margin-left: 10px; }
.pricing-item button { width: auto; padding: 5px 10px; font-size: 14px; margin: 0; }
.pricing-item .edit-price-btn { background: var(--info-color); }
.pricing-item .delete-price-btn { background: var(--danger-color); }

.app-item span small {
    display: block; font-weight: normal; font-size: 0.8em; color: var(--secondary-color); opacity: 0.8; margin-top: 5px; 
}
.faq-item span p {
    font-size: 0.9em; font-weight: normal; color: var(--text-color); margin-top: 8px; opacity: 0.9; white-space: pre-wrap; 
}

/* রিসেলার সেকশন */
.reseller-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.reseller-section { background: var(--card-bg); padding: 20px; border-radius: 8px; }
.reseller-section h5 {
    color: var(--secondary-color); margin: 0 0 15px 0; font-size: 1.2em; border-bottom: 1px solid var(--primary-color); padding-bottom: 10px;
}
#reseller-customer-list-container { max-height: 400px; overflow-y: auto; padding-right: 10px; margin-top: 15px; }

.profit-preview {
    background: var(--background-color); border: 1px dashed var(--accent-color); border-radius: 5px; padding: 15px; margin-top: 15px;
}
.profit-preview p { margin: 5px 0; font-size: 1.1em; font-weight: bold; color: var(--text-color); }
.profit-preview p span { color: var(--accent-color); float: right; }
.profit-preview p:last-child span { color: var(--profit-color); }

/* সেলস রিপোর্ট */
.reseller-stats-header {
    color: var(--secondary-color); font-size: 1.4em; border-bottom: 2px solid var(--primary-color); padding-bottom: 10px; margin: 25px 0 20px 0;
}
#backToFullReportBtn { width: auto; padding: 8px 15px; background: var(--danger-color); font-size: 14px; }
.sales-filter-controls { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; align-items: flex-end; }
.sales-filter-controls .form-group-inline { flex: 1; min-width: 180px; margin-right: 0; vertical-align: bottom; }
.sales-filter-controls .filter-btn, .sales-filter-controls .clear-btn { flex: 1; min-width: 150px; padding: 12px; margin-bottom: 0; }
.sales-filter-controls .filter-btn { background-color: var(--info-color); }
.sales-filter-controls .clear-btn { background-color: #7f8c8d; }
.sales-filter-controls .form-group-inline input, .sales-filter-controls .form-group-inline select { margin-bottom: 0; }

.sales-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin: 20px 0; }
.summary-card { background: var(--card-bg); padding: 20px; border-radius: 8px; text-align: center; border-left: 5px solid var(--accent-color); }
.summary-card p { margin: 0; color: var(--light-text); }
.summary-card h3 { margin: 5px 0 0 0; color: var(--accent-color); font-size: 1.8em; }

.sales-table-container { width: 100%; overflow-x: auto; background: var(--card-bg); border-radius: 8px; border: 1px solid var(--border-color); }
#sales-log-table { width: 100%; border-collapse: collapse; }
#sales-log-table th, #sales-log-table td { padding: 12px 15px; border-bottom: 1px solid var(--border-color); text-align: left; white-space: nowrap; }
#sales-log-table th { background: var(--background-color); color: var(--secondary-color); font-size: 0.9em; text-transform: uppercase; }
#sales-log-table tbody tr:hover { background-color: #3B3E5A; }
#sales-log-table td { color: var(--text-color); }
#sales-log-table td .reseller-tag { background-color: var(--info-color); color: var(--background-color); padding: 3px 8px; border-radius: 4px; font-size: 0.9em; font-weight: bold; }
#sales-log-table td:nth-last-child(2) { font-weight: bold; color: #2ecc71; }
.sales-action-btn { width: auto; padding: 5px 10px; font-size: 14px; margin-right: 5px; }
#sales-log-tbody tr.no-data-row td { text-align: center; padding: 30px; color: var(--light-text); font-size: 1.1em; }

.payment-method-stats { margin-top: 25px; }
.sub-header { color: var(--secondary-color); font-size: 1.2em; border-bottom: 1px solid var(--card-bg); padding-bottom: 10px; margin-bottom: 15px; }
.stats-filter-buttons { display: flex; gap: 10px; margin-bottom: 15px; flex-wrap: wrap; }
.stat-filter-btn { width: auto; flex: 1; background: var(--card-bg); color: var(--text-color); padding: 10px 15px; font-size: 14px; border: 1px solid var(--primary-color); white-space: nowrap; min-width: 60px; }
.stat-filter-btn:hover { background: var(--primary-color); }
.stat-filter-btn.active { background: var(--accent-color); color: var(--background-color); border-color: var(--accent-color); }

.admin-stats-grid.payment-grid { grid-template-columns: 1fr 1fr; }
.payment-grid .stat-card { padding: 15px; flex-direction: column; align-items: flex-start; gap: 5px; }
.payment-grid .stat-info h3 { font-size: 1.5em; }
.stat-card.payment-bkash { border-left: 5px solid #E2136E; } .stat-card.payment-bkash .stat-info h3 { color: #E2136E; }
.stat-card.payment-nagad { border-left: 5px solid #F26522; } .stat-card.payment-nagad .stat-info h3 { color: #F26522; }
.stat-card.payment-rocket { border-left: 5px solid #663399; } .stat-card.payment-rocket .stat-info h3 { color: #663399; }
.stat-card.payment-upay { border-left: 5px solid #FFC107; } .stat-card.payment-upay .stat-info h3 { color: #FFC107; }

.package-sales-stats { margin-top: 25px; }
.sales-search-box { width: 100%; }
.sales-search-box input { width: 100%; margin-bottom: 15px; }
.package-stats-container { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; background: var(--card-bg); padding: 15px; border-radius: 8px; }
.package-stat-item { display: flex; justify-content: space-between; align-items: center; background: var(--background-color); padding: 10px 15px; border-radius: 5px; border-left: 4px solid var(--primary-color); transition: background-color 0.3s ease; }
.package-stat-item:hover { background-color: #3B3E5A; cursor: pointer; }
.package-stat-item .package-name { font-weight: bold; color: var(--text-color); font-size: 0.9em; word-break: break-all; padding-right: 10px; }
.package-stat-item .package-count { font-size: 1.2em; font-weight: bold; color: var(--secondary-color); background: var(--card-bg); padding: 5px 10px; border-radius: 5px; }

.stock-manager-form { max-width: 500px; margin: 20px auto; background: var(--card-bg); padding: 20px; border-radius: 8px; }
.stock-manager-form p { text-align: center; margin-bottom: 15px; font-size: 1.1em; color: var(--light-text); }
#stock-current-balance-display { font-size: 1.1em; font-weight: bold; color: var(--text-color); background: var(--background-color); padding: 15px; border-radius: 5px; margin-bottom: 15px; display: block; }
#stock-current-balance-display span { color: var(--secondary-color); }
#stock-current-balance-display span.unlimited { color: var(--info-color); }
#stock-current-balance-display span.low-stock { color: var(--danger-color); }
.stock-manager-form .save-btn { background-color: #27ae60; }
.stock-manager-form .save-btn:hover { background-color: #229954; }

.reminder-settings, .manual-send-box { background: var(--card-bg); padding: 20px; border-radius: 8px; margin-bottom: 20px; }
.reminder-settings h5, .manual-send-box h5 { color: var(--secondary-color); margin-bottom: 10px; }
.reminder-settings textarea { min-height: 100px; }
.reminder-settings button, .manual-send-box button { margin-top: 10px; }
.manual-send-box .edit-btn { background: var(--info-color); }
.manual-send-box .edit-btn:hover { background: #2980b9; }

.reminder-category-details { margin-bottom: 25px; border-bottom: 2px solid var(--primary-color); }
.reminder-category-details summary { cursor: pointer; list-style: none; }
.reminder-category-details summary::-webkit-details-marker { display: none; }
.reminder-category-details summary .reminder-header { border-bottom: none; margin-bottom: 0; }
.reminder-category-details[open] summary .reminder-header { margin-bottom: 15px; }
.reminder-category-details[open] .reminder-list-container { padding-top: 10px; border-top: 1px dashed var(--card-bg); }

.reminder-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; }
.reminder-header h5 { color: var(--accent-color); margin: 0; }
.copy-list-btn { width: auto; padding: 5px 12px; font-size: 12px; background: var(--info-color); }
.copy-list-btn:hover { background: #2980b9; }

/* ❇️❇️ রিমাইন্ডার লিস্ট - বক্স গ্রিড সিস্টেম (আপডেট) ❇️❇️ */
.reminder-list-container {
    max-height: 450px; /* হাইট ফিক্সড */
    overflow-y: auto;  /* স্ক্রল অন */
    background: var(--background-color); /* বক্সের ব্যাকগ্রাউন্ড */
    border: 1px solid var(--primary-color); /* বর্ডার */
    border-radius: 8px;
    padding: 15px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

/* Scrollbar Design */
.reminder-list-container::-webkit-scrollbar { width: 6px; }
.reminder-list-container::-webkit-scrollbar-track { background: var(--card-bg); }
.reminder-list-container::-webkit-scrollbar-thumb { background: var(--primary-color); border-radius: 10px; }

.reminder-item {
    background: var(--card-bg);
    padding: 15px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--danger-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}
.reminder-item:hover { transform: translateY(-3px); box-shadow: 0 6px 12px rgba(0,0,0,0.3); }

.reminder-lists .reminder-category-details:nth-of-type(1) .reminder-item { border-left-color: #27ae60; }
.reminder-lists .reminder-category-details:nth-of-type(2) .reminder-item { border-left-color: var(--accent-color); }
.reminder-lists .reminder-category-details:nth-of-type(3) .reminder-item { border-left-color: #e67e22; }
.reminder-lists .reminder-category-details:nth-of-type(4) .reminder-item { border-left-color: var(--danger-color); }
.reminder-lists .reminder-category-details:nth-of-type(5) .reminder-item { border-left-color: var(--info-color); }

.reminder-info { display: flex; flex-direction: column; gap: 5px; width: 100%; padding-right: 0; overflow-wrap: break-word; }
.reminder-info .whatsapp-num { font-size: 1.2em; font-weight: bold; color: var(--text-color); letter-spacing: 0.5px; }
.reminder-info .username-display { font-size: 0.85em; color: var(--info-color); font-weight: bold; background: rgba(52, 152, 219, 0.1); padding: 2px 6px; border-radius: 4px; width: fit-content; margin-bottom: 5px; }
.reminder-info .package-name { font-size: 0.95em; color: var(--secondary-color); font-weight: 600; }
.reminder-info .expiry-date { font-size: 0.8em; color: var(--light-text); opacity: 0.8; }
.reminder-info .sent-status { font-size: 0.9em; font-weight: bold; color: var(--info-color); margin-top: 5px; }
.reminder-info .sent-status.sent { color: var(--secondary-color); }

.reminder-actions {
    display: flex; flex-direction: row; gap: 10px; width: 100%; margin-top: 10px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 10px;
}
.reminder-actions button {
    flex: 1; width: 100%; padding: 8px 5px; font-size: 13px; border-radius: 5px; display: flex; justify-content: center; align-items: center; gap: 5px; margin: 0;
}
.send-reminder-btn { background: var(--accent-color); color: #000; font-weight: bold; }
.send-reminder-btn:hover { background: #e0bd00; }
.send-reminder-btn.sent-btn { background: #7f8c8d; cursor: not-allowed; }
.reminder-edit-btn { background: var(--info-color); color: white; }
.reminder-edit-btn:hover { background: #2980b9; }
.no-reminders { color: var(--light-text); padding: 10px; text-align: center; }

/* Modal */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(5px); display: none; justify-content: center; align-items: center; z-index: 2000; }
.modal-content { background: var(--card-bg); padding: 30px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); width: 90%; max-width: 500px; border-top: 5px solid var(--primary-color); position: relative; }
.modal-close { position: absolute; top: 10px; right: 15px; font-size: 2em; color: var(--light-text); cursor: pointer; transition: color 0.3s ease; }
.modal-close:hover { color: var(--accent-color); }
.modal-content h4 { color: var(--secondary-color); margin-top: 0; margin-bottom: 20px; font-size: 1.3em; }
.modal-content h4 i { margin-right: 10px; }
.modal-form .save-btn { background-color: #27ae60; }
.modal-form .save-btn:hover { background-color: #229954; }

/* Auto Customer Group */
.operator-group { background: var(--background-color); border-radius: 8px; margin-bottom: 10px; border: 1px solid var(--primary-color); }
.operator-group summary { padding: 15px 20px; font-weight: bold; font-size: 1.1em; color: var(--secondary-color); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.operator-group summary::-webkit-details-marker { display: none; }
.operator-group summary span { color: var(--accent-color); font-size: 0.9em; }
.operator-group[open] summary { border-bottom: 1px solid var(--primary-color); }
.operator-group .customer-list-inner { padding: 15px; max-height: 300px; overflow-y: auto; }
.operator-group .customer-list-inner .customer-item { background: var(--background-color); border: 1px solid var(--card-bg); }
.operator-group .customer-list-inner .customer-item:hover { background: #3B3E5A; }

@media (max-width: 768px) {
    body { padding: 10px; }
    .login-container, .dashboard-container { padding: 15px; max-width: 100%; }
    .admin-header { flex-direction: column; gap: 15px; }
    .header-left { width: 100%; justify-content: center; }
    #logoutButton { width: 100%; font-size: 0.9em; }
    .admin-stats-grid { grid-template-columns: 1fr 1fr; }
    .stat-card { padding: 15px; flex-direction: column; align-items: center; text-align: center; }
    .stat-icon { font-size: 2em; padding: 12px; margin-bottom: 5px; align-self: center; }
    .stat-info { align-items: center; }
    .stat-info p { white-space: normal; }
    .stat-info h3 { font-size: 1.5em; }
    .admin-stats-grid.lifetime-stats { grid-template-columns: 1fr 1fr; }
    .lifetime-stats .stat-card { padding: 10px; gap: 5px; }
    .lifetime-stats .stat-icon { font-size: 1.8em; padding: 10px; }
    .lifetime-stats .stat-info p { font-size: 0.8em; }
    .lifetime-stats .stat-info h3 { font-size: 1.2em; }
    .admin-stats-grid.payment-grid { grid-template-columns: 1fr 1fr; }
    .payment-grid .stat-info h3 { font-size: 1.2em; }
    h2 { font-size: 1.5em; }
    .menu-grid { grid-template-columns: 1fr 1fr; gap: 15px; }
    .menu-button { padding: 20px 10px; font-size: 1em; }
    .package-item, .review-item, .link-item, .app-item, .faq-item, .video-item { flex-direction: column; align-items: flex-start; gap: 15px; }
    .customer-item { flex-direction: column; align-items: flex-start; gap: 15px; }
    .customer-item .actions { width: 100%; }
    .customer-item .actions button { flex: 1; }
    .package-item { align-items: center; }
    .package-item span { text-align: center; width: 100%; }
    .package-item .balance-info { margin-right: 0; margin-top: 5px; }
    .package-item .actions, .review-item .actions, .link-item .actions, .app-item .actions, .faq-item .actions, .video-item .actions { display: flex; width: 100%; gap: 10px; }
    .package-item .actions button, .review-item .actions button, .link-item .actions button, .app-item .actions button, .faq-item .actions button, .video-item .actions button { flex: 1; margin-left: 0; }
    .button-group { flex-direction: column; }
    .form-group-inline { width: 100%; margin-right: 0; }
    .pricing-item { flex-direction: column; align-items: flex-start; gap: 10px; }
    .pricing-item .actions { width: 100%; flex-direction: row; margin-left: 0; }
    .pricing-item .actions button { flex: 1; }
    .reseller-grid { grid-template-columns: 1fr; }
    .sales-filter-controls { flex-direction: column; }
    .sales-filter-controls .form-group-inline { width: 100%; }
    .sales-summary { grid-template-columns: 1fr; }
    .package-stats-container { grid-template-columns: 1fr; }
    
    /* মোবাইল রিমাইন্ডার */
    .reminder-list-container { grid-template-columns: 1fr; max-height: 400px; padding: 10px; }
    .reminder-item { padding: 15px; }
    .reminder-actions { flex-direction: row; }
    .reminder-actions .send-reminder-btn, .reminder-actions .reminder-edit-btn { flex: 1; text-align: center; }
}

/* টগল সুইচ */
.toggle-switch { position: relative; display: inline-block; width: 50px; height: 28px; flex-shrink: 0; }
.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: 28px; }
.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(--profit-color); }
input:focus + .slider { box-shadow: 0 0 1px var(--profit-color); }
input:checked + .slider:before { transform: translateX(22px); }

/* মার্ক করে ডিলিট */
.sales-log-checkbox-header { width: 20px; text-align: center; padding: 12px 8px; }
.sales-log-checkbox-header input { width: 18px; height: 18px; }
.sales-log-checkbox-cell { width: 20px; text-align: center; padding: 12px 8px; }
.sales-log-checkbox-cell input { width: 18px; height: 18px; }
#deleteSelectedSalesButton { background-color: var(--danger-color); width: auto; padding: 10px 15px; font-size: 14px; }
#deleteSelectedSalesButton:hover { background-color: #c0392b; }
#deleteSelectedSalesButton:disabled { background-color: #7f8c8d; cursor: not-allowed; }
