/* Alendei Theme - Payment Module CSS */
:root {
  --bg-color: #f8faf8;
  --text-main: #0a0a0a;
  --text-muted: #5f6b5f;
  --card-bg: #ffffff;
  --border-color: #dde6dd;
  --primary-color: #1a7a3d;
  --primary-hover: #145e2e;
  --accent-light: #e8f5ec;
  --highlight-orange: #FF6B00;
  --danger-color: #dc2626;
  --success-color: #16a34a;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 30px rgba(26, 122, 61, 0.08);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}

/* Header */
.alendei-header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.brand-name {
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--primary-color);
  letter-spacing: -0.5px;
}

.badge-secure {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-light);
  color: var(--primary-color);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
}

/* Main Container */
.main-wrapper {
  flex: 1;
  max-width: 800px;
  width: 100%;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
}

/* Card */
.payment-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.payment-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(135deg, #137a30 0%, #1fa04a 50%, #27b254 100%);
}

.card-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.card-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

/* Step Wizard */
.wizard-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  position: relative;
}

.wizard-steps::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: var(--border-color);
  z-index: 1;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  position: relative;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 6px;
  transition: all 0.3s ease;
}

.step-item.active .step-number {
  border-color: var(--primary-color);
  background: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 0 0 4px var(--accent-light);
}

.step-item.completed .step-number {
  border-color: var(--primary-color);
  background: var(--accent-light);
  color: var(--primary-color);
}

.step-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.step-item.active .step-label {
  color: var(--primary-color);
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #fdfdfd;
  font-size: 1rem;
  color: var(--text-main);
  transition: all 0.2s ease;
  outline: none;
}

.form-control:focus {
  border-color: var(--primary-color);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(26, 122, 61, 0.12);
}

.input-icon-group {
  position: relative;
}

.input-icon-group .form-control {
  padding-left: 2.75rem;
}

.input-icon-group .input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Customer Summary Card */
.customer-summary-box {
  background: var(--accent-light);
  border: 1px solid rgba(26, 122, 61, 0.2);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px dashed rgba(26, 122, 61, 0.15);
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-key {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
}

.summary-value {
  font-size: 0.92rem;
  color: var(--text-main);
  font-weight: 700;
}

/* Buttons */
.btn-primary {
  width: 100%;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #137a30 0%, #1fa04a 50%, #27b254 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(26, 122, 61, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 122, 61, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  background: #a3cea8;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Alert messages */
.alert {
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-danger {
  background: #fef2f2;
  color: var(--danger-color);
  border: 1px solid #fecaca;
}

.alert-success {
  background: #f0fdf4;
  color: var(--success-color);
  border: 1px solid #bbf7d0;
}

/* Footer */
.alendei-footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
  background: #ffffff;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--primary-color);
}

/* Spinner Loader */
.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Utility */
.hidden {
  display: none !important;
}

/* ==================== ADMIN LAYOUT (SLEEK LEFT SIDEBAR & SLIM FIT DASHBOARD) ==================== */
body.admin-body {
  margin: 0;
  padding: 0;
  display: flex !important;
  flex-direction: row !important;
  min-height: 100vh;
  background-color: #f6f8fa;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1e293b;
}

/* Sidebar Styling */
.admin-sidebar {
  width: 240px;
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.02);
}

.sidebar-brand-section {
  padding: 1.2rem 1.25rem 1rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-brand-section img {
  height: 28px !important;
  max-height: 28px !important;
  max-width: 110px !important;
  width: auto !important;
  object-fit: contain !important;
}

.sidebar-badge {
  font-size: 0.7rem;
  font-weight: 700;
  background: #e8f5ec;
  color: #1a7a3d;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #c8e6d2;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.sidebar-menu {
  padding: 1.25rem 0.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.sidebar-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.8px;
  padding: 0.5rem 0.75rem 0.25rem 0.75rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.6rem 0.85rem;
  color: #64748b;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.86rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.sidebar-link i {
  font-size: 0.95rem;
  width: 18px;
  text-align: center;
  color: #94a3b8;
  transition: all 0.2s ease;
}

.sidebar-link:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.sidebar-link:hover i {
  color: #1a7a3d;
}

.sidebar-link.active {
  background: #e8f5ec;
  color: #1a7a3d;
  font-weight: 700;
}

.sidebar-link.active i {
  color: #1a7a3d;
}

.sidebar-user-footer {
  padding: 0.85rem 1rem;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafafa;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1a7a3d;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
}

.user-details {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.user-role {
  font-size: 0.7rem;
  color: #64748b;
}

.btn-logout-compact {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ef4444;
  text-decoration: none;
  background: #fef2f2;
  border: 1px solid #fee2e2;
  transition: all 0.2s ease;
  font-size: 0.85rem;
}

.btn-logout-compact:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

/* Main Content Area */
.admin-main-wrapper {
  margin-left: 240px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #f8fafc;
  min-height: 100vh;
}

.admin-top-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.85rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 900;
}

.top-header-title h2 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.2px;
  margin: 0;
}

.top-header-title p {
  font-size: 0.8rem;
  color: #64748b;
  margin: 2px 0 0 0;
}

.admin-container {
  padding: 1.5rem 1.75rem;
  max-width: 1350px;
  width: 100%;
  margin: 0 auto;
}

/* Slim Stats Cards */
.slim-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.slim-stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
}

.slim-stat-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.stat-icon.icon-revenue { background: #e8f5ec; color: #1a7a3d; }
.stat-icon.icon-today { background: #eff6ff; color: #2563eb; }
.stat-icon.icon-success { background: #f0fdf4; color: #16a34a; }
.stat-icon.icon-failed { background: #fef2f2; color: #dc2626; }

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-info .stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.stat-info .stat-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  margin-top: 3px;
}

/* Slim Card Box */
.slim-card-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  margin-bottom: 1.5rem;
}

.card-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.card-title-bar h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

/* Slim Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.slim-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.slim-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 9px 12px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}

.slim-table td {
  padding: 9px 12px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
}

.slim-table tbody tr:last-child td {
  border-bottom: none;
}

.slim-table tbody tr:hover {
  background: #f8fafc;
}

/* Badges */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.status-pill-success { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.status-pill-failed { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.status-pill-pending { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }

/* Action Buttons */
.btn-compact-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1a7a3d;
  color: #ffffff;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  font-size: 0.83rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-compact-primary:hover {
  background: #145e2e;
}

.btn-compact-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  font-size: 0.83rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-compact-outline:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .admin-sidebar {
    width: 56px;
  }
  .sidebar-brand-section img, .sidebar-badge, .sidebar-label, .sidebar-link span, .user-details {
    display: none;
  }
  .sidebar-brand-section {
    padding: 0.8rem;
    justify-content: center;
  }
  .sidebar-link {
    justify-content: center;
    padding: 0.75rem 0;
  }
  .sidebar-user-footer {
    padding: 0.5rem;
    justify-content: center;
  }
  .btn-logout-compact {
    display: none;
  }
  .admin-main-wrapper {
    margin-left: 56px;
  }
}

