/* Wallet Page Responsive Styles */
.wallet-balance {
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border-radius: 0.2rem;
  margin: 0;
  line-height: 1.2;
}

.wallet-header {
  flex-wrap: nowrap;
  gap: 0.25rem;
  margin: 0 !important;
  padding: 0.25rem 0;
}

.wallet-actions {
  display: flex;
  gap: 0.25rem;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
}

.wallet-recharge-card .input-group {
  flex-wrap: nowrap;
  width: 100%;
  margin: 0;
  padding: 0.25rem 0;
}

.wallet-recharge-card .form-control {
  min-width: 100px;
  width: 100%;
}

.wallet-recharge-card .btn {
  white-space: nowrap;
  min-width: 90px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wallet-recharge-card .input-group-text {
  padding: 0.5rem 0.75rem;
}

.transaction-table th,
.transaction-table td {
  padding: 0.75rem 0.5rem;
}

.transaction-table .transaction-amount {
  white-space: nowrap;
}

.transaction-table .transaction-description {
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  .wallet-recharge-card .input-group {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .wallet-recharge-card .input-group > * {
    width: 100%;
    border-radius: 0.375rem !important;
  }
  
  .wallet-recharge-card .input-group .form-control {
    border-radius: 0.375rem !important;
    border: 1px solid #dee2e6;
  }
  
  .wallet-recharge-card .input-group .btn {
    margin-top: 0;
  }
  
  .transaction-table th,
  .transaction-table td {
    padding: 0.5rem 0.25rem;
    font-size: 0.85rem;
  }
  
  .transaction-table .badge {
    font-size: 0.75rem;
    padding: 0.25em 0.5em;
  }
  
  .transaction-table .transaction-type {
    min-width: 70px;
  }
  
  .transaction-table .transaction-status {
    min-width: 90px;
  }
}

@media (max-width: 767.98px) {
  .wallet-header {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 1rem;
  }
  
  .wallet-header .d-flex {
    width: 100%;
    justify-content: space-between;
  }
  
  .wallet-balance {
    margin-top: 0.5rem;
    width: 100%;
    justify-content: center;
  }
  
  .wallet-header .badge {
    width: 100%;
    justify-content: center;
    max-width: 100%;
  }
  
  .transaction-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: -ms-autohiding-scrollbar;
    margin: 0;
    font-size: 0.9em;
  }
  
  .transaction-table table {
    min-width: 100%;
    margin-bottom: 0;
  }
  
  .transaction-table th,
  .transaction-table td {
    white-space: nowrap;
    padding: 0.3rem 0.4rem !important;
    line-height: 1.2;
  }
  
  .transaction-table .transaction-mobile-details {
    display: none;
  }
  
  @media (max-width: 575.98px) {
    .transaction-table th,
    .transaction-table td {
      padding: 0.5rem !important;
      font-size: 0.8125rem;
    }
    
    .transaction-table .transaction-mobile-details {
      display: block;
      font-size: 0.75rem;
      color: #6c757d;
      margin-top: 0.25rem;
    }
    
    .transaction-table .transaction-amount {
      font-weight: 600;
    }
  }
}

/* Responsive Base Styles */
:root {
  --sidebar-width: 280px;
  --header-height: 64px;
  --primary-color: #4f46e5;
  --secondary-color: #6b7280;
  --success-color: #10b981;
  --danger-color: #ef4444;
  --light-bg: #f9fafb;
  --dark-bg: #1f2937;
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Base Layout */

.main-content {
    transition: margin-left 0.3s ease-in-out;
}

@media (max-width: 991.98px) {
    .main-content {
        margin-left: 0 !important;
        width: 100%;
        padding: 1rem;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }

    .sidebar.show {
        transform: translateX(0);
    }
}

body {
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--light-bg);
  color: #1f2937;
}

/* Full-Screen Mobile View */
@media (max-width: 991.98px) {
  .main-content {
    width: 100%;
    margin-left: 0;
    transition: margin-left 0.3s ease;
  }

  .sidebar {
    left: -100%;
    transition: left 0.3s ease;
  }

  .sidebar.show {
    left: 0;
  }

  body.sidebar-open .main-content {
    margin-left: var(--sidebar-width);
  }
}

/* Container */
.container {
  width: 100%;
  padding-right: 1rem;
  padding-left: 1rem;
  margin-right: auto;
  margin-left: auto;
}

/* Responsive Typography */
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 600;
  line-height: 1.2;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  border-radius: 0.375rem;
  transition: all 0.2s ease-in-out;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: #4338ca;
  transform: translateY(-1px);
}

/* Cards */
.card {
  background: white;
  border-radius: 0.5rem;
  box-shadow: var(--card-shadow);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.card-header {
  padding: 1rem 1.25rem;
  background-color: white;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-weight: 600;
}

.card-body {
  padding: 1.25rem;
}

/* Forms */
.form-control {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #374151;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  border-color: var(--primary-color);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.25);
}

/* Tables */
.table {
  width: 100%;
  margin-bottom: 1rem;
  color: #1f2937;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 0.75rem;
  vertical-align: top;
  border-top: 1px solid #e5e7eb;
}

.table thead th {
  vertical-align: bottom;
  border-bottom: 2px solid #e5e7eb;
  background-color: #f9fafb;
  font-weight: 600;
  text-align: left;
}

/* Responsive Utilities */
.text-center { text-align: center; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-4 { margin-top: 1.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }

/* Responsive Breakpoints */
/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
  
  h1 { font-size: 2.25rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.75rem; }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
  
  .row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
  }
  
  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding-right: 15px;
    padding-left: 15px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* Extra extra large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
    font-size: 12pt;
  }
  
  .container {
    width: auto;
    max-width: 100%;
    padding: 0;
  }
}
