@font-face {
  font-family: 'Baloo 2';
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/Baloo2-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Baloo 2';
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/Baloo2-Bold.woff2') format('woff2');
}
@font-face {
  font-family: 'Baloo 2';
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/Baloo2-ExtraBold.woff2') format('woff2');
}

:root {
  --orange: #f7941d;
  --orange-dark: #e07a0a;
  --cyan: #00d4ff;
  --dark: #1a1a2e;
  --darker: #16213e;
  --light: #f8f9fa;
  --white: #ffffff;
  --gray: #6c757d;
  --gray-light: #e9ecef;
  --success: #28a745;
  --danger: #dc3545;
  --radius: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Baloo 2', -apple-system, sans-serif;
  background: var(--light);
  color: var(--dark);
  min-height: 100vh;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 32px;
  margin-bottom: 20px;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius);
  font-family: 'Baloo 2', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--orange);
  color: var(--white);
}
.btn-primary:hover { background: var(--orange-dark); }
.btn-secondary {
  background: var(--gray-light);
  color: var(--dark);
}

.header {
  background: var(--dark);
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.header img { height: 36px; border-radius: 6px; }
.header nav a {
  color: var(--white);
  text-decoration: none;
  margin-left: 24px;
  font-weight: 700;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.header nav a:hover { opacity: 1; }

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}
.badge-success { background: #d4edda; color: #155724; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-secondary { background: var(--gray-light); color: var(--gray); }

input[type="email"],
input[type="text"],
textarea,
select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius);
  font-family: 'Baloo 2', sans-serif;
  font-size: 1rem;
  transition: border-color 0.2s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--orange);
}

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

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

.alert {
  padding: 14px 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-weight: 700;
}
.alert-success { background: #d4edda; color: #155724; }
.alert-error { background: #f8d7da; color: #721c24; }
.alert-info { background: #d1ecf1; color: #0c5460; }

table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--gray-light);
}
th {
  background: var(--dark);
  color: var(--white);
  font-weight: 700;
}
tr:hover { background: #f1f3f5; }

.hero {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #f7941d 0%, #e07a0a 100%);
  color: var(--white);
}
.hero img {
  height: 72px;
  margin-bottom: 24px;
}
.hero h1 { font-size: 2rem; margin-bottom: 8px; }
.hero p { opacity: 0.8; font-size: 1.1rem; }

.login-box {
  max-width: 420px;
  margin: 40px auto;
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid var(--gray-light);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hidden { display: none !important; }

@media (max-width: 600px) {
  .hero { padding: 40px 16px; }
  .hero h1 { font-size: 1.5rem; }
  .card { padding: 20px; }
  th, td { padding: 8px 10px; font-size: 0.9rem; }
}
