/* ADMIN PANEL STYLES */
:root {
  --admin-navy: #0a1628;
  --admin-gold: #c9973a;
  --admin-sidebar: #0f1f3d;
  --admin-card: #ffffff;
  --admin-bg: #f0f4f8;
  --admin-border: #e2e8f0;
  --admin-success: #22c55e;
  --admin-warning: #f59e0b;
  --admin-danger: #ef4444;
  --admin-info: #3b82f6;
  --font: 'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { font-family: var(--font); background: var(--admin-bg); color: #1a202c; margin: 0; }

/* SIDEBAR */
.admin-sidebar {
  width: 260px;
  min-height: 100vh;
  background: var(--admin-sidebar);
  position: fixed;
  left: 0; top: 0; bottom: 0;
  overflow-y: auto;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-brand {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.sidebar-brand h5 { color: #fff; font-size: 1rem; margin: 0; font-family: Georgia, serif; }
.sidebar-brand small { color: var(--admin-gold); font-size: 0.68rem; letter-spacing: 2px; text-transform: uppercase; }

.sidebar-nav { padding: 16px 0; }

.sidebar-section-title {
  padding: 8px 20px;
  font-size: 0.66rem;
  font-weight: 700;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 16px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: rgba(255,255,255,0.65);
  font-size: 0.87rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  border-left: 3px solid transparent;
}

.sidebar-link i { width: 18px; text-align: center; font-size: 0.9rem; }
.sidebar-link:hover { color: #fff; background: rgba(255,255,255,0.06); }
.sidebar-link.active { color: var(--admin-gold); border-left-color: var(--admin-gold); background: rgba(201,151,58,0.08); }

.sidebar-badge {
  margin-left: auto;
  background: var(--admin-gold);
  color: var(--admin-sidebar);
  border-radius: 50px;
  padding: 2px 8px;
  font-size: 0.68rem;
  font-weight: 700;
}

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

.admin-topbar {
  background: #fff;
  padding: 16px 28px;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.topbar-title { font-size: 1.1rem; font-weight: 700; color: var(--admin-navy); margin: 0; }
.topbar-user { display: flex; align-items: center; gap: 10px; }

.user-avatar {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--admin-navy), #1e3a6e);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--admin-gold); font-weight: 700; font-size: 0.85rem;
}

.admin-content { padding: 28px; flex: 1; }

/* CARDS */
.stat-card {
  background: var(--admin-card);
  border-radius: 14px;
  padding: 24px;
  border: 1px solid var(--admin-border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.stat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }

.stat-card-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.stat-card-num {
  font-family: Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--admin-navy);
  line-height: 1;
}

.stat-card-label { font-size: 0.82rem; color: #718096; margin-top: 4px; }

.stat-card-change {
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
}

.stat-card-change.up { color: var(--admin-success); }
.stat-card-change.down { color: var(--admin-danger); }

/* SECTION CARDS */
.admin-card {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  border: 1px solid var(--admin-border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  margin-bottom: 24px;
}

.admin-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--admin-navy);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--admin-border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-card-title i { color: var(--admin-gold); }

/* TABLE */
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.87rem; }
.admin-table th { padding: 12px 16px; text-align: left; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #718096; background: #f8fafc; border-bottom: 2px solid var(--admin-border); }
.admin-table td { padding: 14px 16px; border-bottom: 1px solid var(--admin-border); color: #2d3748; vertical-align: middle; }
.admin-table tr:hover td { background: #f8fafc; }
.admin-table tr:last-child td { border-bottom: none; }

/* BADGES */
.status-badge {
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.new { background: rgba(59,130,246,0.12); color: #3b82f6; }
.status-badge.contacted { background: rgba(245,158,11,0.12); color: #f59e0b; }
.status-badge.scheduled { background: rgba(201,151,58,0.15); color: var(--admin-gold); }
.status-badge.completed { background: rgba(34,197,94,0.12); color: #22c55e; }
.status-badge.cancelled { background: rgba(239,68,68,0.1); color: #ef4444; }

/* BUTTONS */
.btn-admin-primary {
  background: linear-gradient(135deg, var(--admin-navy), #1e3a6e);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-admin-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(10,22,40,0.25); }

.btn-admin-gold {
  background: linear-gradient(135deg, var(--admin-gold), #e8b555);
  color: var(--admin-navy);
  border: none;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-admin-gold:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201,151,58,0.3); }

.btn-admin-sm {
  padding: 6px 14px;
  font-size: 0.78rem;
  border-radius: 6px;
}

.btn-admin-danger { background: #fee2e2; color: var(--admin-danger); border: none; padding: 6px 14px; border-radius: 6px; font-size: 0.78rem; font-weight: 600; cursor: pointer; transition: all 0.2s ease; }
.btn-admin-danger:hover { background: var(--admin-danger); color: #fff; }

/* UPLOAD ZONE */
.upload-zone {
  border: 2px dashed var(--admin-border);
  border-radius: 14px;
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f8fafc;
}

.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--admin-gold);
  background: rgba(201,151,58,0.04);
}

.upload-zone i { font-size: 2.5rem; color: #cbd5e0; margin-bottom: 12px; }
.upload-zone p { font-size: 0.9rem; color: #718096; margin: 0; }
.upload-zone small { color: #a0aec0; font-size: 0.78rem; }

/* FORM */
.admin-form-label { font-size: 0.82rem; font-weight: 600; color: var(--admin-navy); margin-bottom: 6px; display: block; }
.admin-form-control { width: 100%; border: 2px solid var(--admin-border); border-radius: 8px; padding: 10px 14px; font-size: 0.88rem; color: #2d3748; background: #fff; transition: border-color 0.2s; outline: none; }
.admin-form-control:focus { border-color: var(--admin-gold); box-shadow: 0 0 0 4px rgba(201,151,58,0.1); }

/* GRID PREVIEW */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }

.project-thumb {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #f0f4f8;
  border: 2px solid var(--admin-border);
  transition: all 0.2s ease;
}

.project-thumb img { width: 100%; height: 100%; object-fit: cover; }
.project-thumb:hover { border-color: var(--admin-gold); transform: scale(1.02); }

.project-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,22,40,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-thumb:hover .project-thumb-overlay { opacity: 1; }

/* LOGIN PAGE */
.admin-login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #0a1628, #132244);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-card {
  background: #fff;
  border-radius: 20px;
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .admin-content { padding: 16px; }
}
