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

:root {
  --accent: #e8b810;
  --accent-hover: #d1a60e;
  --bg: #e7f1fd;
  --dark: #0a4156;
  --dark-lighter: #0e5672;
  --text: #0a2140;
  --text-muted: #5a7184;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);
  --shadow: 0 10px 30px rgba(10, 65, 86, 0.08);
  --shadow-lg: 0 20px 40px rgba(10, 65, 86, 0.12);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Outfit', sans-serif;
}

body {
  background: radial-gradient(circle at top right, var(--bg) 0%, #ffffff 50%, var(--bg) 100%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  padding: 40px 20px;
  position: relative;
  overflow-x: hidden;
}

/* Background Depth Blobs */
body::before,
body::after {
  content: '';
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  opacity: 0.4;
  animation: floatBlobs 20s infinite alternate;
}

body::before {
  background: var(--accent);
  top: -100px;
  left: -100px;
}

body::after {
  background: var(--bg);
  bottom: -100px;
  right: -100px;
  animation-delay: -10s;
}

@keyframes floatBlobs {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(50px, 100px) scale(1.1);
  }

  100% {
    transform: translate(-30px, 50px) scale(1.15);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}

.header {
  background: linear-gradient(135deg, var(--dark), var(--dark-lighter));
  color: var(--white);
  padding: 40px;
  border-radius: var(--radius-md);
  margin-bottom: 32px;
  text-align: center;
}

.header h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.header p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  font-weight: 300;
}

.hero p {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 24px;
  color: var(--text-muted);
}

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

.card {
  background: var(--white);
  padding: 32px 24px;
  border-radius: var(--radius-md);
  border: 1px solid #edf2f7;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--dark);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  font-size: 16px;
  text-align: center;
}

.btn:hover {
  background: var(--accent-hover);
  transform: scale(1.02);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--dark);
}

form h2 {
  margin-bottom: 24px;
  font-size: 24px;
  color: var(--dark);
}

form label {
  display: block;
  margin: 20px 0 8px;
  font-weight: 600;
  color: var(--dark);
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="tel"],
form input[type="number"],
form select,
form textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 2px solid #edf2f7;
  background: #f8fafc;
  font-size: 16px;
  transition: all 0.2s ease;
  outline: none;
}

form input[type="password"] {
  letter-spacing: 0.16em;
  font-family: 'Verdana', sans-serif;
  font-weight: 700;
  font-size: 18px;
}

.password-field-wrapper {
  position: relative;
  width: 100%;
}

.password-field-wrapper input {
  padding-right: 50px !important;
}

.password-toggle-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 8px;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.password-toggle-btn:hover {
  color: var(--accent);
  transform: translateY(-50%) scale(1.1);
}

form input::placeholder,
form textarea::placeholder {
  color: #a0aec0;
  opacity: 0.7;
}

form input:focus,
form select:focus,
form textarea:focus {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(232, 184, 16, 0.15);
  transform: translateY(-2px);
}

form input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  accent-color: var(--accent);
  vertical-align: middle;
}

.notice {
  background: #fffdf5;
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin-top: 32px;
  font-size: 15px;
  color: #856404;
}

footer {
  margin-top: 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
}

footer a {
  color: var(--dark);
  font-weight: 600;
}

.form-footer {
  margin-top: 32px;
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 600px) {
  body {
    padding: 20px 10px;
  }

  .container {
    padding: 24px;
  }

  .header {
    padding: 30px 20px;
  }

  .header h1 {
    font-size: 26px;
  }
}

/* Admin Table Styles */
.table-container {
  overflow-x: auto;
  margin-top: 24px;
  border-radius: var(--radius-md);
  border: 1px solid #edf2f7;
  background: var(--white);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

th {
  background: #f8fafc;
  color: var(--dark);
  font-weight: 700;
  text-align: left;
  padding: 16px 20px;
  border-bottom: 2px solid #edf2f7;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.05em;
  position: sticky;
  top: 0;
  z-index: 2;
}

td {
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--text);
  white-space: nowrap;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: #fcfdfe;
}

.table-container tbody tr:nth-child(odd) td {
  background: #fcfdff;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--bg);
  color: var(--dark);
}

.toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 24px;
}

.text-muted {
  color: var(--text-muted);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid #edf2f7;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.stat-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--dark);
}