/* ==========================================================================
   RETAILBOSS (retailboss.in) - ADMIN PORTAL STYLING
   ========================================================================== */

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

/* Auth / Login View */
.admin-login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: radial-gradient(circle at 50% 30%, rgba(37, 99, 235, 0.15) 0%, #090D16 80%);
}

.admin-login-box {
  background: rgba(17, 24, 39, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.admin-login-box .logo-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 16px auto;
  font-size: 26px;
}

/* Dashboard Layout */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 260px;
  background: #111827;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.admin-sidebar-logo {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 35px;
}

.admin-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  color: #94A3B8;
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.admin-nav-item:hover, .admin-nav-item.active {
  background: #2563EB;
  color: #FFFFFF;
}

.admin-main {
  flex: 1;
  padding: 35px;
  overflow-y: auto;
  background: #090D16;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 35px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-topbar h1 {
  font-size: 24px;
  color: #FFFFFF;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 35px;
}

.admin-stat-card {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.admin-stat-card .num {
  font-size: 28px;
  font-weight: 800;
  color: #60A5FA;
  margin-bottom: 4px;
}

.admin-stat-card .label {
  font-size: 12px;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Tab contents */
.admin-tab-content {
  display: none;
}

.admin-tab-content.active {
  display: block;
}

.admin-card {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: 28px;
  margin-bottom: 30px;
}

.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-card-header h3 {
  color: #FFFFFF;
  font-size: 18px;
}

/* Form Styles in Dark Mode */
.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.admin-form-group {
  margin-bottom: 18px;
}

.admin-form-group.full-width {
  grid-column: span 2;
}

.admin-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #CBD5E1;
  margin-bottom: 8px;
}

.admin-form-group input, .admin-form-group textarea, .admin-form-group select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #1E293B;
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 14px;
}

.admin-form-group input:focus, .admin-form-group textarea:focus, .admin-form-group select:focus {
  outline: none;
  border-color: #3B82F6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* Data Table in Admin */
.admin-table-wrapper {
  overflow-x: auto;
}

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

.admin-table th, .admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
}

.admin-table th {
  background: #1E293B;
  color: #94A3B8;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.05em;
}

.status-select {
  padding: 6px 10px;
  border-radius: 6px;
  background: #1E293B;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 12px;
  font-weight: 600;
}

.badge-software {
  background: rgba(37, 99, 235, 0.2);
  color: #93C5FD;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.btn-whatsapp-xs {
  background: #25D366;
  color: #FFF !important;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  display: inline-block;
}

.hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; }
  .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-form-grid { grid-template-columns: 1fr; }
  .admin-form-group.full-width { grid-column: span 1; }
}
