:root {
  --bg-dark: #280d8b;
  --bg-dark-hover: #1e0a6b;
  --bg-dark-gradient: #1a085e;
  --bg-dark-gradient-soft: #3d1db3;
  --sidebar-gradient-end: #1f0a6a;
  --bg-light: #f5f3ef;
  --bg-light-hover: #eee8dc;
  --accent-gold: #c5a367;
  --accent-gold-text: #7a5a17;
  --text-white: #ffffff;
  --text-gray: #a0a0a0;
  --text-body: #111827;
  --text-dark: #1f2937;
  --text-heading: #0f172a;
  --text-muted: #475569;
  --text-soft: #64748b;
  --text-card-muted: #6b7280;
  --text-form-label: #666666;
  --text-default: #333333;
  --danger: #ff4d4d;
  --danger-text: rgb(185, 28, 28);
  --card-white: #ffffff;
  --input-bg: #fafafa;
  --input-border: #eeeeee;
  --input-readonly-bg: #ececec;
  --button-neutral: #e5e0d8;
  --button-neutral-hover: #d4c9b8;
  --card-icon-blue-bg: #eef2ff;
  --card-icon-blue-text: #4338ca;
  --card-icon-yellow-bg: #fefce8;
  --card-icon-yellow-text: #a16207;
  --card-icon-green-bg: #f0fdf4;
  --card-icon-green-text: #15803d;
  --transparent: transparent;
  --white-005: rgba(255, 255, 255, 0.05);
  --white-006: rgba(255, 255, 255, 0.06);
  --white-008: rgba(255, 255, 255, 0.08);
  --white-010: rgba(255, 255, 255, 0.10);
  --white-012: rgba(255, 255, 255, 0.12);
  --white-014: rgba(255, 255, 255, 0.14);
  --white-018: rgba(255, 255, 255, 0.18);
  --white-020: rgba(255, 255, 255, 0.20);
  --white-028: rgba(255, 255, 255, 0.28);
  --white-030: rgba(255, 255, 255, 0.30);
  --white-068: rgba(255, 255, 255, 0.68);
  --white-070: rgba(255, 255, 255, 0.70);
  --white-072: rgba(255, 255, 255, 0.72);
  --white-075: rgba(255, 255, 255, 0.75);
  --white-085: rgba(255, 255, 255, 0.85);
  --black-002: rgba(0, 0, 0, 0.02);
  --black-003: rgba(0, 0, 0, 0.03);
  --black-005: rgba(0, 0, 0, 0.05);
  --black-010: rgba(0, 0, 0, 0.10);
  --black-012: rgba(0, 0, 0, 0.12);
  --black-020: rgba(0, 0, 0, 0.20);
  --dark-003: rgba(17, 24, 39, 0.03);
  --dark-004: rgba(17, 24, 39, 0.04);
  --dark-006: rgba(17, 24, 39, 0.06);
  --dark-008: rgba(17, 24, 39, 0.08);
  --dark-010: rgba(17, 24, 39, 0.10);
  --dark-012: rgba(17, 24, 39, 0.12);
  --dark-014: rgba(17, 24, 39, 0.14);
  --dark-055: rgba(17, 24, 39, 0.55);
  --dark-075: rgba(17, 24, 39, 0.75);
  --dark-080: rgba(17, 24, 39, 0.80);
  --dark-085: rgba(17, 24, 39, 0.85);
  --primary-004: rgba(40, 13, 139, 0.04);
  --primary-005: rgba(40, 13, 139, 0.05);
  --primary-008: rgba(40, 13, 139, 0.08);
  --primary-009: rgba(40, 13, 139, 0.09);
  --primary-014: rgba(40, 13, 139, 0.14);
  --primary-022: rgba(40, 13, 139, 0.22);
  --primary-025: rgba(40, 13, 139, 0.25);
  --primary-035: rgba(40, 13, 139, 0.35);
  --primary-095: rgba(40, 13, 139, 0.95);
  --gold-010: rgba(197, 163, 103, 0.10);
  --gold-012: rgba(197, 163, 103, 0.12);
  --gold-014: rgba(197, 163, 103, 0.14);
  --gold-018: rgba(197, 163, 103, 0.18);
  --gold-025: rgba(197, 163, 103, 0.25);
  --gold-045: rgba(197, 163, 103, 0.45);
  --gold-065: rgba(197, 163, 103, 0.65);
  --danger-006: rgba(239, 68, 68, 0.06);
  --danger-010: rgba(239, 68, 68, 0.10);
  --danger-020: rgba(239, 68, 68, 0.20);
  --surface-neutral: rgba(229, 224, 216, 0.95);
  --surface-neutral-hover: rgba(212, 201, 184, 1);
  --shadow-light: rgba(0, 0, 0, 0.03);
  --shadow-medium: rgba(0, 0, 0, 0.10);
  --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.08);
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 8px 20px var(--dark-008);
  --shadow-md: 0 18px 50px var(--dark-014);
  --shadow-card: 0 12px 26px var(--dark-006);
  --shadow-card-hover: 0 18px 38px var(--dark-010);
  --shadow-elevated: 0 25px 50px var(--black-012);
  --shadow-sidebar: 10px 0 30px var(--black-020);
  --shadow-avatar: 0 4px 10px var(--black-020);
  --shadow-primary: 0 8px 20px var(--primary-025);
  --shadow-primary-soft: 0 8px 18px var(--primary-022);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

a, a:link, a:visited, a:hover, a:active, .btn-icon, .btn-icon:hover, .btn-icon:active, .btn-icon:focus, .logout, .logout:hover, .logout:active, .logout:focus {
  text-decoration: none;
  color: inherit;
}

body {
  background: radial-gradient(1200px 600px at 20% 0%, var(--gold-014), var(--transparent) 55%),
    var(--bg-light);
  color: var(--text-body);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  display: flex;
  min-height: 100vh;
  animation: pageFadeIn 0.55s ease-out both;
}

/* Sidebar */
.sidebar {
  width: 350px;
  background: linear-gradient(180deg, var(--bg-dark), var(--sidebar-gradient-end));
  color: var(--text-white);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 18px;
}

.logo img {
  max-height: 200px;
  object-fit: contain;
}

.location-card {
  background: var(--white-006);
  border: 1px solid var(--white-012);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-plus {
  background: var(--white-012);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.location-card .text strong {
  display: block;
  color: var(--accent-gold);
  font-size: 1rem;
}

.location-card .text span {
  font-size: 0.8rem;
  color: var(--white-075);
}

.menu {
  margin-top: 36px;
  flex-grow: 1;
}

.menu-label {
  font-size: 0.75rem;
  color: var(--white-068);
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.menu ul {
  list-style: none;
  margin-bottom: 22px;
}

.menu li {
  padding: 11px 14px;
  border-radius: 12px;
  margin-bottom: 8px;
  transition: var(--transition-normal);
}

.menu li:hover {
  background: var(--white-010);
  transform: translateX(4px);
}

.menu li.active {
  background: var(--white-014);
}

.menu a {
  color: var(--white-072);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu li.active a {
  color: var(--text-white);
  font-weight: 600;
}

.sidebar-footer {
  border-top: 1px solid var(--white-012);
  padding-top: 18px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

a.user-info {
  color: var(--white-072);
  cursor: pointer;
  transition: var(--transition-normal);
}

a.user-info:hover {
  color: var(--white-085);
  transform: scale(1.02);
}

.avatar {
  background: var(--accent-gold);
  color: var(--bg-dark);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 800;
}

.logout {
  color: var(--white-070);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  padding: 8px 10px;
  border-radius: 10px;
}

.logout:hover {
  background: var(--white-008);
}

/* Main */
.main-content {
  flex-grow: 1;
  padding: 2.2rem 3.2rem;
  max-width: 1200px;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--bg-dark);
  font-weight: 600;
}

.breadcrumb .fa-bars {
  display: none;
}

@media (max-width: 768px) {
  .breadcrumb .fa-bars {
    display: inline-block;
  }
}

.top-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-icon {
  background: var(--surface-neutral);
  border: 1px solid var(--black-003);
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-icon:hover {
  background: var(--surface-neutral-hover);
  transform: translateY(-1px);
}

/* Hero */
.hero-card {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-gradient-soft) 100%);
  border-radius: var(--radius-lg);
  padding: 30px 40px;
  color: var(--text-white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.hero-card::after {
  content: '';
  position: absolute;
  inset: -80px -80px auto auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle at 30% 30%, var(--gold-065), var(--transparent) 60%);
  filter: blur(6px);
  opacity: 0.7;
  pointer-events: none;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 22px;
  z-index: 1;
}

.hero-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  border: 1px solid var(--white-028);
  background: var(--white-006);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.35rem;
}

.hero-icon-box {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  border: 1px solid var(--white-028);
  background: var(--white-006);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
}

.hero-text h2 {
  font-size: 2rem;
  margin-bottom: 4px;
}

.hero-text p {
  color: var(--white-085);
  line-height: 1.45;
}

.btn-new {
  background: var(--white-012);
  color: var(--text-white);
  border: 1px solid var(--white-028);
  padding: 12px 18px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 700;
  z-index: 1;
  transition: var(--transition-fast);
}

.btn-new:hover {
  background: var(--white-018);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xs);
}

.content-section {
  background: var(--card-white);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-light);
  border: 1px solid var(--dark-004);
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .container {
    animation: none;
  }
}

@media (max-width: 1024px) {
  .sidebar {
    width: 300px;
  }
  .main-content {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    padding: 1rem;
    padding-bottom: 2rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .sidebar-footer {
    position: sticky;
    bottom: 0;
    margin-top: auto;
    background: var(--primary-095);
    padding-top: 16px;
    z-index: 1;
  }

  .location-card,
  .menu-label {
    display: none;
  }

  .menu {
    margin-top: 8px;
  }

  .menu ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0;
  }

  .menu li {
    margin-bottom: 0;
    padding: 10px 12px;
  }

  .main-content {
    padding: 1.25rem;
  }

  .hero-card {
    padding: 20px;
    flex-direction: column;
    text-align: center;
    gap: 18px;
  }

  .hero-content {
    flex-direction: column;
  }
}


::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    background-color: #000716 ;
}

::-webkit-scrollbar-thumb {
    background-color: #1e0a6b;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #280d8b;
}

@media (max-width: 480px) {
  .sidebar {
    padding: 0.75rem;
  }

  .menu ul {
    gap: 6px;
  }

  .menu li {
    padding: 8px 10px;
    font-size: 0.9rem;
  }
}