* {
  box-sizing: border-box;
}

:root {
  --bg: #ffffeb;
  --dark: #1f2021;
  --mint: #00ffbf;
  --mint-dark: #00dca5;
  --white: #ffffff;
  --border: #dddddd;
  --muted: #666666;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--dark);
}

a {
  color: inherit;
}

/* Login */

.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.login-box {
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 34px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.login-header {
  margin-bottom: 24px;
}

.login-header h1 {
  margin: 0;
  font-size: 34px;
  letter-spacing: -0.5px;
}

.login-header p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.form-group {
  margin-bottom: 16px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 13px;
  font-size: 15px;
  background: var(--white);
  color: var(--dark);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--dark);
  box-shadow: 0 0 0 3px rgba(0, 255, 191, 0.25);
}

button,
.btn {
  display: inline-block;
  width: auto;
  border: 1px solid var(--mint);
  background: var(--mint);
  color: var(--dark);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

button {
  width: 100%;
}

button:hover,
.btn:hover {
  background: var(--mint-dark);
  border-color: var(--mint-dark);
}

.btn-outline {
  background: var(--white);
  border-color: var(--dark);
}

.btn-outline:hover {
  background: var(--dark);
  color: var(--bg);
}

.error {
  background: #fff0f0;
  border: 1px solid #e8aaaa;
  color: #7a1f1f;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
}

.footer {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* Topbar */

.topbar {
  background: var(--dark);
  border-bottom: 4px solid var(--mint);
  padding: 22px 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  text-decoration: none;
  color: var(--bg);
  font-size: 24px;
  font-weight: 800;
}

.nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--bg);
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
}

.nav a:hover {
  background: var(--mint);
  color: var(--dark);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--bg);
  font-size: 14px;
}

.user-badge strong {
  font-weight: 800;
}

.btn-small {
  display: inline-block;
  background: var(--mint);
  color: var(--dark);
  border: 1px solid var(--mint);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.btn-small:hover {
  background: var(--mint-dark);
}

/* Layout */

.page {
  padding: 42px 46px;
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 18px;
}

.dash-title {
  margin: 0;
  font-size: 42px;
  letter-spacing: -0.8px;
}

.dash-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}

.card-welcome {
  position: relative;
  margin-bottom: 18px;
}

.card-title {
  margin: 0 0 10px;
  font-size: 28px;
}

.card-mini-title {
  margin: 0 0 8px;
  font-size: 18px;
}

.card-badge {
  display: inline-block;
  background: #e6fff8;
  border: 1px solid var(--mint);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 14px;
}

.welcome-text p {
  line-height: 1.6;
  color: #333;
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.hint {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.link-pill {
  display: inline-block;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fafafa;
  text-decoration: none;
  font-weight: 600;
}

.link-pill:hover {
  border-color: var(--dark);
  background: #e6fff8;
}

/* Tables */

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 14px;
}

.table th {
  background: #fafafa;
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #eeeeee;
}

.table td {
  padding: 12px;
  border-top: 1px solid #eeeeee;
}

.site-footer {
  margin-top: 40px;
  padding: 18px 34px;
  background: #fafafa;
  border-top: 1px solid #eeeeee;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 800px) {
  .topbar,
  .topbar-left,
  .topbar-right,
  .dash-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .page {
    padding: 28px 20px;
  }

  .dash-grid {
    grid-template-columns: 1fr;
  }

  .dash-title {
    font-size: 34px;
  }
}