/*M-Safe\frontend\css\style.css*/
body {
  font-family: Arial;
  background: #f5f5f5;
  margin: 0;
}

.container {
  width: 300px;
  margin: 100px auto;
  background: white;
  padding: 20px;
  border-radius: 10px;
}

h2 {
  text-align: center;
  color: #4caf50; /* Safaricom green */
}

input {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
}

button {
  width: 100%;
  padding: 10px;
  margin-top: 15px;
  background: #4caf50;
  color: white;
  border: none;
  cursor: pointer;
}

button:hover {
  background: #388e3c;
}

/*.password-box {
  display: flex;
  align-items: center;
}

.password-box span {
  margin-left: -30px;
  cursor: pointer;
}
*/
.options {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-top: 10px;
}
select {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
}
body { margin:0; font-family: Arial; }
 .topbar {
  background: #4caf50;
  color: white;
  height: 60px;              /* ✅ required */
  display: flex;
  align-items: center;
  padding: 0 15px;
  position: sticky;
  top: 0;
  z-index: 1000;
}
 .main { padding:20px; } 
 .top-actions { display:flex; justify-content:flex-end; margin-bottom:10px; } 
 .btn { background:#4caf50; color:white; padding:10px 15px; border:none; cursor:pointer; } 
 table { width:100%; border-collapse: collapse; } 
 th, td { border:1px solid #ddd; padding:8px; text-align:center; } 
 th { background:#4caf50; color:white; } 
 .table-container { max-height:300px; overflow-y:auto; } 
 input { padding:8px; width:100%; margin-bottom:10px; } 
 .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; } 
 .modal-box { background:white; padding:20px; width:300px; text-align:center; border-radius:10px; } 
 .spinner { border:4px solid #eee; border-top:4px solid #4caf50; border-radius:50%; width:40px; height:40px; animation: spin 1s linear infinite; margin:auto; } 
 @keyframes spin { 100% { transform: rotate(360deg); } } 
 .success { color:green; font-size:40px; } 
 .error { color:red; font-size:40px; }
.top-actions .btn {
  width: auto;
  display: inline-block;
  margin-top: 0;
}
/* ===== TOPBAR LEFT SECTION ===== */
.top-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* MENU BUTTON */
.menu-btn {
  font-size: 22px;
  cursor: pointer;
  padding: 5px 10px;
}

/* LOGO */
.logo {
  width: 150px;
  height: 80px;
  object-fit: contain;
}

/* APP NAME */
.app-name {
  font-size: 18px;
  font-weight: bold;
}

/* ===== SIDEBAR ===== */
.sidebar {
  position: fixed;
  top: 60px; /* ✅ starts below topbar */
  left: -250px;
  width: 250px;
  height: calc(100% - 60px); /* ✅ full height minus topbar */
  background: #4caf50;
  color: white;
  padding-top: 10px;
  transition: 0.3s;
  z-index: 999;
}

/* SIDEBAR LINKS */
.sidebar a {
  display: block;
  padding: 15px;
  color: white;
  text-decoration: none;
}

.sidebar a:hover {
  background: #388e3c;
}

/* CLOSE BUTTON */
.close-btn {
  text-align: right;
  padding: 10px;
  font-size: 20px;
  cursor: pointer;
}
/* ===== LOGIN TOPBAR ===== */
.topbar-login {
  background: #4caf50;
  color: white;
  height: 60px;             /* same height as dashboard */
  display: flex;
  align-items: center;
  padding: 0 15px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* optional shadow */
}

.topbar-login .top-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-login .logo {
  width: 150px;      /* same size as dashboard */
  height: 40px;
  object-fit: contain;
}
/* ===== GREETING SECTION ===== */
.greeting {
  padding: 20px 15px;
  background: #f5f5f5;
}

/* ===== GREETING STYLING ===== */
.greeting h2 {
  margin: 0;
  font-size: 32px;          /* bigger */
  font-weight: bold;        /* bold */
  color: #4caf50;           /* Safaricom green */
}

.greeting p {
  margin: 5px 0 0 0;
  font-size: 18px;
  color: #555;              /* secondary text color */
  font-weight: normal;
}
/* Make logged-in user name green and bold */
#greeting #user-name,
#welcome-msg #user-name {
  color: #4caf50;  /* Safaricom green */
  font-weight: bold;
}

/* Container for all charts */
/* Container for all charts */
.charts-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;               /* gap between charts */
  justify-content: space-between; /* push top charts to edges */
  align-items: flex-start;
}

/* Top two charts side by side */
.chart-card {
  flex: 0 0 48%;       /* take almost half width each */
  height: 250px;       /* top charts height */
  background: #f5f5f5; /* optional background */
  padding: 15px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Full-width bottom chart */
.chart-card.full-width {
  flex: 0 0 100%;      /* spans full row */
  height: 300px;       /* taller bottom chart */
  max-width: none;     /* remove max-width so it touches edges */
}

/* SETTINGS PAGE CARDS 
.settings-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}*/

.card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  flex: 1 1 300px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.card h3 {
  color: #4caf50;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card input,
.card select {
  padding: 10px;
  width: 100%;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.card button {
  background: #4caf50;
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  border-radius: 5px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.card button:hover {
  background: #388e3c;
}

/* SUCCESS / ERROR MESSAGE */
#msg {
  text-align: center;
  margin-top: 15px;
  font-weight: bold;
  color: #4caf50;
}

#msg.error {
  color: red;
}

/* RESPONSIVE */
@media screen and (max-width: 900px) {
  .settings-container {
    flex-direction: column;
  }
}
.msg-card {
  display: none;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
  color: white;
  font-weight: bold;
  text-align: center;
}

.msg-card.success {
  background: #4caf50; /* Safaricom green */
}

.msg-card.error {
  background: #e74c3c; /* red for errors */
}
.profile-photo-container {
  text-align: center;
  margin-bottom: 15px;
}

.profile-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #4caf50;
  margin-bottom: 10px;
}

.photo-buttons button {
  margin: 3px;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
}
/* Flex layout for profile page */
/* Container for all cards */
.profile-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
  justify-content: flex-start;  /* keep cards aligned left */
  max-width: 900px;             /* restrict overall width */
  margin: 0 auto;               /* center container horizontally */
  padding: 20px 10px;           /* spacing around container */
}

/* Profile photo card */
.photo-card {
  flex: 0 0 200px;               /* fixed width for box */
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f5f5f5;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Profile image inside box */
.photo-card img {
  max-width: 100%;
  max-height: 180px;
  width: auto;
  height: auto;
  border-radius: 0;              /* rectangular, no circle */
  object-fit: contain;
  display: block;
}

/* Info cards container */
.info-cards {
  flex: 1;                        /* take remaining space */
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 600px;               /* prevent stretching too far right */
}

/* Info cards */
.info-cards .profile-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Card headings */
.profile-card h3 {
  margin-top: 0;
  color: #4caf50;
}

/* Paragraph spacing */
.profile-card p {
  margin: 5px 0;
  font-size: 16px;
}

/* Responsive for mobile */
@media screen and (max-width: 900px) {
  .profile-container {
    flex-direction: column;
    align-items: center;
  }
  .photo-card, .info-cards {
    max-width: 100%;
  }
}
/* Footer styling */
/* Footer overall */
.footer {
  background: #4caf50;           
  color: white;
  padding: 15px 20px;
  margin-top: 40px;
  border-radius: 10px;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.1);
  font-size: 14px;
}

/* Top links centered */
.footer-top {
  text-align: center;
  margin-bottom: 10px;
}

.footer-top .footer-links a {
  color: white;
  text-decoration: none;
  margin: 0 5px;
}

.footer-top .footer-links a:hover {
  text-decoration: underline;
}

/* Middle row: left + right */
.footer-middle {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

/* Left description */
.footer-left {
  flex: 1;
  max-width: 60%;
}

/* Right developer signature */
.footer-right {
  text-align: right;
  flex: 1;
  max-width: 35%;
  font-size: 12px;
}

.footer-right a {
  color: white;
  text-decoration: none;
}

.footer-right a:hover {
  text-decoration: underline;
}

/* Bottom copyright centered */
.footer-bottom {
  text-align: center;
  font-size: 13px;
  margin-top: 5px;
}

/* Responsive */
@media screen and (max-width: 900px) {
  .footer-middle {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-left, .footer-right {
    max-width: 100%;
    margin-bottom: 5px;
  }
}
/* Password box styling for settings page */
.password-box {
  display: flex;
  align-items: center;
  position: relative;
  margin-bottom: 10px;
}

.password-box input {
  flex: 1;
  padding: 10px;
  font-size: 14px;
}

.password-box span.toggle-eye {
  cursor: pointer;
  margin-left: -30px; /* sits inside input on the right */
  font-size: 16px;
}
/* ================= SUBSCRIPTION CARD ================= */
#subscriptionCard {
  font-size: 1rem;
  transition: background-color 0.3s;
}

/* ================= MODAL STYLES ================= */
.modal-box button.btn {
  margin-right: 10px;
}

/* ================= MODALS ================= */
.modal-box h3 {
  margin-bottom: 10px;
}

/* Spinner in processing modal */
.spinner {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #2196F3;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 10px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Success & Error */
.success {
  color: #388E3C;
  font-size: 2rem;
  text-align: center;
}

.error {
  color: #D32F2F;
  font-size: 2rem;
  text-align: center;
}

.subscription-modal {
  display: none; /* ✅ KEEP ONLY THIS */
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);

  /* ❌ REMOVE display:flex from here */
  justify-content: center;
  align-items: center;
}
.subscription-modal-box {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

.subscription-modal-box h3 {
  margin-bottom: 15px;
  color: #d9534f; /* red for access denied */
}

.subscription-modal-box p {
  margin: 5px 0;
}

.subscription-modal-box .btn {
  margin: 10px 5px;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  color: white;
  background-color: #28a745; /* green for subscribe */
}

.subscription-modal-box .btn:hover {
  background: #388e3c;
}

.subscription-modal-box button:last-child {
  background-color: #d9534f; /* cancel button red */
}
/* ================= SUBSCRIPTION MODAL ================= */
.sub-payment-modal {
  display: none; /* ✅ KEEP ONLY THIS */
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);

  /* ❌ REMOVE display:flex from here */
  justify-content: center;
  align-items: center;
}
.sub-payment-modal-box {
  background: white;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

.sub-payment-modal-box h3 {
  margin-bottom: 15px;
  color: #28a745;
}

.sub-phone-input {
  display: flex;
  gap: 5px;
  align-items: center;
  margin-bottom: 15px;
}

.sub-phone-input span {
  padding: 10px;
  background: #eee;
  border-radius: 5px;
}

.sub-phone-input input {
  flex: 1;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.sub-btn {
  background: #28a745;
  color: white;
  border: none;
  padding: 10px 20px;
  margin-bottom: 10px;
  border-radius: 5px;
  cursor: pointer;
}

.sub-btn:hover {
  background: #388e3c;
}

.sub-cancel-btn {
  background: #d9534f;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}

.sub-cancel-btn:hover {
  background: #388e3c;
}

/* SUB RESULT ICON */
.sub-success {
  color: #28a745;
  font-size: 3rem;
  text-align: center;
}

.sub-error {
  color: #d9534f;
  font-size: 3rem;
  text-align: center;
}
.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #2e7d32;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
/* REGISTER MODAL */
.modal-sregister {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

/* SPINNER */
.spinner {
  border: 5px solid #eee;
  border-top: 5px solid #4caf50;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin: 15px auto;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}
/* SUCCESS BOX */
.success-box {
  background: #4caf50;
  color: white;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  animation: popIn 0.3s ease;
}

.success-icon {
  font-size: 40px;
  margin-bottom: 10px;
}

/* POP ANIMATION */
@keyframes popIn {
  from {
    transform: scale(0.7);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.terms-label {
  display: flex;
  align-items: center;
  gap: 8px; /* space between checkbox and text */
  font-size: 13px;
}

.terms-label input {
  width: 16px;
  height: 16px;
  cursor: pointer;
}
/* ================= TERMS WARNING ================= */
.terms-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.terms-warning {
  border: 2px solid #ffc107;
  background-color: #fff8e1;
  padding: 6px 10px;
  border-radius: 6px;
  animation: shake 0.3s;
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  50% { transform: translateX(3px); }
  75% { transform: translateX(-3px); }
  100% { transform: translateX(0); }
}
.remember-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;

  white-space: nowrap;   /* ⭐ THIS FIXES YOUR PROBLEM */
}


/* Optional: make checkbox slightly bigger */
.remember-label input[type="checkbox"] {
  transform: scale(1.2);
  cursor: pointer;
}

/* ================= HELP FLOATING BUTTON ================= */
/* ================= HELP MODAL ================= */
.help-modal {
  display: none;
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 320px;
  height: 420px;
  background: transparent;
  z-index: 9999;
}

/* CHAT BOX */
.help-box {
  width: 100%;
  height: 100%;
  background: white;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 5px 20px rgba(43, 233, 6, 0.3);
  overflow: hidden;
}

/* HEADER */
.help-header {
  background: #4caf50;
  color: white;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  font-weight: bold;
}

.help-close {
  cursor: pointer;
  font-size: 18px;
}

/* MESSAGES AREA */
.help-messages {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  background: #f5f5f5;

  display: flex;              /* ✅ IMPORTANT */
  flex-direction: column;     /* ✅ stack messages */
}


/* INPUT AREA */
.help-input {
  padding: 10px;
  border-top: 1px solid #ddd;
}
/* ================= CHAT MESSAGES ================= */
.bot-msg {
  background: #e0e0e0;
  padding: 8px 12px;
  border-radius: 10px;
  margin-bottom: 8px;

  margin-right: auto;  /* ✅ ensures LEFT */
  max-width: 80%;
  font-size: 14px;
}


.user-msg {
  background: #4caf50;
  color: white;
  padding: 8px 12px;
  border-radius: 10px;
  margin-bottom: 8px;

  margin-left: auto;   /* ✅ THIS moves to RIGHT */
  max-width: 80%;
  font-size: 14px;

  text-align: left;
}

.user-msg, .bot-msg {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= HELP OPTIONS ================= */
.help-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.help-options button {
  flex: 1 1 45%;
  background: #4caf50;
  color: white;
  border: none;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}

.help-options button:hover {
  background: #388e3c;
}
/* ================= HELP TEXTAREA ================= */
#helpInputArea textarea {
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  resize: none;
  font-family: Arial;
  font-size: 14px;
}


#helpBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: #00FF00; /* your theme green */
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  animation: pulse 1.5s infinite;
}

/* Pulse animation (wave effect) */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 166, 81, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(0, 166, 81, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 166, 81, 0);
  }
}

#helpBtn:hover {
  background: #388e3c;
  transform: scale(1.1);
}
.user-msg,
.bot-msg {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.5;

  width: fit-content;      /* ✅ grow naturally */
  max-width: 80%;          /* ✅ limit only when too long */
}
.long-msg {
  width: 100%;
  max-width: 100%;
}
#emojiPicker span {
  font-size: 20px;
  cursor: pointer;
  margin: 4px;
  display: inline-block;
  padding: 4px;
}

#emojiPicker span:hover {
  transform: scale(1.2);
  background: #eee;
  border-radius: 4px;
}
/* ===== M-Safe WALLET (msw) ===== */


.msw-header {
  margin-bottom: 20px;
}

.msw-header h2 {
  margin: 0;
}

.msw-header p {
  color: #666;
}

.msw-center {
  text-align: center;
  margin-top: 40px;
}

.msw-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media(max-width: 768px) {
  .msw-grid {
    grid-template-columns: 1fr;
  }
}

.msw-card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.msw-balance {
  background: linear-gradient(135deg, #4caf50, #007a3d);
  color: white;
}

.msw-balance h1 {
  margin-top: 10px;
  font-size: 32px;
}

.msw-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.msw-icon {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.msw-icon.small {
  font-size: 14px;
  margin-left: 5px;
}

.msw-badge {
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
}

.msw-badge.green {
  background: #00FF00;
  color: #155724;
}

.msw-badge.red {
  background: #f8d7da;
  color: #721c24;
}

.msw-qr canvas {
  display: block;
  margin: 10px auto;
}
.msw-inline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.msw-inline h1,
.msw-inline h2 {
  margin: 0;
}
.msw-label {
  display: block;
  font-size: 30px;     /* 👈 bigger */
  font-weight: 700;    /* 👈 strong bold */
  color: #222;
  margin-bottom: 8px;
}


.msw-balance .msw-label {
  color: #fff;
  font-weight: 800;
}
.msw-click {
  cursor: pointer;   /* 👈 THIS FIXES IT */
}

.settings-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
/* ===== PIN CARD (SMALL & CLEAN) ===== */
#pinCard {
  max-width: 420px;          /* limit width */
  margin: 20px auto;         /* center horizontally */
  padding: 20px 18px;        /* tighter spacing */
  border-radius: 12px;
}

/* Title spacing */
#pinCard h3 {
  font-size: 18px;
  margin-bottom: 15px;
  text-align: center;
}

/* Inputs tighter */
#pinCard .password-box {
  margin-bottom: 10px;
}

#pinCard input {
  padding: 10px;
  font-size: 14px;
}

/* Button styling */
#pinCard button {
  width: 100%;
  padding: 10px;
  margin-top: 8px;
  font-size: 14px;
  border-radius: 8px;
}

/* Danger button (reset) */
#pinCard button[style] {
  background: #e74c3c !important;
}

/* Info text */
#pinCard p {
  text-align: center;
  font-size: 12px;
  color: #888;
}

/* Divider spacing */
#pinCard hr {
  margin: 15px 0;
}

/* Message box */
#pinCard .msg-card {
  font-size: 13px;
  padding: 8px;
}
/* OTP MODAL BACKGROUND */
.otp-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);

  display: none;
  align-items: center;
  justify-content: center;

  z-index: 9999;
}

/* OTP CARD */
.otp-card {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  width: 320px;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

/* INPUT */
.otp-card input {
  width: 100%;
  padding: 12px;
  font-size: 20px;
  text-align: center;
  letter-spacing: 5px;
  border: 2px solid #ddd;
  border-radius: 8px;
  margin: 15px 0;
}

/* BUTTON */
.otp-card button {
  width: 100%;
  padding: 10px;
  background: #2e7d32;
  color: white;
  border: none;
  border-radius: 6px;
  margin-top: 10px;
  cursor: pointer;
}

/* CANCEL BUTTON */
.otp-cancel {
  background: #999 !important;
}

/* MESSAGE */
.otp-msg {
  margin-top: 10px;
  font-size: 14px;
}

/* STATES */
.otp-msg.success {
  color: green;
}

.otp-msg.error {
  color: red;
}

/* ANIMATION */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
/* ===== WALLET PIN SPINNER ===== */
.wallet-pin-spinner {
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-top: 3px solid transparent;
  border-radius: 50%;
  display: inline-block;
  margin-left: 10px;
  animation: walletPinSpin 0.7s linear infinite;
  vertical-align: middle;
}

@keyframes walletPinSpin {
  to {
    transform: rotate(360deg);
  }
}
/* OTP BOXES */
.otp-boxes {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 15px 0;
}

.otp-digit {
  width: 45px;
  height: 50px;
  text-align: center;
  font-size: 20px;
  border: 2px solid #ddd;
  border-radius: 8px;
  outline: none;
  transition: 0.2s;
}

.otp-digit:focus {
  border-color: #3498db;
}

/* OTP BUTTON SPINNER */
.otp-spinner {
  width: 18px;
  height: 18px;
  border: 3px solid #ccc;
  border-top: 3px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 10px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
/* ===== M-Safe WITHDRAWAL PAGE ===== */

/* Withdraw button container */
.withdraw-btn-container {
  display: flex;
  justify-content: flex-end;
}

.btn-withdraw {
  width: 200px;  /* Adjust width as needed */
}

/* Buttons */
.btn-withdraw {
  background: #4caf50;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}

.btn-withdraw:hover {
  background: #388e3c;
}

.btn-withdraw-cancel {
  background: #e74c3c;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}

.btn-withdraw-cancel:hover {
  background: #c0392b;
}

/* ===== MODALS ===== */
.modal-withdrawal {
  display: none; /* hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-withdrawal-content {
  background: white;
  padding: 25px 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  position: relative;
}

.modal-withdrawal-content input {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
}

/* Modal headings */
.modal-withdrawal-content h3 {
  margin-bottom: 15px;
  color: #4caf50;
}

/* Buttons wrapper */
.modal-withdrawal-content div {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

/* For PIN modal relative positioning */
.modal-withdrawal-position {
  position: relative;
}

.eye-toggle-withdraw {
  position: absolute;
  right: 12px;
  top: 42px;
  cursor: pointer;
  color: #888;
}

/* ===== PROGRESS MODAL ===== */
.spinner-withdrawal {
  border: 5px solid #eee;
  border-top: 5px solid #4caf50;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin: 15px auto;
  animation: spin-withdrawal 1s linear infinite;
}

@keyframes spin-withdrawal {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== RESULT MODAL ===== */
.result-modal-withdrawal-content {
  background: white;
  padding: 25px 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  position: relative;
}

.result-icon-withdrawal {
  font-size: 50px;
  margin-bottom: 15px;
}

.tick-withdrawal {
  color: #4caf50;
}

.cross-withdrawal {
  color: #e74c3c;
}

.result-text-withdrawal {
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 480px) {
  .modal-withdrawal-content,
  .result-modal-withdrawal-content {
    width: 95%;
    padding: 20px;
  }

  .eye-toggle-withdraw {
    top: 38px;
  }
}
/* Filters row in one line */
.filters {
  display: flex;
  flex-wrap: nowrap; /* prevent wrapping */
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.filters div {
  display: flex;
  flex-direction: column;
  font-size: 13px;
}

.filters input[type="date"],
.filters input[type="text"] {
  width: 140px; /* fixed width for alignment */
}

.filters button {
  height: 36px;
  align-self: flex-end; /* align with inputs */
  padding: 0 15px;
  font-size: 13px;
}

/* Horizontal scroll wrapper for table */
.table-scroll {
  overflow-x: auto;   /* horizontal scroll only */
  width: 100%;
}

/* Keep table styling intact */
.withdraw-records-table {
  width: 100%;
  min-width: 1000px;  /* ensure scroll if needed */
  border-collapse: collapse;
}

/* Keep green header */
.withdraw-records-table th {
  background-color: #4caf50; /* green header */
  color: white;
  padding: 8px 10px;
  border: 1px solid #ddd;
  text-align: center;
}

/* Table cells */
.withdraw-records-table td {
  padding: 8px 10px;
  border: 1px solid #ddd;
  text-align: center;
}
.spinner-statement {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #1976d2;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 10px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.table-scroll {
  max-height: 400px;  /* adjust height for scroll */
  overflow-y: auto;    /* scroll vertically */
}
.table-scroll thead th {
  position: sticky;
  top: 0;             /* stick to top of scroll container */
  
  z-index: 1;          /* above table rows */
  background-color: #19d251;
}
