/* Sash Admin Custom Styles */
:root {
  --sash-primary: #6c5ffc;
  --sash-primary-hover: #5b4ef0;
  --sash-sidebar-bg: #0f172a;
  --sash-sidebar-hover: #1e293b;
  --sash-sidebar-text: #94a3b8;
  --sash-sidebar-text-active: #ffffff;
  --sash-bg-body: #f8fafc;
  --sash-card-border: #e2e8f0;
  --sash-text-dark: #1e293b;
  --sash-text-muted: #64748b;
  --sash-success: #059669;
  --sash-danger: #e11d48;
  --sash-warning: #d97706;
  --sash-info: #0284c7;
}

body {
  font-family: 'Roboto', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--sash-bg-body);
  color: var(--sash-text-dark);
  margin: 0;
  padding: 0;
}

/* App Wrapper */
.app-wrapper {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 260px;
  background-color: var(--sash-sidebar-bg);
  color: var(--sash-sidebar-text);
  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.1);
}

.sidebar-header {
  height: 70px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand {
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-brand span {
  color: var(--sash-primary);
}

.sidebar-menu {
  list-style: none;
  padding: 20px 0;
  margin: 0;
}

.sidebar-category {
  padding: 12px 24px 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #475569;
}

.sidebar-item {
  margin: 2px 14px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  color: var(--sash-sidebar-text);
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.sidebar-link:hover, .sidebar-link.active {
  background-color: var(--sash-sidebar-hover);
  color: var(--sash-sidebar-text-active);
}

.sidebar-link.active {
  background-color: var(--sash-primary);
}

/* Main Content Area */
.main-content {
  margin-left: 260px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Top Navigation Bar */
.top-navbar {
  height: 70px;
  background-color: #ffffff;
  border-bottom: 1px solid var(--sash-card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  position: sticky;
  top: 0;
  z-index: 900;
}

.top-navbar-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--sash-text-dark);
}

.admin-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sash-primary), #8b5cf6);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Page Body */
.page-body {
  padding: 30px;
}

/* Metric Cards */
.stat-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--sash-card-border);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.stat-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.icon-purple { background-color: #f3e8ff; color: #9333ea; }
.icon-blue { background-color: #e0f2fe; color: #0284c7; }
.icon-amber { background-color: #fef3c7; color: #d97706; }
.icon-emerald { background-color: #d1fae5; color: #059669; }

.stat-title {
  font-size: 0.85rem;
  color: var(--sash-text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--sash-text-dark);
  margin-top: 4px;
}

/* Custom Nav Tabs */
.nav-tabs-custom {
  border-bottom: 2px solid var(--sash-card-border);
  margin-bottom: 24px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.nav-tabs-custom .nav-link {
  border: none;
  background: transparent;
  color: var(--sash-text-muted);
  font-weight: 600;
  padding: 12px 20px;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.nav-tabs-custom .nav-link.active {
  color: var(--sash-primary);
  border-bottom-color: var(--sash-primary);
}

.nav-tabs-custom .nav-link:hover {
  color: var(--sash-primary);
}

/* Data Tables Card */
.card-table {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--sash-card-border);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  overflow: hidden;
}

.table-custom {
  width: 100%;
  margin-bottom: 0;
}

.table-custom th {
  background-color: #f8fafc;
  color: #475569;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--sash-card-border);
}

.table-custom td {
  padding: 16px 20px;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.9rem;
}

/* Status Badges */
.badge-status {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
}

.badge-registered { background-color: #e2e8f0; color: #475569; }
.badge-sent { background-color: #e0f2fe; color: #0284c7; }
.badge-pending { background-color: #fef3c7; color: #b45309; }
.badge-approved { background-color: #d1fae5; color: #047857; }
.badge-failed { background-color: #ffe4e6; color: #be123c; }
.badge-payagain { background-color: #ffedd5; color: #c2410c; }
.badge-banksent { background-color: #dcfce7; color: #15803d; }

/* Icon-only Action Buttons */
.btn-action-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-icon-action {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.btn-icon-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.12);
}

.btn-approve-icon {
  background-color: #10b981;
  color: white;
}
.btn-approve-icon:hover { background-color: #059669; }

.btn-failed-icon {
  background-color: #f43f5e;
  color: white;
}
.btn-failed-icon:hover { background-color: #e11d48; }

.btn-payagain-icon {
  background-color: #f59e0b;
  color: white;
}
.btn-payagain-icon:hover { background-color: #d97706; }

.btn-eye-details {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--sash-card-border);
  background-color: #f8fafc;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-eye-details:hover {
  background-color: var(--sash-primary);
  color: #ffffff;
  border-color: var(--sash-primary);
}