/* FineRecharge - Admin Panel Dedicated Stylesheet */

.admin-shell {
  background-color: #0F172A;
  color: #F8FAFC;
  min-height: 100vh;
}

.admin-header {
  background-color: #1E293B;
  border-bottom: 1px solid #334155;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-brand-tag {
  background: #3B82F6;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.admin-stat-card {
  background-color: #1E293B;
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.admin-stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.admin-stat-title {
  font-size: 13px;
  font-weight: 600;
  color: #94A3B8;
}

.admin-stat-val {
  font-size: 28px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.5px;
}

.admin-stat-growth {
  font-size: 12px;
  font-weight: 700;
  color: #10B981;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Admin Tabs */
.admin-nav-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid #334155;
  padding-bottom: 12px;
  margin-bottom: 24px;
  overflow-x: auto;
}

.admin-tab-btn {
  background: #1E293B;
  color: #94A3B8;
  border: 1px solid #334155;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.admin-tab-btn:hover {
  background: #334155;
  color: #FFFFFF;
}

.admin-tab-btn.active {
  background: #0266F2;
  color: #FFFFFF;
  border-color: #0266F2;
}

/* Admin Tables */
.admin-table-container {
  background-color: #1E293B;
  border: 1px solid #334155;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  margin-bottom: 32px;
}

.admin-table-header {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #334155;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th {
  background-color: #0F172A;
  color: #94A3B8;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 20px;
  border-bottom: 1px solid #334155;
}

.admin-table td {
  padding: 16px 20px;
  font-size: 13.5px;
  color: #F1F5F9;
  border-bottom: 1px solid #334155;
}

.admin-table tr:hover td {
  background-color: #273549;
}

.admin-action-btn {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
}

.btn-credit {
  background-color: #059669;
  color: #FFFFFF;
}

.btn-credit:hover {
  background-color: #10B981;
}

.btn-debit {
  background-color: #DC2626;
  color: #FFFFFF;
}

.btn-debit:hover {
  background-color: #EF4444;
}

.btn-edit {
  background-color: #3B82F6;
  color: #FFFFFF;
}

.btn-refund {
  background-color: #D97706;
  color: #FFFFFF;
}

/* Hostinger Status Widget */
.hostinger-status-card {
  background: linear-gradient(135deg, #1E293B 0%, #172033 100%);
  border: 1px solid #3B82F6;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hostinger-badge {
  background-color: #6366F1;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Badges for Manual vs API and Ledger Credit/Debit */
.badge-mode {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-mode.api {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-mode.manual {
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.tag-credit {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 11px;
}

.tag-debit {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 11px;
}

/* Filter Card */
.admin-filter-card {
  background: #111C38;
  border: 1px solid #1E293B;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
}

.admin-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  align-items: flex-end;
}

.admin-filter-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #94A3B8;
  margin-bottom: 6px;
}

.admin-filter-group input,
.admin-filter-group select {
  width: 100%;
  background: #0B1329;
  border: 1px solid #1E293B;
  border-radius: 8px;
  padding: 10px 12px;
  color: #FFF;
  font-size: 13px;
  box-sizing: border-box;
}

.admin-filter-group input:focus,
.admin-filter-group select:focus {
  border-color: #0266F2;
  outline: none;
}

/* Gateway Settings Selector */
.gateway-nav-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid #1E293B;
  padding-bottom: 12px;
}

.gateway-tab-btn {
  background: #0B1329;
  border: 1px solid #1E293B;
  color: #94A3B8;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gateway-tab-btn.active {
  background: #0266F2;
  color: #FFF;
  border-color: #0266F2;
}

.gateway-config-pane {
  background: #111C38;
  border: 1px solid #1E293B;
  border-radius: 16px;
  padding: 24px;
}

/* Mobile Responsiveness for Phones */
@media (max-width: 768px) {
  .admin-full-shell {
    flex-direction: column !important;
  }
  .admin-sidebar {
    width: 100% !important;
    height: auto !important;
    position: relative !important;
    padding: 12px 14px !important;
  }
  .admin-nav-list {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 8px !important;
    padding-bottom: 8px !important;
  }
  .admin-nav-item {
    white-space: nowrap !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
  }
  .admin-main-body {
    padding: 16px !important;
  }
  .admin-login-card {
    padding: 24px 18px !important;
  }
}

