* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(circle at 18% -12%, rgba(201, 168, 76, 0.16), transparent 32%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg-primary) 38%, #eef3f8 100%);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.55;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: rgba(201, 168, 76, 0.28);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #c2cfdd;
  border: 3px solid transparent;
  border-radius: 999px;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background: #9eafc2;
  border: 3px solid transparent;
  background-clip: content-box;
}

.header {
  position: sticky;
  top: 0;
  z-index: 120;
  min-height: 88px;
  padding: 16px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(6, 24, 56, 0.99) 0%, rgba(12, 43, 94, 0.99) 58%, rgba(21, 87, 166, 0.96) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 45px rgba(12, 43, 94, 0.22);
}

.header-info {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.header-logo {
  width: 76px;
  height: 76px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  padding: 0;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.24)) drop-shadow(0 0 10px rgba(201, 168, 76, 0.16));
}

.header h1 {
  font-size: 18px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0;
}

.header h1::after {
  content: "";
  display: block;
  width: 46px;
  height: 2px;
  margin-top: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-gold), rgba(201, 168, 76, 0));
}

.header span {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logout-btn,
.language-btn {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  backdrop-filter: blur(12px);
}

.logout-btn:hover,
.language-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.44);
  transform: translateY(-1px);
}

.layout {
  display: flex;
  min-height: calc(100vh - 88px);
}

.main {
  flex: 1;
  min-width: 0;
  padding: 26px;
  overflow-x: auto;
}

.page {
  display: none;
  animation: pageIn 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.page.active {
  display: block;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.995);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
