:root {
  --blue: #1b4b8a;
  --orange: #f05a28;
  --orange-light: #ff8b4a;
  --ink: #0f2233;
  --paper: #f7f7f4;
  --line: #d7e0ea;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", Tahoma, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: white;
  border: 1px solid #e2e8f0;
  display: grid;
  place-items: center;
  padding: 6px;
}

.logo img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.logout {
  text-decoration: none;
  color: var(--blue);
  font-weight: 600;
  border: 1px solid rgba(27, 75, 138, 0.2);
  padding: 10px 16px;
  border-radius: 12px;
}

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

.lang-switcher {
  position: relative;
}

.lang-toggle {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid #dbe3ec;
  background: #ffffff;
  color: #1b4b8a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(15, 34, 51, 0.08);
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 18px 40px rgba(15, 34, 51, 0.12);
  padding: 8px;
  min-width: 140px;
  z-index: 10;
}

.lang-menu button {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  color: #1f2f45;
  font-size: 13px;
}

.lang-menu button:hover,
.lang-menu button.is-active {
  background: #f3f7fb;
}

.card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 18px 40px rgba(15, 34, 51, 0.08);
}

.card + .card {
  margin-top: 18px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.btn {
  border: none;
  background: linear-gradient(135deg, var(--blue), #2f6dd1);
  color: white;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
}

.btn.secondary {
  background: white;
  color: var(--blue);
  border: 1px solid rgba(27, 75, 138, 0.3);
}

label {
  font-size: 13px;
  color: #334b63;
  margin-bottom: 6px;
  display: block;
}

input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 14px;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.muted {
  color: #5a6f85;
  font-size: 13px;
}

.hidden {
  display: none;
}

.menu {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
  height: fit-content;
  box-shadow: 0 10px 24px rgba(15, 34, 51, 0.05);
}

.menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.menu a {
  display: block;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 12px;
  color: #2f3f52;
  border: 1px solid transparent;
  font-weight: 600;
}

.menu a.active {
  background: rgba(240, 90, 40, 0.12);
  border-color: rgba(240, 90, 40, 0.35);
  color: #8a2f12;
}

.menu a:hover {
  border-color: rgba(27, 75, 138, 0.2);
  color: var(--blue);
}
