/* ============================================================
   GLOBAL RESET
   ============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background: #020617; /* deep space */
  color: #e2e8f0;
  line-height: 1.5;
  padding-bottom: 80px;
}

/* ============================================================
   HEADERS / HERO
   ============================================================ */
.hero {
  text-align: center;
  padding: 60px 20px;
  background: radial-gradient(circle at center, #0f172a, #020617);
}

.hero h1 {
  font-size: 42px;
  font-weight: 700;
  color: #38bdf8;
}

.hero p {
  font-size: 18px;
  margin-top: 10px;
  color: #94a3b8;
}

/* ============================================================
   BUTTONS
   ============================================================ */
button {
  cursor: pointer;
  border: none;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 600;
}

.btn-primary {
  background: #38bdf8;
  color: #0f172a;
}

.btn-secondary {
  background: #1e293b;
  color: #e2e8f0;
}

/* ============================================================
   GRID OF 50 FUNCTIONS
   ============================================================ */
.tools {
  padding: 40px 20px;
}

.tools h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #38bdf8;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.tile {
  background: #0f172a;
  border: 1px solid #1e293b;
  padding: 20px;
  border-radius: 10px;
  transition: 0.2s ease;
}

.tile:hover {
  border-color: #38bdf8;
  transform: translateY(-3px);
}

.tile-title {
  font-size: 18px;
  font-weight: 600;
  color: #38bdf8;
}

.tile-desc {
  font-size: 14px;
  margin-top: 6px;
  color: #94a3b8;
}

.tile-price {
  margin-top: 10px;
  font-size: 16px;
  color: #fbbf24;
}

/* ============================================================
   CONSOLE
   ============================================================ */
.console {
  padding: 40px 20px;
}

.console h2 {
  color: #38bdf8;
  margin-bottom: 10px;
}

#inputArea {
  width: 100%;
  height: 120px;
  background: #0f172a;
  border: 1px solid #1e293b;
  color: #e2e8f0;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 10px;
}

#outputArea {
  margin-top: 20px;
  background: #0f172a;
  border: 1px solid #1e293b;
  padding: 20px;
  border-radius: 8px;
  white-space: pre-wrap;
  color: #94a3b8;
}

/* ============================================================
   SUPERVISOR DASHBOARD
   ============================================================ */
.supervisor-dashboard {
  padding: 40px 20px;
}

.supervisor-dashboard h2 {
  color: #38bdf8;
  margin-bottom: 20px;
}

.dashboard-section {
  margin-bottom: 40px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #0f172a;
  border: 1px solid #1e293b;
}

table th,
table td {
  padding: 12px;
  border-bottom: 1px solid #1e293b;
}

table th {
  background: #1e293b;
  color: #38bdf8;
}

table tr:hover {
  background: #1e293b;
}

/* ============================================================
   MODALS (GLOBAL)
   ============================================================ */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 6, 23, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #0f172a;
  border: 1px solid #1e293b;
  padding: 25px;
  width: 95%;
  max-width: 600px;
  border-radius: 10px;

  /* ⭐ FIX: Make modal scrollable so buttons never disappear */
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
}

.modal-content h3 {
  color: #38bdf8;
  margin-bottom: 15px;
}

.modal-content label {
  display: block;
  margin-top: 15px;
  margin-bottom: 5px;
  color: #94a3b8;
}

.modal-content input,
.modal-content textarea {
  width: 100%;
  background: #1e293b;
  border: 1px solid #334155;
  color: #e2e8f0;
  padding: 10px;
  border-radius: 6px;
}

.modal-content textarea {
  min-height: 80px;
}

/* ============================================================
   MODAL BUTTON ROW (FIXED)
   ============================================================ */
.modal-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
}

.modal-actions button {
  flex: 1;
}

/* ============================================================
   OUTPUT INSIDE MODAL
   ============================================================ */
#sfOutput {
  margin-top: 20px;
  background: #0f172a;
  border: 1px solid #1e293b;
  padding: 15px;
  border-radius: 8px;
  color: #94a3b8;
  white-space: pre-wrap;
}

/* ============================================================
   PAYPAL SECTION
   ============================================================ */
.checkout {
  padding: 40px 20px;
}

.checkout h2 {
  color: #38bdf8;
  margin-bottom: 10px;
}

#paypal-container {
  margin-top: 20px;
}
