/* 
  Luxe Vision Salon - Ultra Luxury & Executive Admin Panel Style
  Designed for maximum elegance, eye comfort, premium UI, and superior form usability.
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Ultra Premium Dark & Gold Aesthetic */
  --admin-bg: #090d16;
  --admin-sidebar-bg: #0f1523;
  --admin-card-bg: #141c2c;
  --admin-card-hover: #1a2438;
  --admin-border: rgba(255, 255, 255, 0.08);
  --admin-border-gold: rgba(223, 177, 91, 0.3);
  
  --primary-gold: #dfb15b;
  --primary-gold-light: #f5d796;
  --primary-gold-gradient: linear-gradient(135deg, #dfb15b 0%, #b8860b 100%);
  
  --text-primary: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #090d16;
  
  --badge-pending-bg: rgba(245, 158, 11, 0.15);
  --badge-pending-border: rgba(245, 158, 11, 0.4);
  --badge-pending-color: #fbbf24;

  --badge-approved-bg: rgba(16, 185, 129, 0.15);
  --badge-approved-border: rgba(16, 185, 129, 0.4);
  --badge-approved-color: #34d399;

  --badge-rejected-bg: rgba(239, 68, 68, 0.15);
  --badge-rejected-border: rgba(239, 68, 68, 0.4);
  --badge-rejected-color: #f87171;

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-main: 0 10px 30px rgba(0, 0, 0, 0.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--admin-bg);
  color: var(--text-primary);
  display: flex;
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Sidebar Styling */
.admin-sidebar {
  width: 270px;
  background-color: var(--admin-sidebar-bg);
  border-right: 1px solid var(--admin-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 5px 0 25px rgba(0, 0, 0, 0.3);
}

.sidebar-header {
  padding: 2rem 1.8rem;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(180deg, rgba(223, 177, 91, 0.05) 0%, transparent 100%);
}

.sidebar-header i {
  font-size: 1.8rem;
  color: var(--primary-gold);
  filter: drop-shadow(0 0 8px rgba(223, 177, 91, 0.4));
}

.sidebar-header h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.sidebar-menu {
  list-style: none;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.95rem 1.2rem;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.sidebar-menu a:hover {
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  transform: translateX(4px);
}

.sidebar-menu a.active {
  background: linear-gradient(135deg, rgba(223, 177, 91, 0.18) 0%, rgba(223, 177, 91, 0.05) 100%);
  color: var(--primary-gold-light);
  border-color: var(--admin-border-gold);
  box-shadow: 0 4px 15px rgba(223, 177, 91, 0.1);
  font-weight: 600;
}

.sidebar-menu a.active i {
  color: var(--primary-gold);
}

.sidebar-footer {
  margin-top: auto;
  padding: 1.5rem;
  border-top: 1px solid var(--admin-border);
}

/* Main Content Area */
.admin-main {
  margin-left: 270px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: radial-gradient(circle at 90% 10%, rgba(223, 177, 91, 0.05) 0%, transparent 60%);
}

.admin-header {
  height: 80px;
  background-color: rgba(15, 21, 35, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  position: sticky;
  top: 0;
  z-index: 90;
}

.admin-header h1 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--text-primary);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--admin-card-bg);
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--admin-border);
}

.user-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary-gold-light);
}

.admin-content {
  padding: 2.5rem;
  flex: 1;
}

/* Stat Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.8rem;
  margin-bottom: 2.5rem;
}

.stat-card {
  background-color: var(--admin-card-bg);
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-main);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--admin-border-gold);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.stat-info h3 {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.stat-info p {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(223, 177, 91, 0.12);
  color: var(--primary-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  border: 1px solid rgba(223, 177, 91, 0.2);
}

/* Luxury Cards & Section Containers */
.card-table {
  background-color: var(--admin-card-bg);
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-main);
  transition: border-color 0.3s ease;
}

.card-table:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.table-header {
  padding: 1.6rem 2rem;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.2rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
}

.table-header h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
}

/* High-Usability & Eye-Friendly Form Inputs */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-gold-light);
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-control {
  background-color: #0b111c;
  border: 1.5px solid var(--admin-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.3rem;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  outline: none;
  transition: all 0.25s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.form-control::placeholder {
  color: #64748b;
  font-weight: 400;
}

.form-control:focus {
  border-color: var(--primary-gold);
  background-color: #0e1624;
  box-shadow: 0 0 0 4px rgba(223, 177, 91, 0.18), inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

select.form-control {
  cursor: pointer;
  appearance: auto;
}

select.form-control option {
  background-color: #141c2c;
  color: #ffffff;
  padding: 10px;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

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

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

table.admin-table th,
table.admin-table td {
  padding: 1.2rem 1.8rem;
  border-bottom: 1px solid var(--admin-border);
  font-size: 0.95rem;
}

table.admin-table th {
  background-color: rgba(0, 0, 0, 0.25);
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
}

table.admin-table tbody tr {
  transition: background-color 0.2s ease;
}

table.admin-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 600;
}

.badge-pending {
  background-color: var(--badge-pending-bg);
  border: 1px solid var(--badge-pending-border);
  color: var(--badge-pending-color);
}

.badge-approved {
  background-color: var(--badge-approved-bg);
  border: 1px solid var(--badge-approved-border);
  color: var(--badge-approved-color);
}

.badge-rejected {
  background-color: var(--badge-rejected-bg);
  border: 1px solid var(--badge-rejected-border);
  color: var(--badge-rejected-color);
}

/* Admin Buttons */
.btn-admin {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.25s ease;
  letter-spacing: 0.3px;
}

.btn-admin-gold {
  background: var(--primary-gold-gradient);
  color: var(--text-dark);
  box-shadow: 0 4px 15px rgba(223, 177, 91, 0.25);
}

.btn-admin-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(223, 177, 91, 0.4);
  color: var(--text-dark);
}

.btn-admin-approve {
  background-color: #10b981;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.btn-admin-approve:hover {
  background-color: #059669;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35);
}

.btn-admin-reject {
  background-color: #ef4444;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.btn-admin-reject:hover {
  background-color: #dc2626;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.35);
}

.btn-admin-delete {
  background-color: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-admin-delete:hover {
  background-color: #ef4444;
  color: #ffffff;
  border-color: transparent;
}

/* Responsive Admin */
@media (max-width: 992px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }
  .admin-sidebar.open {
    transform: translateX(0);
  }
  .admin-main {
    margin-left: 0;
  }
  .admin-header {
    padding: 0 1.5rem;
  }
  .admin-content {
    padding: 1.5rem;
  }
}
