/* ===== Medtop College — Shared theme (white / red / black) ===== */
:root {
  --white: #ffffff;
  --red: #c8102e;
  --red-dark: #9c0a23;
  --red-light: #fde7ea;
  --green: #16a34a;
  --green-light: #d1fae5;
  --black: #1a1a1a;
  --gray-900: #222;
  --gray-700: #555;
  --gray-500: #888;
  --gray-300: #d9d9d9;
  --gray-100: #f4f4f4;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
  --radius: 14px;
  --radius-sm: 8px;
  --font: "Segoe UI", "Inter", system-ui, -apple-system, sans-serif;
}

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

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  min-height: 100vh;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: #000; }
.btn-outline {
  background: transparent;
  color: var(--red);
  border: 2px solid var(--red);
}
.btn-outline:hover { background: var(--red); color: var(--white); }
.btn-ghost { background: var(--gray-100); color: var(--black); }
.btn-ghost:hover { background: var(--gray-300); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.card-red {
  background: var(--red);
  color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.card-dark {
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

/* Forms */
.form-group { margin-bottom: 18px; }
label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
  color: var(--gray-900);
}
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  background: var(--white);
  color: var(--black);
  transition: border-color 0.2s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--red);
}
textarea { resize: vertical; min-height: 100px; }

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-300);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 44px; width: 44px; object-fit: contain; border-radius: 8px; }
.brand-name { font-weight: 800; font-size: 18px; color: var(--black); line-height: 1.2; }
.brand-name span { color: var(--red); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--gray-900); font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--red); text-decoration: none; }

/* Footer */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 50px 0 24px;
  margin-top: 60px;
}
.site-footer .container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.footer-bottom {
  border-top: 1px solid #333;
  margin-top: 32px;
  padding-top: 20px;
  text-align: center;
  color: var(--gray-500);
  font-size: 14px;
}
.footer-bottom .container { display: block; }

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  color: var(--white);
  font-weight: 600;
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast-info { background: var(--black); }
.toast-success { background: #2e7d32; }
.toast-error { background: var(--red); }

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}
.badge-red { background: var(--red-light); color: var(--red); }
.badge-green { background: #e6f4ea; color: #2e7d32; }
.badge-gray { background: var(--gray-100); color: var(--gray-700); }
.badge-dark { background: var(--black); color: var(--white); }

/* Empty state */
.empty {
  text-align: center;
  padding: 50px 20px;
  color: var(--gray-500);
}
.empty-icon { font-size: 48px; margin-bottom: 12px; }

/* Spinner */
.spinner {
  border: 3px solid var(--gray-300);
  border-top-color: var(--red);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  animation: spin 0.8s linear infinite;
  margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Back button */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--gray-100);
  color: var(--black);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.back-btn:hover { background: var(--gray-300); text-decoration: none; }

/* Responsive */
@media (max-width: 768px) {
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 14px; }
  .site-footer .container { grid-template-columns: 1fr; gap: 24px; }
}
