/* ===== ADMIN PANEL CSS ===== */
:root {
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --primary-light: #e0f2fe;
  --secondary: #10b981;
  --secondary-light: #d1fae5;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --dark: #0f172a;
  --dark-2: #1e293b;
  --sidebar-bg: #0f172a;
  --gray: #64748b;
  --gray-light: #f1f5f9;
  --white: #ffffff;
  --shadow: 0 2px 15px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.10);
  --radius: 14px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;
  --font-main: 'Plus Jakarta Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-main); background: var(--gray-light); color: var(--dark); line-height: 1.6; }
img { max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ===== LAYOUT ===== */
.admin-wrapper { display: flex; min-height: 100vh; }

/* ===== SIDEBAR ===== */
.sidebar {
  width: 260px;
  background: var(--sidebar-bg);
  color: var(--white);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0;
  z-index: 200;
  transition: var(--transition);
  overflow-y: auto;
}
.sidebar-header {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-logo {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 1.1rem; font-weight: 800;
}
.sidebar-logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.sidebar-nav { flex: 1; padding: 1rem 0; }
.nav-section-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  padding: 0.75rem 1.5rem 0.4rem;
}
.nav-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  color: rgba(255,255,255,0.65);
  font-weight: 600; font-size: 0.9rem;
  border-radius: 0;
  transition: var(--transition);
  cursor: pointer;
  margin: 0.1rem 0.75rem;
  border-radius: var(--radius-sm);
}
.nav-item:hover, .nav-item.active {
  background: rgba(14,165,233,0.15);
  color: var(--white);
}
.nav-item.active { background: var(--primary); color: var(--white); }
.nav-icon { font-size: 1.1rem; width: 20px; text-align: center; }
.sidebar-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.user-info {
  display: flex; align-items: center; gap: 0.75rem;
}
.user-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem;
}
.user-name { font-size: 0.9rem; font-weight: 700; }
.user-role { font-size: 0.75rem; color: rgba(255,255,255,0.5); }

/* ===== MAIN CONTENT ===== */
.main-content {
  margin-left: 260px;
  flex: 1;
  display: flex; flex-direction: column;
  min-height: 100vh;
}

/* ===== TOPBAR ===== */
.topbar {
  background: var(--white);
  padding: 0 2rem;
  height: 65px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: var(--shadow);
  position: sticky; top: 0; z-index: 100;
}
.topbar-left { display: flex; align-items: center; gap: 1rem; }
.topbar-title { font-size: 1.1rem; font-weight: 700; }
.topbar-right { display: flex; align-items: center; gap: 1rem; }
.topbar-btn {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  border: none; cursor: pointer;
  background: var(--gray-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}
.topbar-btn:hover { background: var(--primary-light); }
.notification-badge {
  position: relative;
}
.badge-dot {
  position: absolute; top: -2px; right: -2px;
  width: 10px; height: 10px;
  background: var(--danger);
  border-radius: 50%;
  border: 2px solid var(--white);
}

/* ===== PAGE CONTENT ===== */
.page-content { padding: 2rem; flex: 1; }
.page-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap; gap: 1rem;
}
.page-title { font-size: 1.4rem; font-weight: 800; }
.breadcrumb { font-size: 0.82rem; color: var(--gray); margin-top: 0.2rem; }

/* ===== STAT CARDS ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 1.2rem;
  transition: var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.stat-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; flex-shrink: 0;
}
.stat-icon.blue { background: var(--primary-light); }
.stat-icon.green { background: var(--secondary-light); }
.stat-icon.yellow { background: var(--warning-light); }
.stat-icon.red { background: var(--danger-light); }
.stat-num { font-size: 2rem; font-weight: 800; line-height: 1; }
.stat-label { font-size: 0.82rem; color: var(--gray); margin-top: 0.2rem; }
.stat-change { font-size: 0.75rem; font-weight: 700; margin-top: 0.3rem; }
.stat-change.up { color: var(--secondary); }
.stat-change.down { color: var(--danger); }

/* ===== CARDS ===== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-header {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--gray-light);
  display: flex; justify-content: space-between; align-items: center;
}
.card-title { font-size: 1rem; font-weight: 700; }
.card-body { padding: 1.5rem; }

/* ===== TABLES ===== */
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.85rem 1rem; text-align: left; font-size: 0.88rem; }
th { background: var(--gray-light); font-weight: 700; color: var(--gray); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.5px; }
tr { border-bottom: 1px solid var(--gray-light); transition: var(--transition); }
tr:last-child { border-bottom: none; }
tr:hover { background: rgba(14,165,233,0.03); }
td { color: var(--dark); }

/* ===== STATUS BADGES ===== */
.status {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.75rem; font-weight: 700;
}
.status-pending { background: var(--warning-light); color: var(--warning); }
.status-process { background: var(--primary-light); color: var(--primary); }
.status-done { background: var(--secondary-light); color: var(--secondary); }
.status-cancel { background: var(--danger-light); color: var(--danger); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 700; font-size: 0.85rem;
  border: none; cursor: pointer;
  transition: var(--transition); text-decoration: none;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-success { background: var(--secondary); color: var(--white); }
.btn-success:hover { background: #059669; }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover { background: #dc2626; }
.btn-warning { background: var(--warning); color: var(--white); }
.btn-outline { background: transparent; border: 1.5px solid var(--gray-light); color: var(--gray); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.78rem; }
.btn-icon { width: 34px; height: 34px; padding: 0; justify-content: center; border-radius: var(--radius-sm); }

/* ===== FORMS ===== */
.form-group { margin-bottom: 1.2rem; }
.form-label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 0.4rem; }
.form-control {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-main); font-size: 0.88rem;
  color: var(--dark);
  transition: var(--transition); background: var(--white);
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(14,165,233,0.1); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--white);
  border-radius: var(--radius);
  width: 100%; max-width: 520px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  transform: translateY(20px); transition: var(--transition);
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-header {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--gray-light);
  display: flex; justify-content: space-between; align-items: center;
}
.modal-title { font-size: 1rem; font-weight: 700; }
.modal-close { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--gray); }
.modal-body { padding: 1.5rem; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--gray-light); display: flex; justify-content: flex-end; gap: 0.75rem; }

/* ===== FILTERS ===== */
.filters {
  display: flex; gap: 0.75rem; flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.filter-select {
  padding: 0.55rem 1rem;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-main); font-size: 0.85rem;
  background: var(--white);
  cursor: pointer;
}
.search-input-wrap { display: flex; align-items: center; gap: 0.5rem; flex: 1; max-width: 300px; }
.search-input {
  padding: 0.55rem 1rem;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-main); font-size: 0.85rem;
  width: 100%;
}
.search-input:focus { outline: none; border-color: var(--primary); }

/* ===== CHART AREA ===== */
.chart-placeholder {
  height: 200px;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray); font-size: 0.9rem;
}

/* ===== ALERT ===== */
.alert {
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.88rem; font-weight: 600;
  display: flex; align-items: center; gap: 0.6rem;
}
.alert-success { background: var(--secondary-light); color: var(--secondary); }
.alert-danger { background: var(--danger-light); color: var(--danger); }
.alert-info { background: var(--primary-light); color: var(--primary); }

/* ===== LOGIN PAGE ===== */
.login-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding: 2rem;
}
.login-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 3rem;
  width: 100%; max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.login-logo { text-align: center; margin-bottom: 2rem; }
.login-logo-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1rem;
}
.login-title { font-size: 1.4rem; font-weight: 800; text-align: center; }
.login-subtitle { color: var(--gray); text-align: center; font-size: 0.9rem; margin-top: 0.3rem; }

/* ===== SERVICE CARDS ADMIN ===== */
.service-grid-admin {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.service-card-admin {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.service-card-admin:hover { box-shadow: var(--shadow-lg); }
.service-card-img {
  height: 140px;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.service-card-body { padding: 1.2rem; }
.service-card-name { font-weight: 700; margin-bottom: 0.3rem; }
.service-card-price { color: var(--primary); font-weight: 700; margin-bottom: 0.8rem; }
.service-card-actions { display: flex; gap: 0.5rem; }

/* ===== GALLERY GRID ADMIN ===== */
.gallery-grid-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.gallery-item-admin {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 160px;
  background: var(--gray-light);
  display: flex; align-items: center; justify-content: center;
}
.gallery-item-admin .overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0; transition: var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.gallery-item-admin:hover .overlay { opacity: 1; }

/* ===== RESPONSIVE ADMIN ===== */
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-260px); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .page-content { padding: 1rem; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .filters { flex-direction: column; }
  .search-input-wrap { max-width: 100%; }
}
.site-logo{
  height:40px;
  width:auto;
  object-fit:contain;
}