*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #0f172a;
  --panel: #111827;
  --panel-light: #1f2937;
  --text: #f8fafc;
  --muted: #cbd5e1;
  --accent: #60a5fa;
  --accent-hover: #93c5fd;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  --radius: 14px;
  --max-width: 1100px;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: linear-gradient(180deg, #0b1220 0%, #111827 100%);
  color: var(--text);
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

header {
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid var(--border);
  padding: 16px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.nav-left a,
.nav-right a,
.logout-btn,
.nav-right span {
  color: var(--text);
  font-weight: 600;
}

.logout-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font: inherit;
}

.logout-btn:hover {
  text-decoration: underline;
  background: none;
}

.container {
  max-width: var(--max-width);
  margin: 40px auto;
  padding: 0 20px 40px;
}

h1, h2, h3 {
  margin-top: 0;
  color: var(--text);
}

p {
  color: var(--muted);
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.tile {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.tile:hover {
  transform: translateY(-4px);
  border-color: rgba(96, 165, 250, 0.4);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

.tile a {
  font-size: 1.1rem;
  font-weight: 700;
}

.tile p {
  margin-top: 10px;
}

form {
  max-width: 700px;
}

input,
textarea,
select {
  width: 100%;
  padding: 10px 12px;
  margin-top: 6px;
  margin-bottom: 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel-light);
  color: var(--text);
}

button {
  background: var(--accent);
  color: #08111f;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: var(--accent-hover);
}

ul {
  list-style: none;
  padding: 0;
}

ul li {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 16px 18px;
  margin-bottom: 12px;
}

@media (max-width: 720px) {
  header {
    padding: 14px 18px;
  }

  .container {
    margin-top: 24px;
    padding: 0 14px 24px;
  }
}