:root {
  --bg-dark: #280d8b;
  --bg-light: #f5f3ef;
  --accent-gold: #c5a367;
  --text-white: #ffffff;
  --text-gray: #a0a0a0;
  --text-dark: #1f2937;
  --card-white: #ffffff;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 8px 20px rgba(17, 24, 39, 0.08);
  --shadow-md: 0 18px 50px rgba(17, 24, 39, 0.14);

  --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;
}

body {
  background: radial-gradient(1200px 600px at 20% 0%, rgba(197, 163, 103, 0.14), transparent 55%),
    var(--bg-light);
  color: #111827;
  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), #1f0a6a);
  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: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-plus {
  background: rgba(255, 255, 255, 0.12);
  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: rgba(255, 255, 255, 0.75);
}

.menu {
  margin-top: 36px;
  flex-grow: 1;
}

.menu-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.68);
  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: rgba(255, 255, 255, 0.10);
  transform: translateX(4px);
}

.menu li.active {
  background: rgba(255, 255, 255, 0.14);
}

.menu a {
  color: rgba(255, 255, 255, 0.72);
  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 rgba(255, 255, 255, 0.12);
  padding-top: 18px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.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: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  padding: 8px 10px;
  border-radius: 10px;
}

.logout:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* 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: rgba(229, 224, 216, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.03);
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-icon:hover {
  background: rgba(212, 201, 184, 1);
  transform: translateY(-1px);
}

/* Hero */
.hero-card {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #3d1db3 100%);
  border-radius: var(--radius-lg);
  padding: 30px 40px;
  color: 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%, rgba(197, 163, 103, 0.65), 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 rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  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 rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  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: rgba(255, 255, 255, 0.85);
  line-height: 1.45;
}

.btn-new {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 12px 18px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 700;
  z-index: 1;
  transition: var(--transition-fast);
}

.btn-new:hover {
  background: rgba(255, 255, 255, 0.18);
  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 rgba(17, 24, 39, 0.04);
}

.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: rgba(40, 13, 139, 0.95);
    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;
  }
}

