:root {
  --bg: #ffffff;
  --panel: #f4f7f9;
  --accent: #4bc3b4;
  --text: #1f2a30;
  --muted: #5f7680;
  --success: #4bc3b4;
  --error: #f26c6c;
}
* { box-sizing: border-box; }
body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  background: radial-gradient(circle at 25% 15%, rgba(75,195,180,0.08), transparent 35%),
              radial-gradient(circle at 85% 0%, rgba(33,86,110,0.08), transparent 45%),
              var(--bg);
  color: var(--text);
  min-height: 100vh;
}
header {
  padding: 24px 20px 10px;
  text-align: center;
}
.logo {
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.main {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 16px 60px;
}
.main.with-sidebar {
  max-width: none;
  padding: 16px 24px 60px;
  margin: 0;
  width: 100%;
  flex: 1 1 auto;
}
.layout {
  display: flex;
  min-height: calc(100vh - 70px);
  align-items: stretch;
}
.sidebar {
  width: 230px;
  flex: 0 0 230px;
  background: #21566e;
  color: #e5f5f2;
  padding: 18px 16px;
  border-right: 1px solid rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  min-height: calc(100vh - 70px);
  transform: translateX(0);
  transition: transform 0.2s ease;
  overflow-y: auto;
}
.sidebar nav a {
  display: block;
  color: #e5f5f2;
  text-decoration: none;
  padding: 10px 8px;
  border-radius: 10px;
  margin-bottom: 6px;
  font-weight: 600;
}
.sidebar nav a:hover {
  background: rgba(255,255,255,0.1);
}
.sidebar nav a.active {
  background: rgba(0,0,0,0.25);
  font-weight: 700;
}
.sidebar .nav-group { margin-bottom: 10px; }
.sidebar-subtitle {
  margin-top: 16px;
  margin-bottom: 6px;
  color: #cde6e2;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 12px;
}
.sidebar nav a.logout {
  background: rgba(242,108,108,0.18);
  border: 1px solid rgba(242,108,108,0.4);
}
.sidebar nav a.logout:hover {
  background: rgba(242,108,108,0.3);
}
.sidebar-logo {
  margin-bottom: 12px;
  text-align: center;
}
.sidebar-logo img {
  max-width: 150px;
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
}
.sidebar-title {
  font-weight: 700;
  margin-bottom: 12px;
  color: #cde6e2;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #21566e;
  color: #e5f5f2;
  position: sticky;
  top: 0;
  z-index: 20;
}
.burger {
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px;
  border-radius: 10px;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: #e5f5f2;
}
.user-chip {
  padding: 6px 10px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  font-size: 14px;
}
@media (min-width: 961px) {
  .burger { display: none; }
}
@media (max-width: 960px) {
  .layout {
    flex-direction: column;
  }
  .sidebar {
    position: fixed;
    left: 0;
    top: 62px;
    height: calc(100vh - 62px);
    transform: translateX(-110%);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
    z-index: 30;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main.with-sidebar {
    padding: 16px;
  }
}
.card {
  background: var(--panel);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.06);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  border: none;
  color: #0f1b20;
  background: var(--accent);
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.1s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 20px rgba(75,195,180,0.25); }
.btn.secondary {
  background: rgba(255,255,255,0.08);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.08);
}
.btn.back {
  background: #2b9ad4;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.08);
}
.btn.warn {
  background: #f7c948;
  color: #1f1f1f;
}
.btn.danger {
  background: #f26c6c;
  color: #fff;
}
.btn.export {
  background: #28a745;
  color: #fff;
}
.btn.pdf {
  background: #c0392b;
  color: #fff;
}
.btn.gray {
  background: #d6dde3;
  color: #0f1b20;
  border: 1px solid rgba(0,0,0,0.06);
}
.btn.inline { padding: 10px 14px; font-size: 14px; }
.btn .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn .icon svg {
  width: 16px;
  height: 16px;
  display: block;
}
.form-grid { display: grid; gap: 16px; }
label { font-weight: 600; display: block; margin-bottom: 6px; color: var(--muted); }
input, textarea, select {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.2);
  color: var(--text);
  font-size: 15px;
}
textarea { min-height: 100px; resize: vertical; }
.rating-options { display: flex; gap: 10px; }
.rating-options label { color: var(--text); font-weight: 700; }
.radio-pill {
  display: inline-flex;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  cursor: pointer;
  align-items: center;
  gap: 6px;
}
.radio-pill input { width: auto; }
.alert { padding: 12px 14px; border-radius: 10px; margin-bottom: 12px; }
.alert.error { background: rgba(242,108,108,0.18); border: 1px solid rgba(242,108,108,0.35); }
.alert.success { background: rgba(54,195,140,0.18); border: 1px solid rgba(54,195,140,0.35); }
.table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.table th, .table td { padding: 10px; border-bottom: 1px solid rgba(255,255,255,0.06); text-align: left; }
.table th { color: var(--muted); font-weight: 700; }
.small { color: var(--muted); font-size: 13px; }
.meta { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); }
.chip { padding: 6px 10px; background: rgba(255,255,255,0.08); border-radius: 10px; font-size: 13px; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 14px; }
@media (max-width: 640px) {
  .card { padding: 16px; margin-bottom: 16px; }
  h1, h2 { font-size: 1.35rem; }
  .rating-options { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .btn.inline { width: auto; }
  .main { padding: 0 12px 48px; }
  header { padding: 16px 12px 8px; }
}

.welcome-text {
  text-align: center;
  white-space: pre-line;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 600;
  color: var(--text);
  margin: 12px 0 18px;
}

.welcome-note {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  display: inline-block;
}
