@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --bg: #0f172a;
  --surface: #1e293b;
  --surface-light: #27344d;
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #f97316;
  --accent-strong: #ea580c;
  --success: #22c55e;
  --info: #0ea5e9;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  background: radial-gradient(circle at top, #1e1b4b, #020617);
  color: var(--text);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input[type="submit"],
input[type="button"],
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  font-weight: 600;
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  border: none;
  cursor: pointer;
  color: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.button:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(2, 6, 23, 0.6);
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(15, 23, 42, 0.7);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 1rem;
  box-shadow: 0 8px 30px rgba(2, 6, 23, 0.45);
}

table th,
table td {
  padding: 0.95rem 1.15rem;
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

table th {
  background: rgba(248, 250, 252, 0.04);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  backdrop-filter: blur(10px);
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  position: sticky;
  top: 0;
  z-index: 20;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 4vw;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

.brand span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a:focus {
  background: rgba(249, 115, 22, 0.12);
  color: var(--text);
}

.logout-link {
  border: 1px solid rgba(248, 250, 252, 0.2);
  padding: 0.35rem 1rem;
  border-radius: 8px;
  font-weight: 500;
}

main {
  flex: 1;
  padding: 2rem 4vw 4rem;
}

.page-heading {
  margin-bottom: 2rem;
}

.page-heading h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.page-heading p {
  color: var(--muted);
  margin-top: 0.5rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.card {
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 10px 35px rgba(2, 6, 23, 0.5);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(249, 115, 22, 0.4);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

.card p {
  color: var(--muted);
  margin-bottom: 1.25rem;
  min-height: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  font-weight: 600;
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  border: none;
  cursor: pointer;
  color: #fff;
  transition: transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(148, 163, 184, 0.2);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(15, 23, 42, 0.7);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 1rem;
  box-shadow: 0 8px 30px rgba(2, 6, 23, 0.45);
}

.data-table th,
.data-table td {
  padding: 0.95rem 1.15rem;
  text-align: left;
}

.data-table th {
  background: rgba(248, 250, 252, 0.04);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.data-table tr + tr td {
  border-top: 1px solid rgba(148, 163, 184, 0.08);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
}

.pill.success {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
}

.pill.info {
  background: rgba(14, 165, 233, 0.15);
  color: var(--info);
}

.section {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 18px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 12px 45px rgba(2, 6, 23, 0.4);
}

.section h2 {
  margin-top: 0;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.login-screen {
  max-width: 420px;
  margin: 4rem auto;
  padding: 2.5rem;
  background: rgba(15, 23, 42, 0.75);
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  box-shadow: 0 15px 60px rgba(2, 6, 23, 0.55);
}

.login-screen h1 {
  margin-top: 0;
}

.form-group {
  margin-bottom: 1.2rem;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 500;
  color: var(--muted);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(2, 6, 23, 0.6);
  color: var(--text);
  font-size: 0.95rem;
}

.helper-text {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.message-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.message-list li {
  background: rgba(248, 113, 113, 0.15);
  color: #fecaca;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  margin-bottom: 0.5rem;
}

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

.login-tile {
  background: rgba(30, 41, 59, 0.85);
  border-radius: 18px;
  padding: 1.5rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s;
}

.login-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, 0.6);
}

.login-tile span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(249, 115, 22, 0.15);
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.login-tile h3 {
  margin: 0 0 0.4rem;
}

footer {
  padding: 1.5rem 4vw 2rem;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.8);
}

@media (max-width: 720px) {
  .top-bar {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    justify-content: center;
  }
}

