/* modals.css */
/* কাজ: এই ফাইলটিতে অ্যাপের সমস্ত পপ-আপ মডাল এবং এর ভেতরের কম্পোনেন্টের স্টাইল থাকবে। */

/* ======================================================== */
/* =============== Z-INDEX HIERARCHY GUIDE ================ */
/* ======================================================== */
/* 
   Level 1: Base Modals (1000 - 1002)
   Level 2: Popups/Options/Datepicker (1003 - 1005)
   Level 3: Confirmations/Prompts (1006 - 1010)
   Level 4: Smart Tools (Calculator, QR, etc.) (10000 - 10010)
   Level 5: Image Viewer (11000)
   --------------------------------------------------------
   External (Not in this file):
   - Sidebar: 15000 (Adjusted logic)
   - Pin Lock: 19000
   - Toasts: 21000 
*/

/* কাস্টমার কার্ডের ডানপাশের অপশন (...) বাটন এবং ড্রপডাউন */
.customer-card.options-active {
  z-index: 10;
}

.customer-options {
  position: relative;
  margin-left: 10px;
}

.options-btn {
  cursor: pointer;
  padding: 5px 8px;
  font-size: 22px;
  color: #6c757d;
  border-radius: 50%;
}

.options-btn:hover {
  background-color: #f0f0f0;
}

.options-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 35px;
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  z-index: 1001;
  overflow: hidden;
  width: 130px;
}

.options-dropdown.upward {
  top: auto;
  bottom: 100%;
  margin-bottom: 5px;
}

.options-dropdown.show {
  display: block;
}

.dropdown-item {
  padding: 12px 15px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dropdown-item:hover {
  background-color: #f1f1f1;
}

.dropdown-item i {
  color: #6c757d;
  width: 16px;
  text-align: center;
}

/* --- মডালের সাধারণ স্টাইল --- */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  z-index: 1000; /* Level 1 Base */
}

/* Level 1: Standard Interaction Modals */
#edit-customer-modal, 
#settings-modal, 
#edit-profile-modal, 
#language-settings-modal, 
#profile-modal, 
#data-backup-modal, 
#filter-modal,
#transaction-history-modal, 
#transaction-detail-modal, 
#transaction-editor-modal, 
#cash-keypad-modal, 
#product-selection-modal {
  z-index: 1002;
}

/* Level 2: Overlays (DatePicker, Options) */
#date-picker-modal {
    z-index: 1003; 
}

#message-options-modal, 
#download-report-options-modal, 
#report-share-options-modal {
  align-items: flex-start;
  padding-top: 20vh;
  z-index: 1003;
}

/* Level 3: Confirmations & Prompts */
#payment-request-modal {
    z-index: 1005;
}

#custom-prompt-modal {
    z-index: 1006; 
}

#custom-confirm-modal {
    z-index: 1007; 
}

#payment-approval-modal {
    z-index: 1008;
}

#transaction-confirmation-modal {
    z-index: 1009;
}

#sms-report-modal {
    z-index: 1010 !important; 
}

/* Level 4: Smart Tools (High Priority) */
#qr-scanner-modal {
    z-index: 10001 !important;
}

#visiting-card-modal {
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 10005 !important;
}

#bank-info-modal {
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 10005 !important;
}

#calculator-modal {
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 20px;
    z-index: 10007 !important; 
}

/* Level 5: Image Viewer (Highest Modal) */
#image-viewer-modal {
    z-index: 11000 !important; 
    background-color: rgba(0, 0, 0, 0.95) !important;
    padding: 0;
    display: none;
}

/* --- মডাল কন্টেন্ট স্টাইল --- */
.modal-content {
  background: #fff;
  padding: 25px;
  border-radius: 15px;
  width: 100%;
  max-width: 420px;
  position: relative;
  animation: zoomIn 0.5s ease-out;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-content h2 {
  color: #dc3545;
  font-size: 24px;
  margin-bottom: 15px;
  font-weight: bold;
  text-align: center;
}

.customer-mobile {
  font-size: 16px;
  color: #007bff;
  margin-bottom: 10px;
  text-decoration: none;
  display: inline-block;
}

.customer-mobile:hover {
  text-decoration: underline;
}

.modal-content input, .modal-content select, .modal-content textarea {
  width: 100%;
  padding: 12px;
  margin: 12px 0;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  background: #fff;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.modal-content button {
  width: 100%;
  padding: 12px;
  background: #28a745;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
}

.modal-content button.secondary-btn {
  background: #6c757d;
}

.modal-content button.secondary-btn:hover {
  background: #5a6268;
}

.modal-content input:focus, .modal-content select:focus, .modal-content textarea:focus {
  border-color: #007bff;
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
  outline: none;
}

.modal-content textarea {
  resize: vertical;
  min-height: 60px;
}

.modal-content .button-group {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 15px;
}

.modal-content .button-group button {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modal-content .button-group button.confirm-btn {
  background: linear-gradient(45deg, #28a745, #218838);
  color: #fff;
  box-shadow: 0 6px 15px rgba(40, 167, 69, 0.4);
}

.modal-content .button-group button.confirm-btn:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(40, 167, 69, 0.5);
  background: linear-gradient(45deg, #218838, #1e7e34);
}

.modal-content button:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.message-options-modal .modal-content {
  padding: 20px;
  max-width: 300px;
}

.message-options-modal button {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  color: #fff;
  transition: all 0.3s ease;
}

.message-options-modal .whatsapp-btn {
  background: #25d366;
}

.message-options-modal .whatsapp-btn:hover {
  background: #128c7e;
}

.message-options-modal .sms-btn {
  background: #007bff;
}

.message-options-modal .sms-btn:hover {
  background: #0056b3;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #6c757d;
  transition: all 0.3s ease;
  padding: 5px 10px;
  border-radius: 50%;
  z-index: 10;
}

.close-btn:hover {
  color: #333;
}

.total-due {
  color: #dc3545;
  font-size: 18px;
  font-weight: bold;
  margin: 12px 0;
}

.date-box {
  color: #6c757d;
  font-size: 14px;
  margin: 12px 0;
}

/* --- কাস্টমার ডিটেইলস এবং ট্রানজেকশন এডিটর মডাল --- */
#customer-details-modal .modal-content,
#transaction-editor-modal .modal-content,
#product-selection-modal .modal-content {
  padding: 0;
  background: #fff;
  max-width: 420px;
  height: 100vh;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  animation: none;
  overflow: hidden;
}

#customer-details-modal .modal-body,
#transaction-editor-modal .modal-body {
  padding: 15px;
  flex-grow: 1;
  overflow-y: auto;
  padding-bottom: 80px;
  transition: padding-bottom 0.3s ease-out;
}

#customer-details-modal.keypad-active .modal-body,
#transaction-editor-modal.keypad-active .modal-body {
  padding-bottom: 340px;
}

.details-header {
  display: flex;
  align-items: center;
  padding: 15px;
  background: #fff;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}

.details-header .back-arrow {
  font-size: 24px;
  cursor: pointer;
  margin-right: 15px;
}

.details-header .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #007bff;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  margin-right: 10px;
  background-size: cover;
  background-position: center;
}

.details-header .info {
  flex-grow: 1;
}

.details-header .info .name {
  font-size: 18px;
  font-weight: bold;
}

.details-header .info .mobile,
.details-header .info .due {
  font-size: 14px;
  color: #6c757d;
}

.details-header .info .mobile a {
  color: inherit;
  text-decoration: none;
}

.details-header .info .mobile a:hover {
  text-decoration: underline;
}

.details-header .options-icon {
  font-size: 20px;
  color: #৪c757d;
  cursor: pointer;
  padding: 15px; 
}

#customer-details-modal .due-info-bar {
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #eee;
  margin-bottom: 15px;
}

#customer-details-modal .due-info-bar .due-amount {
  font-size: 16px;
  font-weight: bold;
  color: #dc3545;
}

#customer-details-modal .due-info-bar .last-updated {
  font-size: 12px;
  color: #6c757d;
}

.input-container {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.input-box {
  flex: 1;
  background: #fff;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  text-align: left;
  position: relative;
  cursor: pointer;
}

.input-box.active {
  border: 2px solid #c52626;
}

.input-box label {
  display: block;
  font-size: 12px;
  color: #555;
  margin-bottom: 2px;
}

.input-box input {
  border: none;
  text-align: left;
  font-size: 18px;
  font-weight: bold;
  padding: 0;
  margin: 0;
  box-shadow: none;
  width: 100%;
  background: transparent;
  color: #333;
  pointer-events: none;
  height: 22px;
}

.input-box input:focus {
  outline: none;
  box-shadow: none;
}

#description, #edit-description {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-bottom: 15px;
  padding: 10px;
  font-size: 16px;
  width: 100%;
  box-sizing: border-box;
  padding-left: 35px;
  height: 42px;
}


.action-buttons-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px; 
    margin-bottom: 15px;
}

.action-buttons-bar .action-btn {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 25px; 
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center; 
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    transition: all 0.2s ease-in-out;
}

.action-buttons-bar .action-btn.primary {
    flex-grow: 1; 
    border: 1.5px solid #dc3545;
    color: #dc3545;
    font-weight: bold;
}

.action-buttons-bar .action-btn.primary:hover {
    background-color: #fce6e8;
}

.action-buttons-bar .action-btn.icon-only {
    width: 42px;   
    height: 42px;  
    padding: 0;
    border-radius: 50%; 
}

.action-buttons-bar .action-btn.icon-only i {
    font-size: 18px;
    margin: 0; 
}

.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: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #28a745;
}

#customer-details-modal input:checked + .slider, #transaction-history-modal input:checked + .slider {
  background-color: #dc3545;
}

input:checked + .slider:before {
  transform: translateX(22px);
}

#attached-file-info, #edit-attachment-preview, #cashbox-attachment-preview {
  text-align: left;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

#attached-file-info img, #edit-attachment-preview img, #cashbox-attachment-preview img {
  max-width: 60px;
  max-height: 60px;
  border-radius: 5px;
  object-fit: cover;
}

#attached-file-info .remove-img-btn, #edit-attachment-preview .remove-img-btn, #cashbox-attachment-preview .remove-img-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #c52626;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  border: 2px solid white;
}

.modal-footer {
  flex-shrink: 0;
  background: #fff;
  padding-top: 5px;
  box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.05);
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
}

#confirm-transaction-btn-lg {
  background-color: #ffe8e9;
  color: #c52626;
  border: none;
  border-radius: 25px;
  padding: 14px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  width: calc(100% - 30px);
  margin: 0 15px 10px 15px;
}

#details-keypad, #edit-details-keypad {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background-color: #E0E0E0;
  width: 100%;
  height: 260px;
  animation: slideUpKeypad 0.3s ease-out;
  padding: 2px;
}

@keyframes slideUpKeypad {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

#customer-details-modal.keypad-active #details-keypad,
#transaction-editor-modal.keypad-active #edit-details-keypad {
  display: grid;
}

#details-keypad button,
#edit-details-keypad button {
  padding: 10px 0;
  font-size: 20px;
  border: none;
  background-color: #fff;
  cursor: pointer;
  height: 100%;
  color: #333;
  border-radius: 5px;
  margin: 1px;
}

#details-keypad button:active,
#edit-details-keypad button:active {
  background-color: #f0f0f0;
}

#details-keypad .keypad-operator,
#edit-details-keypad .keypad-operator {
  background-color: #f8f9fa;
  color: #333;
}

#details-keypad .keypad-operator.keypad-double,
#edit-details-keypad .keypad-operator.keypad-double {
  grid-row: span 2;
  background-color: #ffe8e9;
  color: #dc3545;
}

.editor-footer-buttons {
    display: flex;
    gap: 15px;
    padding: 10px 15px;
}
.editor-btn {
    flex: 1;
    padding: 14px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.editor-btn.delete-btn {
    background-color: #dc3545;
    color: #fff;
}
.editor-btn.save-btn {
    background-color: #28a745;
    color: #fff;
}

.hidden-file-input {
  display: none;
}

#date-picker-modal .modal-content {
  max-width: 320px;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
}

.date-picker-header {
  background-color: #dc3545;
  color: white;
  padding: 20px;
}

.date-picker-header .year { font-size: 16px; opacity: 0.8; }
.date-picker-header .full-date { font-size: 28px; font-weight: bold; }
.date-picker-body { padding: 10px; }
.month-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 5px;
  font-weight: bold;
}
.month-navigation .nav-arrow { cursor: pointer; padding: 5px 10px; font-size: 20px; }
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  color: #6c757d;
  font-size: 12px;
  padding-bottom: 10px;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}
.calendar-grid .date-cell {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 36px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 14px;
}
.calendar-grid .date-cell:not(.empty):hover { background-color: #f0f0f0; }
.calendar-grid .date-cell.selected {
  background-color: #dc3545;
  color: white;
  font-weight: bold;
}
.date-picker-footer {
  display: flex;
  justify-content: flex-end;
  padding: 10px 20px;
  border-top: 1px solid #f0f0f0;
}
.date-picker-footer button {
  background: none;
  border: none;
  color: #dc3545;
  font-weight: bold;
  padding: 10px;
  cursor: pointer;
  font-size: 14px;
}

#add-customer-modal .modal-content {
  max-width: 420px;
  height: 100vh;
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  background-color: #f0f2f5;
  animation: none;
  overflow-y: auto;
}

.add-cs-header {
  display: flex;
  align-items: center;
  padding: 15px;
  background: #fff;
  flex-shrink: 0;
}

.add-cs-header .back-arrow { font-size: 24px; cursor: pointer; margin-right: 15px; }
.add-cs-header h2 { margin: 0; font-size: 18px; font-weight: 500; color: #333; text-align: left; }
.add-cs-body { padding: 20px 15px; }
.add-cs-top-section {
  display: flex;
  align-items: center;
  padding-bottom: 25px;
  gap: 20px;
}

.avatar-uploader { position: relative; }
.avatar-preview {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: #e4e6eb;
  color: #8d949e;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  position: relative;
}

.avatar-preview .fa-camera {
  font-size: 14px;
  color: #333;
  position: absolute;
  bottom: 0px;
  right: 0px;
  background: #dcdfe4;
  border-radius: 50%;
  padding: 8px;
  border: 2px solid #fff;
}

.avatar-preview-placeholder { font-size: 32px; }
.type-radio-group { display: flex; gap: 10px; }
.type-radio-group input[type=radio] { display: none; }
.type-radio-group label {
  padding: 8px 18px;
  border: 1px solid #ddd;
  border-radius: 25px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  background-color: #fff;
}
.type-radio-group input[type=radio]:checked + label {
  border-color: #dc3545;
  color: #dc3545;
  font-weight: bold;
  box-shadow: 0 0 0 1px #dc3545;
}

.phonebook-btn {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 20px;
  padding: 12px;
  font-size: 16px;
  background-color: #e4e6eb;
  border-radius: 8px;
  cursor: pointer;
  gap: 10px;
  color: #333;
}

.phonebook-btn:hover { background-color: #d8dbe0; }
.phonebook-btn i { font-size: 20px; }
.cs-input-group {
  position: relative;
  margin-bottom: 20px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px 15px 10px 50px;
}
.cs-input-group.focused { border-color: #dc3545; }
.cs-input-group label {
  position: absolute;
  top: 14px;
  left: 50px;
  font-size: 16px;
  color: #888;
  pointer-events: none;
}
.cs-input-group i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  font-size: 18px;
}

.cs-input-group input {
  width: 100%;
  border: none;
  padding: 5px 0;
  font-size: 16px;
  background-color: transparent;
  box-shadow: none;
  margin: 0;
}
.cs-input-group input:focus { outline: none; }
.cs-input-group input:focus + label,
.cs-input-group input:not(:placeholder-shown) + label {
  top: -10px;
  left: 10px;
  background: #f0f2f5;
  padding: 0 5px;
  font-size: 12px;
  color: #dc3545;
}

#opening-balance-section { display: none; }
.balance-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
}

.balance-actions .action-btn {
  background: #e4e6eb;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.modal-footer.fixed {
  position: sticky;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  background: #fff;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
  border-top: 1px solid #f0f0f0;
}

#save-customer-btn {
  width: 100%;
  background: #dc3545;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  border: none;
  border-radius: 25px;
  margin: 0;
  padding: 14px;
}

#save-customer-btn:disabled { background-color: #f48690; cursor: not-allowed; }
#edit-customer-modal .modal-content {
  max-width: 420px;
  height: 100vh;
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  background-color: #f8f9fa;
  animation: none;
}

#edit-customer-modal .edit-cs-header {
  display: flex;
  align-items: center;
  padding: 15px;
  background: #fff;
  flex-shrink: 0;
  border-bottom: 1px solid #f0f0f0;
}
#edit-customer-modal .edit-cs-header .back-arrow { font-size: 20px; cursor: pointer; margin-right: 20px; }
#edit-customer-modal .edit-cs-header h2 { margin: 0; font-size: 18px; font-weight: bold; color: #333; text-align: left; }
#edit-customer-modal .edit-cs-body { padding: 20px 0; flex-grow: 1; }
.edit-avatar-container { display: flex; justify-content: center; margin-bottom: 30px; padding: 10px 0; }
.edit-avatar-preview {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  border: 3px solid #eee;
  position: relative;
  color: #888;
  font-size: 40px;
}

.edit-avatar-icon {
  position: absolute;
  bottom: 0px;
  right: 5px;
  width: 36px;
  height: 36px;
  background: #e0e0e0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.edit-avatar-icon i { color: #333; font-size: 16px; }
.edit-input-group {
  position: relative;
  margin: 0 15px 25px 15px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px 15px 10px 50px;
}
.edit-input-group label {
  position: absolute;
  top: -10px;
  left: 10px;
  background: #f8f9fa;
  padding: 0 5px;
  font-size: 12px;
  color: #666;
}
.edit-input-group i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  font-size: 18px;
}
.edit-input-group input {
  width: 100%;
  border: none;
  padding: 5px 0;
  font-size: 16px;
  background-color: transparent;
  box-shadow: none;
  margin: 0;
}
.edit-input-group input:focus { outline: none; }
#edit-customer-modal #save-edited-customer-btn {
  width: 100%;
  background: #dc3545;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  border: none;
  border-radius: 25px;
  margin: 0;
  padding: 14px;
}

.settings-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
}
.settings-item:last-child { border-bottom: none; }
.settings-item span { font-size: 16px; }


/* ================================================================ */
/* ========= নতুন: প্রোফাইল মডাল আধুনিক স্টাইল ========= */
/* ================================================================ */

/* Profile Header */
.profile-header-modern {
    background: #ffffff !important; /* লাল গ্রাডিয়েন্ট সরিয়ে সাদা */
    color: #333 !important; /* টেক্সট কালো */
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* থিম অনুযায়ী ওভাররাইড বন্ধ করা */
body.theme-blue .profile-header-modern,
body.theme-green .profile-header-modern,
body.theme-purple .profile-header-modern,
body.theme-teal .profile-header-modern,
body.theme-orange .profile-header-modern { 
    background: #ffffff !important;
    color: #333 !important;
}

/* ডার্ক মোড - প্রোফাইল মডাল (আগের মতোই থাকবে) */
body.dark-mode #profile-modal .modal-content {
    background-color: #121212;
}

body.dark-mode .profile-header-modern {
    background: #1e1e1e !important; /* ডার্ক হেডার */
    border-bottom: 1px solid #333;
    color: #ffffff !important; /* ডার্ক মোডে টেক্সট সাদা */
}

/* ================================================================ */


#help-modal .modal-content { padding: 20px; text-align: center; }
#help-modal h2 { font-size: 22px; margin-bottom: 25px; }
#help-modal .help-options { list-style: none; padding: 0; margin: 0; }
#help-modal .help-options li { margin-bottom: 15px; }
#help-modal .help-options a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  border-radius: 10px;
  text-decoration: none;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
}
#help-modal .help-options a:hover { transform: scale(1.05); }
#help-modal .help-options a i { font-size: 22px; margin-right: 15px; }
.whatsapp-help-btn { background-color: #25D366; }
.facebook-help-btn { background-color: #1877F2; }
.call-help-btn { background-color: #007bff; }

#filter-modal .modal-content { max-width: 380px; padding: 20px; }
#filter-modal h2 { text-align: left; font-size: 20px; margin-bottom: 25px; }
#filter-modal .close-btn { top: 20px; right: 20px; }
.filter-group { margin-bottom: 25px; }
.filter-group .filter-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f7f7f7;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 10px;
}
.filter-group .filter-option label { font-size: 16px; color: #333; }
.filter-group input[type=checkbox] { width: 20px; height: 20px; accent-color: #dc3545; }
.filter-group .radio-options { display: flex; gap: 15px; }
.filter-group .radio-options label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
}
.filter-group .radio-options input[type=radio] { display: none; }
.filter-group .radio-options input[type=radio]:checked + label {
  background-color: #fff1f2;
  border-color: #dc3545;
  color: #dc3545;
  font-weight: 500;
}
#apply-filter-btn {
  width: 100%;
  background: #dc3545;
  color: #fff;
  padding: 15px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 25px;
  margin-top: 15px;
}

#transaction-history-modal .modal-content {
  max-width: 420px;
  height: 100vh;
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  animation: none;
  overflow: hidden;
}

.history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  background: #fff;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  gap: 15px;
}
.history-header .back-arrow { font-size: 20px; cursor: pointer; }
.history-header .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  background-color: #007bff;
  color: #fff;
}
.history-header .info { flex-grow: 1; text-align: left; }
.history-header .info .name { font-size: 18px; font-weight: bold; }
.history-header .info .due { font-size: 14px; font-weight: bold; }
.history-header .header-actions { display: flex; align-items: center; gap: 15px; }
.history-header .action-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  color: #333;
}
.history-header .action-icon i { font-size: 20px; }
.history-header .action-icon span { font-size: 12px; }
.history-body { flex-grow: 1; overflow-y: auto; padding: 15px; background-color: #f8f9fa; }
.reminder-bar {
  background: #fff;
  border: 1px solid #ddd;
  color: #dc3545;
  padding: 12px 15px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}
.reminder-bar i { font-size: 18px; }
.history-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  background-color: #fff;
  padding: 12px;
  border-radius: 8px;
}
.history-controls .control-label { font-size: 16px; color: #333; }
.transaction-list-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  padding: 10px;
  font-size: 14px;
  font-weight: bold;
  color: #6c757d;
  background-color: #fff;
  border-radius: 8px 8px 0 0;
  border-bottom: 1px solid #f0f0f0;
}
.transaction-list-header .col-given,
.transaction-list-header .col-received { text-align: right; }
.transaction-group .date-header {
  padding: 15px 10px 5px 10px;
  font-size: 14px;
  font-weight: bold;
  color: #333;
  background: #f8f9fa;
}
.transaction-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  align-items: start;
  padding: 12px 10px;
  border-bottom: 1px solid #f0f0f0;
  background-color: #fff;
  cursor: pointer;
}
.transaction-row:hover { background-color: #f9f9f9; }
.transaction-row:last-child { border-bottom: none; }
.trans-info-details { display: flex; flex-direction: column; gap: 8px; }
.trans-info-details .time { font-size: 13px; color: #6c757d; }
.transaction-thumbnail { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; }
.trans-info-details .balance-label {
  background-color: #f1f1f1;
  border-radius: 12px;
  padding: 3px 10px;
  font-size: 12px;
  display: inline-block;
  font-weight: 500;
  align-self: flex-start;
}
.balance-label.pabo { color: #dc3545; }
.balance-label.debo { color: #28a745; }
.transaction-row .amount-given,
.transaction-row .amount-received {
  font-size: 16px;
  text-align: right;
  padding-top: 5px;
}
.transaction-row .amount-given { color: #dc3545; background-color: #ffe8e9; padding: 8px; border-radius: 6px;}
.transaction-row .amount-received { color: #28a745; }
.history-footer {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  padding: 15px 10px;
  background: #fff;
  border-top: 1px solid #ddd;
  font-weight: bold;
  flex-shrink: 0;
}
.history-footer .footer-label { font-size: 16px; }
.history-footer .total-amount { font-size: 16px; text-align: right; }

#transaction-detail-modal .modal-content {
  max-width: 420px;
  height: 100vh;
  padding: 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  animation: none;
  background-color: #f8f9fa;
}

#transaction-detail-modal .details-header {
  background-color: #fff;
}

#transaction-detail-modal .details-header h2 {
  font-size: 18px;
  font-weight: 500;
  color: #333;
}

.action-screen-body {
  padding: 20px 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.action-screen-summary {
  background-color: #fff;
  border-radius: 8px;
  padding: 15px;
  border: 1px solid #eee;
}

.action-screen-summary .info {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding-bottom: 15px;
  border-bottom: 1px dashed #ddd;
}

.action-screen-summary .date-time {
  font-size: 16px;
  color: #333;
}

.action-screen-summary .amounts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 15px;
  text-align: right;
  font-size: 18px;
  font-weight: 500;
}
.action-screen-summary .amounts .given { color: #dc3545; }
.action-screen-summary .amounts .received { color: #28a745; }

.action-buttons {
  display: flex;
  gap: 15px;
  margin-top: auto; 
  padding-top: 20px;
}

.action-buttons button {
  flex: 1;
  padding: 14px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  border: 1.5px solid #dc3545;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.action-buttons .action-delete {
  background-color: #fff;
  color: #dc3545;
}

.action-buttons .action-edit {
  background-color: #dc3545;
  color: #fff;
}

@keyframes slideUpModal {
  from { transform: translateY(100%); } to { transform: translateY(0); }
}
@keyframes slideDownModal {
  from { transform: translateY(0); } to { transform: translateY(100%); }
}

.modal.slide-up { align-items: flex-end; background: rgba(0, 0, 0, 0.4); }
.modal.slide-up.show .modal-content { animation: slideUpModal 0.3s ease-out forwards; }
.modal.slide-up.closing .modal-content { animation: slideDownModal 0.3s ease-out forwards; }
.modal.slide-up .modal-content {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  padding: 0;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.15);
}

.edit-keypad-input {
  width: 100%;
  border: none;
  text-align: left;
  font-size: 36px;
  font-weight: 500;
  padding: 0px 20px;
  background-color: transparent;
  color: #333;
}
.edit-keypad-input:focus { outline: none; }
.edit-keypad-label {
  display: block;
  text-align: left;
  padding: 0 20px 20px 20px;
  font-size: 14px;
  color: #6c757d;
}

#edit-keypad {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background-color: #ddd;
}
#edit-keypad button {
  padding: 20px 0;
  font-size: 24px;
  border: none;
  background-color: #fff;
  cursor: pointer;
  border-top: 1px solid #ddd;
  border-right: 1px solid #ddd;
}
#edit-keypad button:active { background-color: #f0f0f0; }
#edit-keypad .keypad-operator { background-color: #f8f9fa; }

#download-report-options-modal .modal-content { max-width: 350px; }
.report-option-btn {
  width: 100%;
  padding: 14px;
  margin-bottom: 10px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  background-color: #007bff;
  color: white;
}
.report-option-btn:hover { background-color: #0056b3; }
.report-option-btn:last-child { margin-bottom: 0; }
.transaction-list-container { padding-bottom: 20px; }
.transaction-record { display: none; }
.transaction-record-new {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background-color: #fff;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
}
.transaction-record-new:hover { background-color: #f9f9f9; }
.trans-info-new { display: flex; flex-direction: column; gap: 4px; }
.trans-info-new .time { font-size: 13px; color: #6c757d; }
.trans-info-new .balance { font-size: 14px; font-weight: 500; color: #333; }
.trans-amounts-new { display: flex; gap: 10px; }
.amount-box {
  min-width: 100px;
  padding: 8px 12px;
  border-radius: 8px;
  text-align: right;
  font-size: 16px;
  font-weight: 500;
}
.amount-box.amount-given { background-color: #ffe8e9; color: #dc3545; }
.amount-box.amount-received { background-color: #e0f2e8; color: #28a745; }
.amount-box:empty { background-color: transparent; }
.info-banner { display: none; }

#change-pin-modal.modal.full-screen-modal,
#transaction-edit-pin-modal.modal.full-screen-modal,
#pin-setup-modal.modal.full-screen-modal,
#delete-customer-pin-modal.modal.full-screen-modal,
#delete-transaction-pin-modal.modal.full-screen-modal {
  align-items: flex-start;
  justify-content: flex-start;
  z-index: 1003;
  background-color: #fff;
}

#transaction-edit-pin-modal .modal-content,
#delete-customer-pin-modal .modal-content,
#delete-transaction-pin-modal .modal-content {
  width: 100%;
  max-width: 420px;
  height: 100%;
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  box-shadow: none;
  background-color: transparent;
}

.change-pin-header {
  display: flex;
  align-items: center;
  padding: 15px;
  flex-shrink: 0;
  background-color: #fff;
  border-bottom: 1px solid #f0f0f0;
  width: 100%;
}

.change-pin-header .back-arrow { font-size: 20px; cursor: pointer; margin-right: 20px; }
.change-pin-header h2 { font-size: 18px; font-weight: 500; text-align: left; margin: 0; color: #333; }
.change-pin-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
    padding: 20px;
    background-color: #fff;
}
.change-pin-body p { font-size: 16px; color: #333; }

.change-pin-body .pin-input-container {
    margin-top: 20px;
}

.forgot-pin-link-inline {
  display: inline-block;
  margin-top: 20px;
  padding: 8px 16px;
  background-color: #f1f1f1;
  border-radius: 20px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
}
.forgot-pin-link-inline i { margin-right: 5px; }

#change-pin-confirm-btn, #edit-pin-confirm-btn, #delete-pin-confirm-btn,
#delete-trans-pin-confirm-btn {
  background-color: #fce6e8;
  border-radius: 25px;
  font-size: 18px;
  font-weight: bold;
  color: #dc3545;
  padding: 16px;
  margin: 20px 0 0 0;
  border: none;
  width: 100%;
  cursor: not-allowed;
}

#change-pin-confirm-btn.active, #edit-pin-confirm-btn.active, #delete-pin-confirm-btn.active,
#delete-trans-pin-confirm-btn.active { background-color: #dc3545; color: #fff; cursor: pointer; }

#transaction-edit-pin-modal .modal-footer,
#delete-customer-pin-modal .modal-footer,
#delete-transaction-pin-modal .modal-footer {
  position: static;
  background-color: #fff;
  box-shadow: none;
  padding: 0 20px 20px 20px;
  border-top: none;
  margin-top: auto;
}

.edit-pin-summary-grid,
#delete-trans-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #eee;
  text-align: center;
  margin-top: 20px;
}
.edit-pin-summary-grid > div,
#delete-trans-summary > div { padding: 10px; }
.edit-pin-summary-grid .label,
#delete-trans-summary .label {
  font-size: 14px;
  color: #555;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}
.edit-pin-summary-grid .value,
#delete-trans-summary .value {
  font-size: 16px;
  font-weight: bold;
  padding-top: 8px;
}
.edit-pin-summary-grid .value.given,
#delete-trans-summary .value.given { background-color: #fbe0e2; color: #dc3545; }
.edit-pin-summary-grid .value.received,
#delete-trans-summary .value.received { color: #28a745; }

#settings-modal .settings-item .setting-details {
  display: none;
  padding-left: 10px;
  margin-top: 10px;
  border-left: 2px solid #f0f0f0;
}
#settings-modal .settings-item.active .setting-details { display: block; }
.reminder-setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  margin-top: 8px;
}
.reminder-setting-row label { color: #555; }
.reminder-setting-row input {
  width: 80px;
  padding: 5px;
  font-size: 14px;
  margin: 0 5px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

#backup-status-modal .modal-content { background-color: #F8F9FA; position: relative; }
.backup-status-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    flex-shrink: 0;
    background-color: #fff;
    border-bottom: 1px solid #f0f0f0;
    width: 100%;
}
.backup-status-header .back-arrow { flex-basis: 40px; font-size: 20px; cursor: pointer; }
.backup-status-header h2 {
    flex-grow: 1;
    text-align: center;
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin: 0;
}
.backup-header-settings-btn {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
    background-color: #e9ecef;
    color: #495057;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
}
.backup-status-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}
.backup-icon-container {
    width: 150px;
    height: 150px;
    background-color: rgba(255, 224, 130, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    position: relative;
}
.backup-icon-inner {
    width: 120px;
    height: 120px;
    background-color: #FFD60A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.backup-icon-inner .fa-check {
    font-size: 60px;
    color: #28a745;
    background-color: #fff;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
}
.backup-icon-container.animate .backup-icon-inner .fa-check {
    animation: draw-check-final 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes draw-check-final {
    0% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

.backup-status-text {
    font-size: 18px;
    color: #333;
    margin-bottom: 30px;
    background-color: #fff;
    padding: 15px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.last-backup-details {
    margin-top: 20px;
    font-size: 16px;
    color: #555;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.last-backup-label { font-size: 14px; color: #6c757d; }
.backup-settings-btn { display: none; }
#data-backup-modal { z-index: 1004; }

.modal-content.offline-popup {
    max-width: 340px;
    padding: 20px;
    text-align: center;
}

.offline-popup .offline-icon {
    font-size: 40px;
    color: #dc3545;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.offline-popup .offline-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -10%;
    width: 120%;
    height: 2px;
    background-color: #dc3545;
    transform: rotate(-45deg);
    transform-origin: center;
}

.offline-popup h2 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.offline-popup p {
    font-size: 15px;
    color: #666;
    margin-bottom: 25px;
}

.offline-popup .button-group {
    margin-top: 0;
}

.offline-popup .button-group .secondary-btn {
    background-color: #e9ecef;
    color: #495057;
}

.offline-popup .button-group .confirm-btn {
    background-color: #dc3545;
}
#cash-keypad-modal .modal-content {
  padding: 0;
  background: #fff;
  max-width: 420px;
  height: 100vh;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  animation: none;
  overflow: hidden;
}

.cash-keypad-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  flex-shrink: 0;
}
.cash-keypad-header .back-arrow {
  font-size: 20px;
  cursor: pointer;
  flex-basis: 40px;
}
.cash-keypad-header .header-title {
  text-align: center;
  flex-grow: 1;
}
.cash-keypad-header .header-title h2 {
  font-size: 18px;
  margin: 0 0 4px 0;
  color: #333;
  text-align: center;
}
.cash-keypad-header .header-title p {
  font-size: 13px;
  color: #6c757d;
  margin: 0;
}
.cash-keypad-header .report-btn {
  font-size: 14px;
  cursor: pointer;
  color: #333;
  flex-basis: 40px;
  text-align: right;
}
.cash-keypad-header .report-btn i {
  margin-right: 5px;
}

.cash-keypad-body {
  padding: 20px 15px;
  flex-grow: 1;
  overflow-y: auto; 
}

.cash-input-box {
  position: relative;
  background: #f8f9fa;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 10px 15px;
  margin-bottom: 15px;
  display: flex; 
  align-items: center; 
}
.cash-input-box label, .cash-input-box i {
  color: #6c757d;
}
.cash-input-box input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 24px;
  font-weight: 500;
  padding-left: 10px;
  box-shadow: none;
  margin: 0;
  color: #333;
}
.cash-input-box label {
  font-size: 24px;
  font-weight: 500;
  pointer-events: none; 
  white-space: nowrap;
}
.cash-input-box i {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    font-size: 16px;
}
.cash-input-box input#cash-keypad-description {
    font-size: 16px;
    padding-left: 30px;
}

.cash-keypad-confirm-container {
    padding: 10px 15px;
    background: #fff;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.05); 
}

#cash-keypad-modal.keypad-active .cash-keypad-confirm-container {
    display: none; 
}

#cash-keypad-confirm-btn {
    width: 100%;
    padding: 14px;
    background-color: #dc3545;
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin: 0;
}
#cash-keypad-confirm-btn:disabled {
    background-color: #f48690;
    cursor: not-allowed;
}

#cash-keypad-keypad {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background-color: #E0E0E0;
  width: 100%;
  height: 260px;
  padding: 2px;
}

#cash-keypad-modal.keypad-visible #details-keypad,
#cash-keypad-modal.keypad-visible #cash-keypad-keypad {
    display: grid;
}

#cash-keypad-modal .modal-footer {
    display: none;
    position: static; 
    box-shadow: none;
}

#cash-keypad-modal.keypad-visible .modal-footer {
    display: block;
}

#cash-keypad-keypad button {
  padding: 10px 0;
  font-size: 20px;
  border: none;
  background-color: #fff;
  cursor: pointer;
  height: 100%;
  color: #333;
  border-radius: 5px;
  margin: 1px;
}
#cash-keypad-keypad button:active {
  background-color: #f0f0f0;
}
#cash-keypad-keypad .keypad-operator {
  background-color: #f8f9fa;
  color: #333;
}
#cash-keypad-keypad .keypad-operator.keypad-double {
  grid-row: span 2;
  background-color: #ffe8e9;
  color: #dc3545;
}

.product-selection-body {
    background-color: #f8f9fa;
}

.product-selection-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background-color: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.product-selection-item .product-info {
    flex-grow: 1;
}

.product-selection-item .product-name {
    font-size: 16px;
    font-weight: 500;
}

.product-selection-item .product-sub-info {
    font-size: 13px;
    color: #6c757d;
}

.product-quantity-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-quantity-control .quantity-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #dc3545;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.product-quantity-control .quantity-input {
    width: 40px;
    text-align: center;
    border: none;
    font-size: 16px;
    font-weight: bold;
}

/* ===================================== */
/* ========= Recycle Bin Styles ======== */
/* ===================================== */

.recycle-bin-container {
    display: none; /* Initially hidden */
    flex-direction: column;
    height: 100vh;
    max-width: 420px;
    margin: 0 auto;
    background-color: #f8f9fa;
}

.recycle-bin-container .app-header {
    background-color: #fff;
    color: #333;
    display: flex;
    align-items: center;
    padding: 15px;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.recycle-bin-container .app-header .back-arrow {
    font-size: 20px;
    cursor: pointer;
    margin-right: 20px;
}

.recycle-bin-container .app-header h1 {
    font-size: 20px;
    font-weight: 500;
    margin: 0;
    flex-grow: 1;
    text-align: center;
}

.recycle-bin-container .content-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 15px;
}

.recycle-bin-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recycle-bin-item {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;
    overflow: hidden;
}

.item-info .item-name {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-info .item-details {
    font-size: 13px;
    color: #6c757d;
}

.item-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.item-actions button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.item-actions .restore-btn {
    background-color: #e0f2e8;
    color: #28a745;
}

.item-actions .restore-btn:hover {
    background-color: #c8e6c9;
}

.item-actions .perm-delete-btn {
    background-color: #fde8e8;
    color: #dc3545;
}

.item-actions .perm-delete-btn:hover {
    background-color: #f9d1d5;
}


/* --- Recycle Bin Dark Mode Styles --- */
body.dark-mode .recycle-bin-container {
    background-color: #121212;
}

body.dark-mode .recycle-bin-container .app-header {
    background-color: #1e1e1e;
    color: #e0e0e0;
    border-bottom: 1px solid #333;
}

body.dark-mode .recycle-bin-item {
    background-color: #1e1e1e;
    box-shadow: none;
    border: 1px solid #333;
}

body.dark-mode .item-info .item-name {
    color: #e0e0e0;
}

body.dark-mode .item-info .item-details {
    color: #aaa;
}

body.dark-mode .item-actions .restore-btn {
    background-color: #2c3e34;
    color: #4caf50;
}

body.dark-mode .item-actions .perm-delete-btn {
    background-color: #442c2e;
    color: #f44336;
}

/* ================================================================ */
/* ========= মাল্টি-ব্যবসা সিলেকশন মডালের স্টাইল ========= */
/* ================================================================ */

#business-selection-modal .modal-content {
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

#business-selection-modal .close-btn {
    top: 10px;
    right: 10px;
    background-color: #f0f0f0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.business-promo-section {
    padding: 20px;
    background-color: #FFFBEB; /* হালকা হলুদ ব্যাকগ্রাউন্ড */
    border-radius: 12px;
    text-align: center;
    margin: 20px 15px 15px 15px;
    border: 1px solid #FEF3C7;
}

.business-promo-section .fa-book-open {
    color: #FBBF24;
    font-size: 24px;
    margin-bottom: 10px;
}

.business-promo-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #92400E;
}

.business-promo-section p {
    font-size: 13px;
    color: #92400E;
    margin: 0 0 15px 0;
}

.business-promo-section .promo-btn {
    width: 100%;
    padding: 12px;
    background-color: #FBBF24;
    color: #422006;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.business-list-section {
    padding: 15px;
    flex-grow: 1;
    overflow-y: auto;
}

.business-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.business-list-header h4 {
    font-size: 16px;
    color: #333;
    margin: 0;
}

.business-list-header .settings-btn {
    background: #f0f2f5;
    border: none;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.business-list-container {
    display: flex;
    flex-direction: column;
}

.business-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}

.business-item:last-child {
    border-bottom: none;
}

.business-item-info {
    flex-grow: 1;
}

.business-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.business-name-row h5 {
    font-size: 17px;
    font-weight: 500;
    margin: 0;
    color: #333;
}

.primary-tag {
    font-size: 10px;
    font-weight: bold;
    background: #e0e7ff;
    color: #4338ca;
    padding: 3px 8px;
    border-radius: 12px;
    border: 1px solid #c7d2fe;
}

.business-summary {
    font-size: 13px;
    color: #6c757d;
}

.active-tick {
    font-size: 24px;
    color: #28a745;
    visibility: hidden; /* ডিফল্টভাবে লুকানো থাকবে */
}

.business-item.active .active-tick {
    visibility: visible; /* فعال আইটেমের জন্য দৃশ্যমান হবে */
}

#add-new-business-btn {
    width: 100%;
    padding: 14px;
    background-color: #fff;
    color: #dc3545;
    border: 1.5px solid #dc3545;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

/* ================================================================ */
/* ========= ব্যবসা সেটিংস স্ক্রিনের স্টাইল ========= */
/* ================================================================ */

#business-settings-screen .settings-body {
    padding: 15px;
}

#business-settings-screen .settings-item {
    background: #fff;
    padding: 18px 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

/* ================================================================ */
/* ========= মাল্টি-ব্যবসা ডার্ক মোড স্টাইল ========= */
/* ================================================================ */
body.dark-mode #business-selection-modal .modal-content {
    background-color: #1e1e1e;
}
body.dark-mode #business-selection-modal .close-btn {
    background-color: #333;
    color: #e0e0e0;
}
body.dark-mode .business-promo-section {
    background-color: #2a2a2a;
    border-color: #444;
}
body.dark-mode .business-promo-section h3, body.dark-mode .business-promo-section p {
    color: #e0e0e0;
}
body.dark-mode .business-promo-section .promo-btn {
    background-color: #FBBF24;
    color: #422006;
}
body.dark-mode .business-list-header h4 {
    color: #e0e0e0;
}
body.dark-mode .business-list-header .settings-btn {
    background: #333;
    color: #e0e0e0;
}
body.dark-mode .business-item {
    border-bottom-color: #333;
}
body.dark-mode .business-name-row h5 {
    color: #e0e0e0;
}
body.dark-mode .primary-tag {
    background: #3730a3;
    color: #e0e7ff;
    border-color: #4338ca;
}
body.dark-mode .business-summary {
    color: #aaa;
}
body.dark-mode #add-new-business-btn {
    background-color: #1e1e1e;
    color: #f06571;
    border-color: #f06571;
}

body.dark-mode #business-settings-screen,
body.dark-mode #business-settings-screen .settings-body {
    background-color: #121212;
}
body.dark-mode #business-settings-screen .settings-item {
    background-color: #1e1e1e;
    border-color: #333;
    color: #e0e0e0;
}

body.dark-mode #add-business-modal .modal-content {
    background: #1e1e1e;
}
body.dark-mode #add-business-modal h2 {
    color: #e0e0e0;
}

/* ================================================================ */
/* ========= টালি-মেসেজ কেনার পেজের স্টাইল (আপডেট করা) ========= */
/* ================================================================ */

#sms-purchase-screen {
    z-index: 1004; 
}

#sms-purchase-screen .modal-content {
    background-color: #fff;
}

/* ===== মূল পরিবর্তন এখানে ===== */
.sms-purchase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    flex-shrink: 0;
    background-color: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.sms-purchase-header .back-arrow {
    font-size: 20px;
    cursor: pointer;
    color: #333;
}

.sms-purchase-header h2 {
    flex-grow: 1;
    text-align: center;
    margin: 0 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 18px;
    font-weight: 500;
    color: #333;
}

.sms-purchase-header .report-btn {
    background: #f0f2f5;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    font-weight: 500;
}
/* ===== পরিবর্তন শেষ ===== */


.sms-purchase-body {
    padding: 20px 15px;
    flex-grow: 1;
    overflow-y: auto;
    background-color: #f8f9fa;
}

.balance-card {
    background: #fff;
    padding: 12px 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border: 1px solid #f0f0f0;
}

.balance-card span:first-child {
    font-size: 16px;
    color: #555;
    font-weight: 500;
}

.balance-card span:last-child {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.section-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin: 0 0 15px 0;
}

.sms-package-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sms-package-item {
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    position: relative;
    border: 1px solid #f0f0f0;
}

.sms-package-item .package-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-color: #ffe8e9;
    padding: 5px;
}
.sms-package-item .package-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


.sms-package-item .package-details h5 {
    font-size: 17px;
    margin: 0 0 4px 0;
    font-weight: 500;
    color: #333;
}

.sms-package-item .package-details p {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
}

.sms-package-item .package-price {
    margin-left: auto;
    background: #dc3545;
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
}

.package-badge {
    position: absolute;
    top: -1px;
    right: 15px;
    background: #FFC107;
    color: #333;
    font-size: 10px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 0 0 8px 8px;
}

/* ================================================================ */
/* ========= পেমেন্ট অপশন মডালের স্টাইল ========= */
/* ================================================================ */

#payment-options-modal {
    z-index: 1005;
}

#payment-options-modal .modal-content {
    padding-top: 15px;
    border-radius: 15px 15px 0 0;
}

.selected-package-info {
    padding: 15px;
    margin: 0 15px 15px 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #f8f9fa;
}

.selected-package-info .package-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.selected-package-info h5 {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
}

.selected-package-info .package-price {
    margin-left: auto;
    font-size: 18px;
    font-weight: bold;
    color: #dc3545;
}

#payment-options-modal .section-title {
    padding: 0 15px;
}

.payment-options-list {
    padding: 0 15px 15px 15px;
}

.payment-option-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}

.payment-option-item img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
}

.payment-option-item span {
    flex-grow: 1;
}

.payment-option-item h5 {
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 4px 0;
}

.payment-option-item p {
    font-size: 13px;
    color: #6c757d;
    margin: 0;
}

.payment-option-item .fa-chevron-right {
    color: #6c757d;
}

/* ================================================================ */
/* ========= এসএমএস কেনার পেজের ডার্ক মোড স্টাইল ========= */
/* ================================================================ */

body.dark-mode #sms-purchase-screen .modal-content,
body.dark-mode .sms-purchase-header {
    background-color: #1e1e1e;
    border-bottom-color: #333;
}
body.dark-mode .sms-purchase-header h2,
body.dark-mode .sms-purchase-header .back-arrow {
    color: #e0e0e0;
}
body.dark-mode .sms-purchase-header .report-btn {
    color: #e0e0e0;
    background: #333;
}
body.dark-mode .sms-purchase-body {
    background-color: #121212;
}
body.dark-mode .sms-purchase-body .balance-card {
    background-color: #1e1e1e;
    border-color: #333;
}
body.dark-mode .balance-card span:first-child,
body.dark-mode .section-title {
    color: #aaa;
}
body.dark-mode .balance-card span:last-child {
    color: #e0e0e0;
}
body.dark-mode .sms-package-item {
    background-color: #1e1e1e;
    border-color: #333;
}
body.dark-mode .sms-package-item .package-details h5 {
    color: #e0e0e0;
}
body.dark-mode .sms-package-item .package-details p {
    color: #aaa;
}

body.dark-mode #payment-options-modal .modal-content {
    background-color: #1e1e1e;
}
body.dark-mode .selected-package-info {
    background-color: #2a2a2a;
}
body.dark-mode .payment-option-item {
    border-bottom-color: #333;
}
body.dark-mode .payment-option-item h5 {
    color: #e0e0e0;
}
body.dark-mode .payment-option-item p {
    color: #aaa;
}
body.dark-mode .payment-option-item .fa-chevron-right {
    color: #aaa;
}




/* ================================================================ */
/* ========= নতুন: ব্যবসা অ্যাকশন পেজের স্টাইল ========= */
/* ================================================================ */

#business-action-screen .business-item {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #f0f0f0;
}

#business-action-screen .active-tick {
    display: none; /* এই পেজে চেকমার্কের প্রয়োজন নেই */
}

/* ডার্ক মোড */
body.dark-mode #business-action-screen .modal-content {
    background-color: #121212;
}
body.dark-mode #business-action-screen .pin-modal-header {
    background-color: #1e1e1e;
}
body.dark-mode #business-action-screen #business-action-prompt {
    color: #aaa;
}
body.dark-mode #business-action-screen .business-item {
    background-color: #1e1e1e;
    border-color: #333;
}

/* ================================================= */
/* ======================== কাস্টম প্রম্পট মডাল ======================== */
/* ================================================= */

#custom-prompt-modal .modal-content h2 {
    font-size: 20px;
    text-align: left;
    color: #333;
}

#custom-prompt-modal p {
    text-align: left;
    margin-bottom: 15px;
}

#custom-prompt-modal input {
    margin: 0 0 20px 0;
}

#custom-prompt-modal .button-group {
    gap: 15px;
}

#custom-prompt-modal .button-group button {
    margin: 0;
}

/* ডার্ক মোড */
body.dark-mode #custom-prompt-modal .modal-content {
    background-color: #2a2a2a;
}
body.dark-mode #custom-prompt-modal h2,
body.dark-mode #custom-prompt-modal p {
    color: #e0e0e0;
}

/* ================================================================ */
/* ========= নতুন: কাস্টম কনফার্মেশন মডালের স্টাইল ========= */
/* ================================================================ */

#custom-confirm-modal .modal-content {
    max-width: 320px;
    padding: 25px;
    text-align: center;
}

#custom-confirm-modal .confirm-icon {
    font-size: 40px;
    color: #dc3545;
    margin-bottom: 15px;
}

#custom-confirm-modal h2 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

#custom-confirm-modal p {
    font-size: 15px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

#custom-confirm-modal .button-group {
    margin-top: 0;
    gap: 10px;
}

#custom-confirm-modal .button-group .secondary-btn {
    background-color: #e9ecef;
    color: #495057;
    box-shadow: none;
    font-weight: bold;
}

#custom-confirm-modal .button-group .confirm-btn {
    background: #dc3545;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* ডার্ক মোডের জন্য স্টাইল */
body.dark-mode #custom-confirm-modal .modal-content {
    background-color: #2a2a2a;
}
body.dark-mode #custom-confirm-modal h2 {
    color: #e0e0e0;
}
body.dark-mode #custom-confirm-modal p {
    color: #aaa;
}
body.dark-mode #custom-confirm-modal .button-group .secondary-btn {
    background-color: #444;
    color: #e0e0e0;
}

/* ==================================================================== */
/* ========= নতুন: লেনদেন নিশ্চিতকরণ মডালের জন্য স্টাইল ========= */
/* ==================================================================== */

#transaction-confirmation-modal {
  background-color: #f8f9fa;
}

#transaction-confirmation-modal .modal-content {
  background: transparent;
  box-shadow: none;
  max-width: 100%;
  height: 100%;
  padding: 15px;
}

#transaction-confirmation-modal .close-btn {
  position: static;
  font-size: 28px;
  background: #eee;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#transaction-confirmation-modal .confirmation-icon {
  text-align: center;
  margin-bottom: 20px;
}

#transaction-confirmation-modal .confirmation-icon i {
  font-size: 60px;
  color: #28a745;
}

#transaction-confirmation-modal .confirmation-title {
  text-align: center;
  font-size: 20px;
  font-weight: 500;
  color: #333;
  margin-bottom: 25px;
}

#transaction-confirmation-modal .confirmation-summary {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.conf-customer-info {
  display: flex;
  align-items: center;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 15px;
}

.conf-customer-info .customer-avatar {
  width: 45px;
  height: 45px;
  margin-right: 12px;
}

.conf-customer-info #conf-customer-name {
  font-weight: bold;
  font-size: 18px;
}

.conf-customer-info #conf-customer-mobile {
  font-size: 14px;
  color: #6c757d;
}

.conf-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 16px;
}

.conf-row.final-due {
  font-size: 18px;
  font-weight: bold;
}

.conf-row span:last-child {
  font-weight: 500;
}

.conf-row #conf-previous-due,
.conf-row #conf-amount-given,
.conf-row #conf-current-due {
  color: #dc3545;
}

.conf-row #conf-amount-received {
  color: #28a745;
}

#transaction-confirmation-modal hr {
  border: none;
  border-top: 1px dashed #ccc;
  margin: 0 0 15px 0;
}

.share-section {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  padding: 20px;
  border-top: 1px solid #f0f0f0;
}

.share-section p {
  text-align: center;
  color: #6c757d;
  margin-bottom: 20px;
  font-size: 14px;
}

.share-options {
  display: flex;
  justify-content: space-around;
  text-align: center;
}

.share-button {
  cursor: pointer;
}

.share-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 5px auto;
}

.share-icon-wrapper.baki { background-color: #ffe8e9; }
.share-icon-wrapper.baki img { width: 28px; }
.share-icon-wrapper.sms { background-color: #fff0d4; }
.share-icon-wrapper.sms i { color: #ff9800; font-size: 24px; }
.share-icon-wrapper.whatsapp { background-color: #e0f2e8; }
.share-icon-wrapper.whatsapp i { color: #25d366; font-size: 28px; }
.share-icon-wrapper.messenger { background-color: #e7f3ff; }
.share-icon-wrapper.messenger i { color: #0084ff; font-size: 28px; }

.share-button span {
  font-size: 12px;
}
/* ================================================================ */
/* ========= তাগাদা শিডিউল মডালের ইনপুট ফিল্ডের জন্য ফিক্স ========= */
/* ================================================================ */

#schedule-reminder-modal .cs-input-group {
    position: relative;
    display: flex; /* আইকন এবং ইনপুটকে পাশাপাশি আনার জন্য */
    align-items: center; /* উল্লম্বভাবে মাঝখানে আনার জন্য */
    padding: 10px 15px; /* ভেতরের প্যাডিং ঠিক করা */
}

#schedule-reminder-modal .cs-input-group i {
    position: static; /* Absolute পজিশন তুলে দেওয়া হয়েছে */
    transform: none; /* Transform তুলে দেওয়া হয়েছে */
    margin-right: 15px; /* আইকন এবং ইনপুটের মধ্যে ফাঁকা জায়গা */
    color: #888;
    font-size: 18px;
}

#schedule-reminder-modal .cs-input-group input[type="date"],
#schedule-reminder-modal .cs-input-group input[type="time"] {
    width: 100%;
    border: none;
    background-color: transparent;
    font-size: 16px;
    padding: 5px 0; /* প্যাডিং ঠিক করা */
    box-shadow: none;
    margin: 0;
    color: #333;
}

/* ইনপুট ফিল্ডের placeholder স্টাইল (ঐচ্ছিক, দেখতে সুন্দর লাগবে) */
#schedule-reminder-modal .cs-input-group input[type="date"]::-webkit-calendar-picker-indicator,
#schedule-reminder-modal .cs-input-group input[type="time"]::-webkit-calendar-picker-indicator {
    opacity: 0; /* ডিফল্ট আইকন লুকিয়ে ফেলা */
    width: 100%; /* পুরো ইনপুট ফিল্ডকে ক্লিকযোগ্য করা */
    cursor: pointer;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
}

/* ডার্ক মোডের জন্য সামঞ্জস্য */
body.dark-mode #schedule-reminder-modal .cs-input-group input[type="date"],
body.dark-mode #schedule-reminder-modal .cs-input-group input[type="time"] {
    color: #e0e0e0;
}

/* ======================== নতুন কোড শুরু ======================== */

/* ================================================================ */
/* ========= নতুন: রিপোর্ট প্রিভিউ মডালের স্টাইল ========= */
/* ================================================================ */

#report-preview-modal .content-body {
    padding: 15px;
    background-color: #f8f9fa;
    overflow-y: auto;
}

#report-preview-modal .pin-modal-header {
    justify-content: space-between;
}

#report-preview-share-btn {
    cursor: pointer;
    font-size: 20px;
    color: #333;
}

/* রিপোর্টের জন্য একটি সাধারণ টেবিলের স্টাইল */
.report-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 15px;
}
.report-table th, .report-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}
.report-table th {
    background-color: #f8f9fa;
    font-weight: 500;
    font-size: 14px;
    color: #555;
}
.report-table td {
    font-size: 15px;
}
.report-table tr:last-child td {
    border-bottom: none;
}
.report-table .amount {
    text-align: right;
    font-weight: 500;
}
.report-table .income { color: #28a745; }
.report-table .expense { color: #dc3545; }
.report-table .balance { font-weight: bold; }

/* রিপোর্ট প্রিভিউ-এর সারাংশ কার্ডের স্টাইল */
.report-summary-card {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.report-summary-card .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 16px;
}
.report-summary-card .summary-row:not(:last-child) {
    border-bottom: 1px dashed #eee;
}
.report-summary-card .summary-row.total {
    font-weight: bold;
    font-size: 18px;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid #ddd;
}

/* ডার্ক মোডে রিপোর্ট প্রিভিউ-এর স্টাইল */
body.dark-mode #report-preview-modal .modal-content {
    background-color: #121212;
}
body.dark-mode #report-preview-modal .pin-modal-header {
    background-color: #1e1e1e;
    border-bottom-color: #333;
}
body.dark-mode #report-preview-modal .pin-modal-header h2,
body.dark-mode #report-preview-modal .pin-modal-header i {
    color: #e0e0e0;
}
body.dark-mode #report-preview-modal .content-body {
    background-color: #121212;
}
body.dark-mode .report-table {
    background-color: #1e1e1e;
    box-shadow: none;
}
body.dark-mode .report-table th {
    background-color: #2a2a2a;
    color: #aaa;
}
body.dark-mode .report-table td {
    color: #e0e0e0;
    border-bottom-color: #333;
}
body.dark-mode .report-summary-card {
    background-color: #1e1e1e;
    box-shadow: none;
    border: 1px solid #333;
}
body.dark-mode .report-summary-card .summary-row {
    color: #e0e0e0;
}
body.dark-mode .report-summary-card .summary-row:not(:last-child) {
    border-bottom-color: #333;
}
body.dark-mode .report-summary-card .summary-row.total {
    border-top-color: #444;
}

/* ================================================================ */
/* ========= নতুন: রিপোর্ট শেয়ার অপশন মডালের স্টাইল ========= */
/* ================================================================ */

#report-share-options-modal h2 {
    text-align: center;
    padding: 15px 15px 0;
    font-size: 20px;
    color: #333;
}

#report-share-options-modal p {
    text-align: center;
    margin-bottom: 20px;
    color: #555;
}

#report-share-options-modal .backup-buttons {
    padding: 0 15px 15px;
}

/* শেয়ার অপশন বাটনের জন্য আলাদা স্টাইল */
#report-share-options-modal .report-option-btn {
    background-color: #f0f2f5;
    color: #333;
}

#report-share-options-modal .report-option-btn:hover {
    background-color: #e4e6eb;
}

/* ডার্ক মোডে শেয়ার অপশন মডালের স্টাইল */
body.dark-mode #report-share-options-modal .modal-content {
    background-color: #1e1e1e;
}
body.dark-mode #report-share-options-modal h2,
body.dark-mode #report-share-options-modal p {
    color: #e0e0e0;
}
body.dark-mode #report-share-options-modal .report-option-btn {
    background-color: #333;
    color: #e0e0e0;
}
body.dark-mode #report-share-options-modal .report-option-btn:hover {
    background-color: #444;
}

/* ======================== নতুন কোড শেষ ======================== */

/* ================================================================ */
/* ======================== গ্রুপ তাগাদা মডাল ======================== */
/* ================================================================ */

#group-reminder-modal .pin-modal-header {
    justify-content: space-between;
}

#group-reminder-modal .group-reminder-body {
    padding: 15px;
    flex-grow: 1;
    overflow-y: auto;
    background-color: #f8f9fa;
}

#group-reminder-modal .select-all-container {
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

#group-reminder-modal .select-all-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    accent-color: #dc3545;
}

#group-reminder-modal .select-all-container label {
    font-weight: bold;
    font-size: 16px;
}

.group-reminder-customer-item {
    display: flex;
    align-items: center;
    padding: 12px 5px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}

.group-reminder-customer-item:last-child {
    border-bottom: none;
}

.group-reminder-customer-item .customer-select-checkbox {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-right: 15px;
    accent-color: #dc3545;
}

.group-reminder-customer-item .customer-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin-right: 12px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
}

.group-reminder-customer-item .customer-info {
    flex-grow: 1;
}

.group-reminder-customer-item .customer-info .name {
    font-weight: 500;
    font-size: 17px;
}

.group-reminder-customer-item .customer-info .customer-subtitle {
    font-size: 13px;
    color: #6c757d;
}

.group-reminder-customer-item .due-amount {
    font-weight: bold;
    color: #dc3545;
    font-size: 16px;
}

#group-reminder-next-btn:disabled {
    background-color: #f48690;
    cursor: not-allowed;
}

/* গ্রুপ তাগাদা অপশন মডাল */
#group-reminder-options-modal h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

#group-reminder-options-modal p {
    margin-bottom: 25px;
    color: #555;
}

/* ================================================================ */
/* ============== গ্রুপ তাগাদা মডাল (ডার্ক মোড) ============== */
/* ================================================================ */

body.dark-mode #group-reminder-modal .modal-content {
    background-color: #121212;
}

body.dark-mode #group-reminder-modal .pin-modal-header {
    background-color: #1e1e1e;
    border-bottom-color: #333;
}

body.dark-mode #group-reminder-modal .pin-modal-header h2,
body.dark-mode #group-reminder-modal .pin-modal-header i {
    color: #e0e0e0;
}

body.dark-mode #group-reminder-modal .group-reminder-body {
    background-color: #121212;
}

body.dark-mode #group-reminder-modal .select-all-container {
    border-bottom-color: #333;
    color: #e0e0e0;
}

body.dark-mode .group-reminder-customer-item {
    border-bottom-color: #333;
}

body.dark-mode .group-reminder-customer-item .customer-info .name {
    color: #e0e0e0;
}

body.dark-mode .group-reminder-customer-item .customer-info .customer-subtitle {
    color: #aaa;
}

body.dark-mode #group-reminder-options-modal .modal-content {
    background-color: #2a2a2a;
}

body.dark-mode #group-reminder-options-modal h2,
body.dark-mode #group-reminder-options-modal p {
    color: #e0e0e0;
}
/* ===== নতুন পরিবর্তন শুরু: প্রিমিয়াম কেনার পেইজের জন্য নতুন স্টাইল ===== */

#premium-purchase-screen .modal-content {
    background-color: #F8F9FA; /* হালকা ধূসর ব্যাকগ্রাউন্ড */
}

.premium-purchase-body {
    padding: 15px;
    flex-grow: 1;
    overflow-y: auto;
}

.premium-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 25px 0 15px 0;
}

.package-selection-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.package-card {
    background-color: #fff;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease-in-out;
}

.package-card.popular {
    border-color: #FBBF24; /* হলুদ বর্ডার */
    transform: scale(1.05); /* হালকা বড় দেখাবে */
}

.package-tag {
    font-size: 10px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 12px;
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    border: 1px solid #ddd;
}

.package-tag.regular { color: #555; }
.package-tag.popular { color: #92400E; background-color: #FBBF24; border-color: #FBBF24; }
.package-tag.best-deal { color: #28a745; }

.package-duration {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 10px 0 5px 0;
}

.package-price {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.package-price del {
    font-size: 12px;
    color: #999;
    font-weight: normal;
}

.package-daily-cost {
    font-size: 12px;
    color: #fff;
    background-color: #6c757d;
    padding: 4px 10px;
    border-radius: 15px;
    margin-top: 10px;
    display: inline-block;
}

.premium-features-list {
    background-color: #fff;
    border-radius: 12px;
    padding: 10px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    font-size: 16px;
    color: #333;
}

.feature-item i {
    font-size: 20px;
    color: #6c757d;
    background-color: #f0f2f5;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.premium-confirm-btn {
    width: 100%;
    padding: 16px;
    background-color: #D4AF37; /* গোল্ডেন রঙ */
    color: #422006;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin: 0;
}

.terms-text {
    text-align: center;
    font-size: 12px;
    color: #6c757d;
    margin-top: 15px;
}

/* ডার্ক মোডের জন্য প্রিমিয়াম পেইজের স্টাইল */
body.dark-mode #premium-purchase-screen .modal-content {
    background-color: #121212;
}

body.dark-mode .premium-purchase-body .premium-title {
    color: #e0e0e0;
}

body.dark-mode .package-card {
    background-color: #1e1e1e;
    border-color: #444;
}

body.dark-mode .package-card.popular {
    border-color: #FBBF24;
}

body.dark-mode .package-tag {
    background-color: #1e1e1e;
    border-color: #444;
}

body.dark-mode .package-duration,
body.dark-mode .package-price {
    color: #e0e0e0;
}

body.dark-mode .package-price del {
    color: #888;
}

body.dark-mode .package-daily-cost {
    background-color: #444;
    color: #e0e0e0;
}

body.dark-mode .premium-features-list {
    background-color: #1e1e1e;
}

body.dark-mode .feature-item {
    color: #e0e0e0;
}

body.dark-mode .feature-item i {
    background-color: #333;
    color: #aaa;
}

body.dark-mode .terms-text {
    color: #888;
}

/* ===== নতুন পরিবর্তন শেষ ===== */

/* modals.css এর শেষে যোগ করুন */

/* ভাষা নির্বাচন স্টাইল */
.language-list {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
}

.language-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 8px;
}

.language-item:hover {
    background-color: #f9f9f9;
}

.language-item .lang-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.language-item img {
    width: 30px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.language-item span {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.language-item .active-check {
    color: #28a745;
    font-size: 18px;
}

/* ডার্ক মোড সাপোর্ট */
body.dark-mode .language-item {
    border-bottom-color: #333;
}
body.dark-mode .language-item:hover {
    background-color: #2a2a2a;
}
body.dark-mode .language-item span {
    color: #e0e0e0;
}

/* ================================================================ */
/* ========= SMS রিপোর্ট মডালের স্টাইল (NEW) ========= */
/* ================================================================ */

/* SMS Report Modal Specifics */
#sms-report-modal .modal-content {
    padding: 0;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
}

#sms-report-modal .pin-modal-header {
    flex-shrink: 0;
}

/* Tab Navigation Style */
.sms-report-tabs {
    display: flex;
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    flex-shrink: 0;
}

.sms-report-tabs .tab-btn {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    outline: none;
}

.sms-report-tabs .tab-btn:hover {
    background-color: #f8f9fa;
}

.sms-report-tabs .tab-btn.active {
    color: #dc3545;
    border-bottom-color: #dc3545;
    font-weight: bold;
    background-color: #fff5f5;
}

/* List Item Style */
.sms-history-item {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.sms-history-info h4 {
    margin: 0 0 5px 0;
    font-size: 15px;
    color: #333;
    font-weight: 600;
}

.sms-history-info p {
    margin: 0;
    font-size: 12px;
    color: #6c757d;
}

.sms-history-amount {
    font-weight: bold;
    font-size: 16px;
    text-align: right;
}

.sms-history-amount.purchase { color: #28a745; } /* সবুজ (কেনা) */
.sms-history-amount.sent { color: #dc3545; }     /* লাল (খরচ) */

/* Dark Mode Support for SMS Report */
body.dark-mode #sms-report-modal .modal-content {
    background-color: #121212;
}

body.dark-mode .sms-report-tabs {
    background-color: #1e1e1e;
    border-bottom: 1px solid #333;
}

body.dark-mode .sms-report-tabs .tab-btn {
    color: #aaa;
}

body.dark-mode .sms-report-tabs .tab-btn:hover {
    background-color: #2a2a2a;
}

body.dark-mode .sms-report-tabs .tab-btn.active {
    color: #f06571;
    border-bottom-color: #f06571;
    background-color: #2a2a2a;
}

body.dark-mode #sms-report-body {
    background-color: #121212 !important;
}

body.dark-mode .sms-history-item {
    background-color: #1e1e1e;
    border-color: #333;
}

body.dark-mode .sms-history-info h4 {
    color: #e0e0e0;
}

/* ================================================================ */
/* ========= ইমেজ ভিউয়ার (Image Lightbox) স্টাইল ========= */
/* ================================================================ */

.image-viewer-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

#full-screen-image {
    max-width: 95%;
    max-height: 80vh; /* স্ক্রিনের ৮০% জায়গা নিবে ছবি */
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    animation: zoomInImage 0.3s ease-out;
}

/* টিক চিহ্ন বাটন ডিজাইন */
.image-viewer-close-btn {
    margin-top: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #fff; /* সাদা ব্যাকগ্রাউন্ড */
    border: 2px solid #28a745; /* সবুজ বর্ডার */
    color: #28a745; /* সবুজ টিক চিহ্ন */
    font-size: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
    transition: transform 0.2s;
}

.image-viewer-close-btn:active {
    transform: scale(0.9);
    background-color: #e0f2e8;
}

@keyframes zoomInImage {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ================================================================ */
/* ========= নতুন প্রোফাইল মডাল ডিজাইন (MODERN PROFILE) ========= */
/* ================================================================ */

/* Profile Item Styles */
.profile-item {
    transition: background 0.2s, transform 0.1s;
}

.profile-item.clickable:active {
    background-color: #f5f5f5 !important;
    transform: scale(0.98);
}

/* Profile Header */
.profile-header-modern {
    background: linear-gradient(135deg, #D32F2F, #B71C1C); /* ডিফল্ট লাল */
}

/* থিম অনুযায়ী প্রোফাইল হেডারের কালার পরিবর্তন */
body.theme-blue .profile-header-modern { background: linear-gradient(135deg, #1976D2, #0D47A1); }
body.theme-green .profile-header-modern { background: linear-gradient(135deg, #388E3C, #1B5E20); }
body.theme-purple .profile-header-modern { background: linear-gradient(135deg, #7B1FA2, #4A148C); }
body.theme-teal .profile-header-modern { background: linear-gradient(135deg, #009688, #004D40); }
body.theme-orange .profile-header-modern { background: linear-gradient(135deg, #F57C00, #E65100); }

/* ডার্ক মোড - প্রোফাইল মডাল */
body.dark-mode #profile-modal .modal-content {
    background-color: #121212;
}

body.dark-mode .profile-header-modern {
    background: #1e1e1e; /* ডার্ক হেডার */
    border-bottom: 1px solid #333;
}

body.dark-mode .profile-avatar-container label {
    background: #333 !important;
    border-color: #444 !important;
}

body.dark-mode .profile-item {
    background-color: #1e1e1e !important;
    box-shadow: none !important;
    border: 1px solid #333;
}

body.dark-mode .profile-item .p-icon {
    background-color: #333 !important;
    color: #e0e0e0 !important;
}

body.dark-mode .profile-item .p-info label {
    color: #aaa !important;
}

body.dark-mode .profile-item .p-info span {
    color: #e0e0e0 !important;
}

body.dark-mode .profile-footer-modern .edit-btn {
    background-color: #333 !important;
    color: #e0e0e0 !important;
    border-color: #555 !important;
}

body.dark-mode .profile-footer-modern .logout-btn {
    background-color: #442c2e !important;
    color: #ff6b6b !important;
}




/* ================================================================ */
/* ========= ফিক্স: পিন কনফার্মেশন বাটন লেআউট (ফাইনাল) ========= */
/* ================================================================ */

/* পিন মডালের বডি - ফ্লেক্স কন্টেইনার হিসেবে কাজ করবে */
#transaction-edit-pin-modal .change-pin-body,
#delete-transaction-pin-modal .change-pin-body,
#delete-customer-pin-modal .change-pin-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* মাঝখানে রাখার জন্য */
    overflow-y: auto;
    padding: 15px;
    height: 100%; /* সম্পূর্ণ উচ্চতা নিবে */
    min-height: 400px; /* অন্তত এতটুকু হাইট থাকবে */
}

/* সামারি গ্রিড (টাকার এমাউন্ট) যাতে সংকুচিত না হয় */
#delete-trans-summary, .edit-pin-summary-grid {
    margin-top: 10px;
    margin-bottom: 20px;
    width: 100%;
    flex-shrink: 0; /* এটি যাতে ছোট না হয়ে যায় */
}

/* পিন ইনপুট বক্সের কন্টেইনার */
.pin-input-container {
    margin-top: 10px;
    margin-bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

/* কনফার্ম বাটন */
.pin-confirm-btn {
    width: 90%; 
    max-width: 350px;
    padding: 14px;
    margin-top: 10px;
    background-color: #fce6e8; 
    color: #dc3545;
    border: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    cursor: not-allowed;
    transition: all 0.3s ease;
    display: block; 
    flex-shrink: 0; /* বাটনও যাতে ছোট না হয় */
}

/* বাটন একটিভ হলে */
.pin-confirm-btn.active {
    background-color: #dc3545;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.3);
}

/* যখন কিবোর্ড ওপেন হবে (মিডিয়া কোয়েরি - ছোট হাইটের জন্য) */
@media (max-height: 600px) {
    #transaction-edit-pin-modal .change-pin-body,
    #delete-transaction-pin-modal .change-pin-body,
    #delete-customer-pin-modal .change-pin-body {
        justify-content: flex-start; /* কিবোর্ড উঠলে কন্টেন্ট উপরে চলে যাবে */
        padding-top: 10px;
    }
}


/* ================================================================ */
/* ========= নতুন: কাস্টম সাকসেস মডাল (টিক চিহ্ন এনিমেশন) ========= */
/* ================================================================ */
/* ... (বাকি সাকসেস মডালের কোড আগের মতোই থাকবে) ... */

#success-message-modal .modal-content {
    background-color: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border: 1px solid #eee;
    padding: 20px;
}

.success-checkmark {
    width: 80px;
    height: 115px;
    margin: 0 auto;
}

.check-icon {
    width: 80px;
    height: 80px;
    position: relative;
    border-radius: 50%;
    box-sizing: content-box;
    border: 4px solid #4CAF50;
}

.check-icon::before {
    top: 3px;
    left: -2px;
    width: 30px;
    transform-origin: 100% 50%;
    border-radius: 100px 0 0 100px;
}

.check-icon::after {
    top: 0;
    left: 30px;
    width: 60px;
    transform-origin: 0 50%;
    border-radius: 0 100px 100px 0;
    animation: rotate-circle 4.25s ease-in;
}

.check-icon::before, .check-icon::after {
    content: '';
    height: 100px;
    position: absolute;
    background: #FFFFFF;
    transform: rotate(-45deg);
}

.icon-line {
    height: 5px;
    background-color: #4CAF50;
    display: block;
    border-radius: 2px;
    position: absolute;
    z-index: 10;
}

.icon-line.line-tip {
    top: 46px;
    left: 14px;
    width: 25px;
    transform: rotate(45deg);
    animation: icon-line-tip 0.75s;
}

.icon-line.line-long {
    top: 38px;
    right: 8px;
    width: 47px;
    transform: rotate(-45deg);
    animation: icon-line-long 0.75s;
}

.icon-circle {
    top: -4px;
    left: -4px;
    z-index: 10;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    position: absolute;
    box-sizing: content-box;
    border: 4px solid rgba(76, 175, 80, .5);
}

.icon-fix {
    top: 8px;
    width: 5px;
    left: 26px;
    z-index: 1;
    height: 85px;
    position: absolute;
    transform: rotate(-45deg);
    background-color: #FFFFFF;
}

@keyframes rotate-circle {
    0% { transform: rotate(-45deg); }
    5% { transform: rotate(-45deg); }
    12% { transform: rotate(-405deg); }
    100% { transform: rotate(-405deg); }
}

@keyframes icon-line-tip {
    0% { width: 0; left: 1px; top: 19px; }
    54% { width: 0; left: 1px; top: 19px; }
    70% { width: 50px; left: -8px; top: 37px; }
    84% { width: 17px; left: 21px; top: 48px; }
    100% { width: 25px; left: 14px; top: 46px; }
}

@keyframes icon-line-long {
    0% { width: 0; right: 46px; top: 54px; }
    65% { width: 0; right: 46px; top: 54px; }
    84% { width: 55px; right: 0px; top: 35px; }
    100% { width: 47px; right: 8px; top: 38px; }
}

body.dark-mode #success-message-modal .modal-content {
    background-color: #1e1e1e;
    border-color: #333;
}
body.dark-mode .check-icon::before, 
body.dark-mode .check-icon::after,
body.dark-mode .icon-fix {
    background-color: #1e1e1e;
}

/* ================================================================ */
/* ========= SMART TOOLS MODALS (New & Improved) ================== */
/* ================================================================ */

/* 1. QR Scanner Modal */
#qr-scanner-modal .modal-content {
    background-color: #000;
    color: #fff;
    padding: 0;
    border-radius: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

#reader {
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    margin: 0 auto;
}

/* 3. Visiting Card Modal (Center Popup Fix) */
#visiting-card-modal {
    align-items: center; /* মাঝখানে */
    justify-content: center;
    padding: 20px;
}

#visiting-card-modal .modal-content {
    background: transparent;
    box-shadow: none;
    padding: 0;
    width: 100%;
    max-width: 340px;
    animation: zoomIn 0.3s ease-out;
}

#visiting-card-container {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    border: 1px solid rgba(0,0,0,0.05);
}

/* 4. Bank Info Modal (Center Popup Fix) */
#bank-info-modal {
    align-items: center; /* মাঝখানে */
    justify-content: center;
    padding: 20px;
}

#bank-info-modal .modal-content {
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

#bank-info-modal input {
    font-size: 16px;
    border: 1px solid #e0e0e0;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
}

#bank-info-modal input:focus {
    border-color: #007bff;
    background: #fff;
    outline: none;
}

#bank-display {
    border: 1px solid #e0e0e0;
    background-color: #f0f8ff;
    border-radius: 10px;
    padding: 20px !important;
}

/* Dark Mode Support for New Modals */
body.dark-mode #calculator-modal .modal-content {
    background-color: #1c1c1e;
}
body.dark-mode #calc-display {
    background-color: #000;
    color: #fff;
    border-bottom-color: #333;
}
body.dark-mode .calc-grid {
    background-color: #333;
}
body.dark-mode .calc-grid button {
    background-color: #1c1c1e;
    color: #fff;
}
body.dark-mode .calc-grid button:active {
    background-color: #3a3a3c;
}
body.dark-mode .close-btn-calc {
    background-color: #1c1c1e;
    border-top-color: #333;
}

body.dark-mode #bank-info-modal .modal-content {
    background-color: #1e1e1e;
    color: #e0e0e0;
}
body.dark-mode #bank-info-modal input {
    background-color: #2c2c2e;
    border-color: #444;
    color: #fff;
}
body.dark-mode #bank-display {
    background-color: #2c2c2e;
    border-color: #444;
}
body.dark-mode #bank-display p, 
body.dark-mode #bank-display span {
    color: #e0e0e0 !important;
}


/* ================================================================ */
/* ========= WINDOWS STYLE CALCULATOR MODAL (FIXED COLORS) ======== */
/* ================================================================ */

/* ক্যালকুলেটর মডাল ব্যাকগ্রাউন্ড */
#calculator-modal {
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 20px;
}

/* ক্যালকুলেটর উইন্ডো */
#calculator-modal .modal-content.calc-window-content {
    padding: 0;
    background: #f3f3f3; 
    border-radius: 8px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.5);
    width: 100%;
    max-width: 320px;
    overflow: hidden;
    position: relative;
    border: 1px solid #ccc;
    animation: zoomInCalc 0.2s ease-out;
}

@keyframes zoomInCalc {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* উইন্ডো হেডার */
.calc-window-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #e0e0e0;
    border-bottom: 1px solid #ccc;
}

.calc-window-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.calc-window-close {
    font-size: 16px;
    color: #555;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.calc-window-close:hover {
    background-color: #ff4d4d;
    color: white;
}

/* ডিসপ্লে স্ক্রিন */
#calc-display {
    font-family: 'Segoe UI', sans-serif;
    font-size: 40px;
    font-weight: 600;
    padding: 20px 15px;
    text-align: right;
    color: #000; /* টেক্সট কালো */
    background: #f9f9f9;
    border-bottom: 1px solid #ddd;
    min-height: 80px;
    word-wrap: break-word;
}

/* গ্রিড */
.calc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: #ccc;
    padding: 1px;
}

/* বাটন স্টাইল (General) */
.calc-btn {
    height: 60px;
    font-size: 20px;
    border: none;
    background: #ffffff;
    cursor: pointer;
    color: #333333; /* ফিক্স: বাটন টেক্সট গাঢ় ধূসর/কালো */
    font-weight: 500;
    transition: background 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calc-btn:active {
    background: #e6e6e6;
}

/* আইকন কালার ফিক্স (ব্যাকস্পেস এর জন্য) */
.calc-btn i {
    color: #333333;
}

/* অপারেটর বাটন (+, -, *, /) */
.calc-btn.op {
    background: #f0f0f0;
    font-size: 22px;
    color: #333333; /* ফিক্স: অপারেটর কালার গাঢ় */
}

.calc-btn.op:active {
    background: #dcdcdc;
}

/* সমান বাটন (=) */
.calc-btn.equals {
    background: #0078d7;
    color: #fff !important; /* ফিক্স: সমান বাটনের টেক্সট সাদা */
    grid-row: span 2;
}

.calc-btn.equals:active {
    background: #005a9e;
}

/* ========================================= */
/* ========= DARK MODE FIXES =============== */
/* ========================================= */

body.dark-mode #calculator-modal .modal-content.calc-window-content {
    background-color: #202020;
    border-color: #444;
}

body.dark-mode .calc-window-header {
    background-color: #2d2d2d;
    border-bottom-color: #444;
}

body.dark-mode .calc-window-title,
body.dark-mode .calc-window-close {
    color: #e0e0e0;
}

body.dark-mode #calc-display {
    background-color: #1f1f1f;
    color: #fff;
    border-bottom-color: #333;
}

body.dark-mode .calc-grid {
    background-color: #333;
}

/* ডার্ক মোডে বাটন টেক্সট সাদা করা */
body.dark-mode .calc-btn {
    background-color: #3b3b3b;
    color: #e0e0e0; 
}

/* ডার্ক মোডে আইকন সাদা করা */
body.dark-mode .calc-btn i {
    color: #e0e0e0;
}

body.dark-mode .calc-btn:active {
    background-color: #444;
}

/* ডার্ক মোডে অপারেটর বাটন */
body.dark-mode .calc-btn.op {
    background-color: #323232;
    color: #e0e0e0;
}

body.dark-mode .calc-btn.equals {
    background-color: #0078d7;
    color: #fff;
}

/* ================================================================ */
/* ========= Z-INDEX FIX FOR BUSINESS MODAL (বাটন ফিক্স) ========= */
/* ================================================================ */

/* মডালটিকে নেভিগেশন বার (10006) এর উপরে নিয়ে আসা */
#business-selection-modal {
    z-index: 20000 !important; 
}

/* ফুটার বাটনটি যেন নিশ্চিতভাবে উপরে থাকে এবং নিচে জায়গা পায় */
#business-selection-modal .modal-footer.fixed {
    z-index: 20001 !important;
    position: sticky;
    bottom: 0;
    padding-bottom: calc(20px + env(safe-area-inset-bottom)); /* আইফোনের জন্য সেইফ জোন */
    background-color: #fff; /* বাটন স্বচ্ছ হয়ে যাওয়া রোধ করতে */
}

/* ================================================================ */
/* ========= Z-INDEX FIX FOR ADD BUSINESS MODAL (ওভারল্যাপ ফিক্স) ========= */
/* ================================================================ */

/* এই মডালটি বিজনেস সিলেকশন মডালের (20000) উপরে দেখাতে হবে */
#add-business-modal {
    z-index: 21000 !important; 
    align-items: center; /* মাঝখানে দেখানোর জন্য */
    justify-content: center;
}

/* নিশ্চিত করা যে এর কন্টেন্ট ব্যাকগ্রাউন্ড সাদা এবং শ্যাডো আছে */
#add-business-modal .modal-content {
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border-radius: 12px;
    z-index: 21001 !important;
}

/* src/css/modals.css এর শেষে যোগ করুন */

/* Cash Keypad Dropdown Styling */
.cash-keypad-header .options-dropdown {
    top: 40px;
    right: 10px;
    width: 150px;
    display: none; /* ডিফল্টভাবে লুকানো */
    position: absolute;
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border-radius: 8px;
    z-index: 1050;
    overflow: hidden;
}

.cash-keypad-header .options-dropdown.show {
    display: block;
}

.cash-keypad-header .dropdown-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cash-keypad-header .dropdown-item:hover {
    background-color: #f8f9fa;
}

.cash-keypad-header .dropdown-item:last-child {
    border-bottom: none;
}

/* src/css/modals.css এর শেষে যোগ করুন */

/* ওয়ালেট এবং টুলস পেজের হেডারের জন্য কার্ভ স্টাইল */
.modal-curved-header {
    background: #007bff; /* ডিফল্ট নীল, আপনার প্রয়োজনমতো বদলাতে পারেন */
    color: white;
    padding: 15px 15px 35px 15px; /* নিচে জায়গা রাখা হয়েছে কার্ভের জন্য */
    display: flex;
    align-items: center;
    position: relative;
    border-bottom: none !important;
}

.modal-curved-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background-color: #f8f9fa; /* বডির ব্যাকগ্রাউন্ড কালারের সাথে মিল */
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    z-index: 1;
}

/* ডার্ক মোড সাপোর্ট */
body.dark-mode .modal-curved-header {
    background-color: #1e1e1e;
}
body.dark-mode .modal-curved-header::after {
    background-color: #121212; /* ডার্ক বডি কালার */
}

/* হেডারের ভেতরের এলিমেন্ট অ্যাডজাস্টমেন্ট */
.modal-curved-header .back-arrow {
    font-size: 20px;
    cursor: pointer;
    margin-right: 15px;
    z-index: 2; /* কার্ভের উপরে থাকার জন্য */
}
.modal-curved-header h2 {
    font-size: 20px;
    font-weight: 500;
    margin: 0;
    z-index: 2;
}

/* ওয়ালেট এবং টুলস পেজের হেডারের জন্য কার্ভ স্টাইল */
.modal-curved-header {
    background: #B91C1C !important; /* লাল ব্যাকগ্রাউন্ড */
    color: #ffffff !important; /* টেক্সট সাদা */
    padding: 15px 15px 35px 15px;
    display: flex;
    align-items: center;
    position: relative;
    border-bottom: none !important;
}

/* হেডারের ভেতরের এলিমেন্ট (টাইটেল এবং আইকন) সাদা করা */
.modal-curved-header h2 {
    color: #ffffff !important;
    font-size: 20px;
    font-weight: 500;
    margin: 0;
    z-index: 2;
}

.modal-curved-header .back-arrow {
    color: #ffffff !important;
    font-size: 20px;
    cursor: pointer;
    margin-right: 15px;
    z-index: 2;
}

/* কার্ভ শেপ */
.modal-curved-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background-color: #f8f9fa; /* বডির ব্যাকগ্রাউন্ডের সাথে মিল */
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    z-index: 1;
}

/* ডার্ক মোড সাপোর্ট */
body.dark-mode .modal-curved-header {
    background-color: #1e1e1e !important;
}
body.dark-mode .modal-curved-header h2,
body.dark-mode .modal-curved-header .back-arrow {
    color: #e0e0e0 !important;
}
body.dark-mode .modal-curved-header::after {
    background-color: #121212;
}

/* ================================================================ */
/* ========= SMART TOOLS & WALLET (DARK MODE FIXES) =============== */
/* ================================================================ */

/* ১. মেইন ব্যাকগ্রাউন্ড কালো করা */
body.dark-mode #digital-wallet-screen .modal-content,
body.dark-mode #payment-collection-screen .modal-content {
    background-color: #121212 !important;
}

body.dark-mode .wallet-menu-body, 
body.dark-mode .wallet-body {
    background-color: #121212 !important;
}

/* ২. টুলসের টেক্সট কালার সাদা করা */
body.dark-mode .wallet-action-item span {
    color: #e0e0e0 !important;
}

/* ৩. আইকন বক্সের ব্যাকগ্রাউন্ড ডার্ক করা এবং আইকন সাদা করা */
/* ইনলাইন কালার (যেমন নীল/সবুজ) ডার্ক মোডে চোখের জন্য আরামদায়ক করতে ওভাররাইড করা হচ্ছে */
body.dark-mode .wallet-action-item .icon-box {
    background-color: #2a2a2a !important; 
    border: 1px solid #444 !important;
}

body.dark-mode .wallet-action-item .icon-box i {
    color: #4dabf7 !important; /* উজ্জ্বল নীল রঙ, যাতে অন্ধকারে জ্বলজ্বল করে */
}

/* ৪. পেমেন্ট কালেকশন পেজের কার্ড এবং ইনপুট ফিক্স */
body.dark-mode #payment-collection-screen .card {
    background-color: #1e1e1e !important;
    box-shadow: none;
    border: 1px solid #333;
}

body.dark-mode #payment-collection-screen h3,
body.dark-mode #payment-collection-screen p {
    color: #e0e0e0 !important;
}

body.dark-mode #wallet-payment-number {
    background-color: #2a2a2a;
    border-color: #444;
    color: #fff;
}
/* ================================================================ */
/* ========= CASH KEYPAD MODAL (DARK MODE FIXES) ================== */
/* ================================================================ */

/* ১. মেইন ব্যাকগ্রাউন্ড */
body.dark-mode #cash-keypad-modal .modal-content {
    background-color: #121212 !important;
}

/* ২. হেডার ফিক্স */
body.dark-mode .cash-keypad-header {
    background-color: #1e1e1e !important;
    border-bottom: 1px solid #333 !important;
    box-shadow: none !important;
}

body.dark-mode .cash-keypad-header h2,
body.dark-mode .cash-keypad-header p,
body.dark-mode .cash-keypad-header i,
body.dark-mode .cash-keypad-header .report-btn {
    color: #e0e0e0 !important;
}

/* ৩. ইনপুট বক্স (যেখানে টাকার পরিমাণ ও বিবরণ লেখা হয়) */
body.dark-mode .cash-input-box {
    background-color: #1e1e1e !important;
    border: 1px solid #333 !important;
}

body.dark-mode .cash-input-box input {
    color: #ffffff !important; /* লেখার কালার সাদা */
    background-color: transparent !important;
}

body.dark-mode .cash-input-box label,
body.dark-mode .cash-input-box i {
    color: #aaaaaa !important; /* লেবেল ও আইকন হালকা ধূসর */
}

/* ৪. বাটন কন্টেইনার */
body.dark-mode .cash-keypad-confirm-container {
    background-color: #121212 !important;
    box-shadow: none !important;
}

/* ৫. নিচের কি-প্যাড (বাটনগুলো) */
body.dark-mode #cash-keypad-keypad {
    background-color: #333 !important; /* গ্রিড লাইনের কালার */
}

body.dark-mode #cash-keypad-keypad button {
    background-color: #1e1e1e !important;
    color: #e0e0e0 !important;
}

body.dark-mode #cash-keypad-keypad button:active {
    background-color: #2a2a2a !important;
}

body.dark-mode #cash-keypad-keypad .keypad-operator {
    background-color: #2c2c2c !important;
}

/* ================================================================ */
/* ========= FLOATING LABEL INPUTS (FIXED HEIGHT & DOT) =========== */
/* ================================================================ */

/* ১. ইনপুট কন্টেইনার */
.input-container {
    display: flex;
    gap: 12px;
    margin-bottom: 12px; 
}

/* ২. বক্স ডিজাইন */
.input-box,
.desc-box {
    position: relative;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    transition: all 0.2s ease-in-out;
    width: 100%;
}

/* দিলাম/পেলাম ইনপুট বক্স */
.input-box {
    flex: 1;
    height: 50px;
}

/* বিবরণী বক্স (হাইট ফিক্স এবং কালো ফোটা রিমুভ) */
.desc-box {
    height: 50px !important; /* হাইট ফিক্স করা হয়েছে (আগের মতো ছোট) */
    min-height: 50px !important;
    margin-bottom: 15px;
    display: flex;
    align-items: center; /* টেক্সট মাঝখানে আনার জন্য */
}

/* ৩. ইনপুট এবং টেক্সট এরিয়া */
.input-box input,
.desc-box textarea {
    width: 100%;
    height: 100%;
    background: transparent !important;
    border: none;
    outline: none;
    padding: 0 12px;
    font-size: 16px; /* ফন্ট সাইজ সামান্য কমানো হয়েছে */
    font-weight: 500;
    color: #333;
    box-sizing: border-box;
    caret-color: #c52626;
    z-index: 2;
    position: relative;
}

/* বিবরণী বক্সের ভেতরের স্টাইল (কালো ফোটা রিমুভ) */
.desc-box textarea {
    padding: 15px 12px 0 12px; /* লেবেল এর জন্য উপরে একটু জায়গা রাখা হয়েছে */
    resize: none !important;   /* এই লাইনটি কালো ফোটা রিমুভ করবে */
    overflow: hidden; /* স্ক্রলবার বন্ধ */
    line-height: 1.4;
}

/* ৪. লেবেল স্টাইল (স্বাভাবিক অবস্থা - মাঝখানে থাকবে) */
.input-box label,
.desc-box label {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    font-size: 15px;
    color: #666;
    background: transparent;
    padding: 0 4px;
    transition: all 0.2s ease-out;
    pointer-events: none;
    z-index: 1;
}

/* ৫. ফ্লোটিং ইফেক্ট (লেবেল উপরে উঠে যাওয়া) */
.input-box input:focus + label,
.input-box input:not(:placeholder-shown) + label,
.desc-box textarea:focus + label,
.desc-box textarea:not(:placeholder-shown) + label,
.input-box.active label,
.desc-box.active label {
    top: -9px !important; /* বর্ডারের উপরে বসবে */
    transform: none !important;
    font-size: 12px;
    font-weight: 600;
    background: #fff;
    color: #c52626;
    z-index: 5; 
    left: 10px;
    height: 16px;
    line-height: 16px;
    padding: 0 5px;
}

/* ৬. একটিভ বর্ডার কালার */
.input-box.active,
.desc-box.active,
.input-box:focus-within,
.desc-box:focus-within {
    border: 2px solid #c52626;
    box-shadow: 0 4px 10px rgba(197, 38, 38, 0.1);
}

/* ৭. ডার্ক মোড সাপোর্ট */
body.dark-mode .input-box,
body.dark-mode .desc-box {
    background-color: #1e1e1e !important;
    border-color: #444 !important;
}

body.dark-mode .input-box input,
body.dark-mode .desc-box textarea {
    color: #fff !important;
}

/* ডার্ক মোডে লেবেল */
body.dark-mode .input-box label,
body.dark-mode .desc-box label {
    color: #b0b0b0 !important;
}

/* ডার্ক মোডে ফ্লোটিং লেবেল */
body.dark-mode .input-box input:focus + label,
body.dark-mode .input-box input:not(:placeholder-shown) + label,
body.dark-mode .desc-box textarea:focus + label,
body.dark-mode .desc-box textarea:not(:placeholder-shown) + label,
body.dark-mode .input-box.active label,
body.dark-mode .desc-box.active label {
    background-color: #1e1e1e !important; 
    color: #c52626 !important;
}

body.dark-mode .input-box.active,
body.dark-mode .desc-box.active,
body.dark-mode .input-box:focus-within,
body.dark-mode .desc-box:focus-within {
    border-color: #c52626 !important;
}


/* ================================================================ */
/* ========= SQUARE BUTTONS FIX (FORCED) ========================== */
/* ================================================================ */

.action-buttons-bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    margin-bottom: 20px;
    padding: 5px 2px;
    
    overflow-x: auto; 
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; 
}

.action-buttons-bar::-webkit-scrollbar {
    display: none;
}

/* === বাটন ডিজাইন (স্কয়ার বক্স) === */
.action-buttons-bar .action-btn {
    width: 40px !important;   /* ফিক্সড চওড়া */
    height: 40px !important;  /* ফিক্সড উচ্চতা */
    padding: 0 !important;
    border-radius: 12px !important; 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
}

.action-buttons-bar .action-btn i {
    font-size: 22px !important;
    margin: 0 !important;
}

/* === আগের স্টাইলগুলো (এগুলো এখন new-layout ক্লাসের জন্য ওভাররাইড হবে) === */
#transaction-date, #edit-transaction-date {
    background-color: #fff8e1 !important;
    border-color: #ffecb3 !important;
}
#transaction-date i, #edit-transaction-date i {
    color: #ff8f00 !important;
}

.action-buttons-bar .action-btn.primary {
    background-color: #ffebee !important;
    border-color: #ffcdd2 !important;
}
.action-buttons-bar .action-btn.primary i {
    color: #d32f2f !important;
}

.action-buttons-bar .action-btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

/* ================================================================ */
/* ========= NEW ACTION BUTTON LAYOUT (TRANSPARENT & CLEAN) ======= */
/* ================================================================ */

/* মেইন কন্টেইনার */
.action-buttons-bar.new-layout {
    display: flex;
    justify-content: flex-start; /* আইকনগুলো বাম দিক থেকে শুরু হবে */
    gap: 10px; /* আইকনগুলোর মাঝখানের গ্যাপ */
    padding: 10px 5px;
    overflow-x: auto;
    box-shadow: none !important;
    background: transparent !important;
}

/* বাটন রিসেট */
.action-buttons-bar.new-layout .action-btn,
.action-buttons-bar.new-layout #transaction-date,
.action-buttons-bar.new-layout #edit-transaction-date,
.action-buttons-bar.new-layout label.action-btn {
    width: 18% !important; /* ৫টি আইকনের জন্য জায়গা ভাগ করা */
    min-width: 60px;
    height: auto !important;
    background-color: transparent !important; /* ব্যাকগ্রাউন্ড স্বচ্ছ */
    border: none !important;
    box-shadow: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer;
}

/* আইকন ডিজাইন */
.action-buttons-bar.new-layout .action-btn i {
    font-size: 24px !important;
    margin-bottom: 8px !important;
    padding: 12px;
    background-color: #f9f9f9 !important; /* আইকনের পেছনে হালকা গোল শেড */
    border-radius: 50%;
    transition: transform 0.2s;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* হালকা শ্যাডো */
}

.action-buttons-bar.new-layout .action-btn:active i {
    transform: scale(0.9);
    background-color: #e0e0e0 !important;
}

/* তারিখ এবং এডিট তারিখের আইকন কালার ফিক্স */
.action-buttons-bar.new-layout #transaction-date i,
.action-buttons-bar.new-layout #edit-transaction-date i {
    color: #FFC107 !important; /* হলুদ টেক্সট */
    background-color: #f9f9f9 !important; /* ব্যাকগ্রাউন্ড সাদা/ধূসর (হলুদ নয়) */
}

/* নিচের টেক্সট ডিজাইন */
.action-buttons-bar.new-layout .action-btn span {
    font-size: 11px;
    color: #555;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    line-height: 1.2;
}

/* ডার্ক মোড ফিক্স */
body.dark-mode .action-buttons-bar.new-layout .action-btn i {
    background-color: #2a2a2a !important;
    border: 1px solid #333;
}
body.dark-mode .action-buttons-bar.new-layout #transaction-date i,
body.dark-mode .action-buttons-bar.new-layout #edit-transaction-date i {
    background-color: #2a2a2a !important;
}
body.dark-mode .action-buttons-bar.new-layout .action-btn span {
    color: #aaa;
}

/* ================================================================ */
/* ========= IMAGE PREVIEW & CLOSE BUTTON FIX ===================== */
/* ================================================================ */

/* ১. ছবির র‍্যাপার */
.attachment-preview-wrapper {
    position: relative !important;
    display: inline-block !important;
    margin-top: 15px;
    margin-right: 15px;
}

/* ২. ছবি ডিজাইন */
.attachment-preview-wrapper img {
    display: block;
    max-width: 80px !important;
    max-height: 80px !important;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* ৩. ক্রস বাটন ফিক্স */
.remove-img-btn {
    position: absolute !important;
    top: -10px !important;
    right: -10px !important;
    width: 26px !important;
    height: 26px !important;
    background-color: #dc3545 !important;
    color: white !important;
    border: 2px solid white !important;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 14px !important;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 100 !important;
}

.remove-img-btn:active {
    transform: scale(0.9);
}