/* Global Styles and Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #2c5f7d;
  --secondary-color: #3a8ba5;
  --accent-color: #e8a547;
  --text-dark: #191f29;
  --text-light: #5a6c7d;
  --bg-light: #f7fafc;
  --bg-white: #ffffff;
  --border-color: #e2e8f0;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Dark Mode Variables */
body.dark-mode,
html.dark-mode-init body {
  --primary-color: #4a9bc2;
  --secondary-color: #5cb3d6;
  --accent-color: #f5b95f;
  --text-dark: #e8eaed;
  --text-light: #b8c5d0;
  --bg-light: #1a1d23;
  --bg-white: #242831;
  --border-color: #3a3f4a;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.6);
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
  transition: background-color 0.3s ease, color 0.3s ease;
}

body::before {
  content: "";
  position: fixed;
  top: 75%;
  left: 75%;
  transform: translate(-50%, -50%);
  height: 120%;
  width: auto;
  aspect-ratio: 716 / 1736;
  background-image: url("../assets/huici.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.03;
  z-index: 1;
  pointer-events: none;
}

body.dark-mode::before {
  opacity: 0.02;
  filter: invert(1);
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* ===== UTILITY CLASSES ===== */
.fade-on-hover {
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.fade-on-hover:hover {
  opacity: 1;
}

.sidebar-base {
  position: fixed;
  top: 80px;
  bottom: 0;
  padding: 2rem 1.5rem;
  z-index: 1;
  overflow-y: auto;
}

.sidebar-header {
  font-size: 1rem;
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.nav-item-base {
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.3rem;
  cursor: pointer;
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--text-dark);
  transition: all 0.2s ease;
}
