/* Desktop Styles (Only applies on screens wider than 992px) */

/* 1. Sticky Footer + Background Fix */
body {
  /* Page ko poori height dene ke liye */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  
  /* Aapka background color (header/footer se match karne ke liye) */
  background-color: #37647e; 
  color: #FFFFFF;
}

/* Mobile elements ko hide karein */
.mbl-header-simple,
[data-include*="footer-mbl-tabbar.html"] {
  display: none !important;
}

/* Web elements ko show karein */
[data-include*="header-web.html"],
[data-include*="footer-web.html"] {
  display: block !important;
}

/* 2. Naya Desktop Layout Container (Dark Panel) */
.page-container-web {
  /* Sticky footer ke liye (yeh content grow karega) */
  flex-grow: 1; 

  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 columns */
  gap: 1.5rem;
  max-width: 1200px;
  margin: 2rem auto; /* Center mein */
  padding: 1.5rem;
  background-color: #1a1c22; /* Dark panel background (Aapke header jaisa) */
  border-radius: 8px;
  color: #FFFFFF; /* Text color inside panel */
}
.btn-register{
  background: var(--btn-accent);
  border:none; border-radius:10px; padding:.45rem 1rem; font-weight:600;
}
.btn-register:hover{ background: var(--btn-accent-hover); }
/* === Grid Columns (Aapke code se) === */
.web-column-1 {
  grid-column: 1 / 2;
}
.web-column-2 {
  grid-column: 2 / 3;
}
/* === END OF Grid Columns === */


/* 3. Balance Card (Dark Style) */
.balance-card {
  background-color: #23252b; /* Dark panel (Mobile jaisa blue nahi) */
  border: 1px solid #37647e; /* Aapka accent color */
  color: white;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 0;
}
.balance-label {
  font-size: 0.9rem;
  opacity: 0.8;
  margin: 0;
}
.balance-total {
  font-size: 2.2rem;
  margin: 0.25rem 0;
}
.balance-approx {
  font-size: 0.9rem;
  opacity: 0.8;
  margin: 0 0 1.5rem 0;
}
.balance-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.balance-card .balance-actions .btn { /* Selector specific kiya gaya */
  padding: 0.75rem 0.5rem;
  font-size: 0.9rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}
/* 4. Buttons (Specific selectors ke sath) */
.balance-card .balance-actions .btn-primary {
  background-color: #37647e; /* Primary color (Aapka diya hua) */
  color: white;
}
.balance-card .balance-actions .btn-secondary {
  background-color: transparent;
  color: white;
  border: 1px solid #37647e; /* Accent border */
}

/* Breakdown Card */
.breakdown-card {
  background: #23252b; /* Darker panel */
  margin: 0;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1.5rem; /* Space between cards */
  color: #FFFFFF;
}
.breakdown-card .label {
  font-size: 0.8rem;
  color: #a0a0a0;
  display: block;
}
.breakdown-card .value {
  font-size: 1rem;
  color: #FFFFFF;
  display: block;
  margin-top: 4px;
}
.breakdown-card .row {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
}
.breakdown-card .col { flex: 1; }
.breakdown-card .text-end { text-align: right; }

/* Tabs Container */
.tabs-container {
  margin: 0;
  background: #23252b; /* Darker panel */
  border-radius: 8px;
  padding: 1rem;
  height: 100%; /* Column ko fill kare */
  color: #FFFFFF;
}
.tabs {
  display: flex;
  gap: 1.5rem;
  border-bottom: 1px solid #3a3a3a; /* Darker border */
  margin-bottom: 1rem;
}
.tabs .tab {
  background: none;
  border: none;
  color: #a0a0a0;
  padding: 0.5rem 0;
  font-size: 1rem;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}
/* 5. Active Tab (Aapke naye color ke sath) */
.tabs .tab.active {
  color: #FFFFFF;
  border-bottom-color: #37647e; /* Primary color */
}
.no-data-placeholder {
  text-align: center;
  padding: 3rem 1rem;
  color: #a0a0a0;
}

/* === Modal Styles (Popups) === */
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; padding: 1rem;
}
.modal-content {
  background: #23252b; /* Dark panel */
  border-radius: 8px;
  width: 100%;
  max-width: 500px;
  color: #FFFFFF;
}
.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.5rem; border-bottom: 1px solid #3a3a3a;
}
.modal-header h4 { margin: 0; font-size: 1.2rem; color: #FFFFFF; }
.modal-header .btn-close {
  background: none; border: none; color: #a0a0a0;
  font-size: 1.5rem; cursor: pointer;
}
.modal-body { padding: 1.5rem; }

/* Spinner */
.spinner {
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-left-color: #37647e; /* Primary color */
  border-radius: 50%; width: 30px; height: 30px;
  animation: spin 1s linear infinite; margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Deposit Modal Styles */
.web-deposit-modal .network-tabs { display: flex; gap: 10px; }
.web-deposit-modal .network-tab {
  flex: 1; padding: 0.75rem; font-size: 1rem;
  border-radius: 6px; border: 1px solid #3a3a3a;
  background: #1a1c22; color: #a0a0a0; cursor: pointer;
}
.web-deposit-modal .network-tab.active {
  color: #37647e; /* Primary color */
  border-color: #37647e;
  background-color: rgba(55, 100, 126, 0.1);
}
.web-deposit-modal .qr-code-wrapper {
  background: white; padding: 1rem; border-radius: 8px;
  max-width: 240px; margin: 1.5rem auto;
}
.web-deposit-modal .address-box {
  display: flex; align-items: center; background: #1a1c22;
  border: 1px solid #3a3a3a; border-radius: 6px;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
}
.web-deposit-modal .address-text {
  flex: 1; font-size: 0.9rem; color: #FFFFFF;
  overflow-wrap: break-word; word-break: all;
}
.web-deposit-modal .btn-copy {
  background: #37647e; /* Primary color */
  color: white; border: none; border-radius: 4px;
  padding: 0.5rem 0.75rem; font-size: 0.8rem;
  margin-left: 10px; cursor: pointer;
}

/* Withdraw Modal & Password Modal Styles */
.modal-content .form-group { margin-bottom: 1rem; }
.modal-content .form-group label {
  display: block; font-size: 0.9rem;
  color: #a0a0a0; margin-bottom: 0.5rem;
}
.modal-content .form-control {
  width: 100%; background: #1a1c22;
  border: 1px solid #3a3a3a; color: #FFFFFF;
  padding: 0.75rem 1rem; border-radius: 6px;
  font-size: 1rem; box-sizing: border-box;
}
.modal-content .form-control::placeholder { color: #a0a0a0; }
.modal-content .network-tabs { display: flex; gap: 10px; }
.modal-content .network-tabs input[type="radio"] { display: none; }
.modal-content .network-tabs .network-tab {
  flex: 1; padding: 0.6rem; font-size: 0.9rem;
  border-radius: 6px; border: 1px solid #3a3a3a;
  background: #1a1c22; color: #a0a0a0;
  text-align: center; cursor: pointer;
}
.modal-content .network-tabs input[type="radio"]:checked + .network-tab {
  color: #37647e; /* Primary color */
  border-color: #37647e;
  background-color: rgba(55, 100, 126, 0.1);
}
.modal-content .fee-details { margin-bottom: 2rem; margin-top: 1rem; }
.modal-content .fee-details .row {
  display: flex; justify-content: space-between;
  margin-bottom: 0.75rem;
}
.modal-content .fee-details .label { font-size: 0.9rem; color: #a0a0a0; }
.modal-content .fee-details .value { font-size: 0.9rem; color: #FFFFFF; font-weight: 500; }

.modal-content .btn-primary-full {
  width: 100%; padding: 0.85rem; font-size: 1rem;
  background: #37647e; /* Primary color */
  color: white; border: none; border-radius: 6px; cursor: pointer;
}
.modal-content .btn-primary-full:disabled {
  background: #1a1c22; color: #a0a0a0; cursor: not-allowed;
}

/* Password Modals Specific */
#txn-password-modal .form-control {
  text-align: center; font-size: 1.2rem; letter-spacing: 0.2rem;
}
#txn-password-modal .error-message {
  color: #dc3545; font-size: 0.8rem;
  text-align: center; display: block; margin-top: 0.5rem;
}
.modal-content .modal-actions {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem; margin-top: 1.5rem;
}
.modal-content .modal-actions .btn-secondary {
  background: #3a3a3a; color: #FFFFFF;
  border: none; padding: 0.75rem;
  border-radius: 6px; cursor: pointer;
}
.modal-content .modal-actions .btn-primary {
  background: #37647e; /* Primary color */
  color: white; border: none; padding: 0.75rem;
  border-radius: 6px; cursor: pointer;
}
