/* =========================
   RESET & BASE
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

html, body {
  height: 100%;
  background: #00040a;
  color: #222;
}

/* =========================
   GLOBAL CENTERING (PC)
========================= */
body {
  display: flex;
  justify-content: center;
}

.page-wrapper {
  width: 100%;
  max-width: 1400px; /* keeps content centered on large screens */
}

/* =========================
   LOGIN PAGE (GLASS)
========================= */
body.login {
  align-items: center;
  background-image: url("https://images.unsplash.com/photo-1524995997946-a1c2e315a42f");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

body.login::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.admin-box {
  position: relative;
  width: 360px;
  padding: 32px;
  border-radius: 16px;

  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);

  color: #fff;
  z-index: 1;
}

.admin-box h2 {
  text-align: center;
  margin-bottom: 22px;
}

.admin-box label {
  font-size: 14px;
}

.admin-box input {
  width: 100%;
  padding: 11px;
  margin: 8px 0 16px;
  border-radius: 8px;
  border: none;
  background: rgba(255,255,255,0.28);
  color: #fff;
}

.admin-box input::placeholder {
  color: rgba(255,255,255,0.7);
}

/* =========================
   MAIN CONTAINER
========================= */
.container {
  width: 100%;
  min-height: 100vh;
  padding: 22px 28px;
}

/* =========================
   TOP BAR
========================= */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.95);
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  margin-bottom: 20px;
}

.topbar h2 {
  font-size: 22px;
  font-weight: 600;
}

/* =========================
   GLASS FORM (ALL FORMS)
========================= */
form {
  background: rgba(0.35, 0.00, 17);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  padding: 18px 20px;
  border-radius: 12px;

  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* =========================
   FORM GRID
========================= */
.row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.col {
  flex: 1;
  min-width: 200px;
}

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

.col input,
.col select,
select {
  width: 100%;
  padding: 9px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
}

/* =========================
   BUTTONS
========================= */
.college-btn,
.btn-primary,
.secondary {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: 0.2s ease;
}

.college-btn {
  background: #6c757d;
  color: #fff;
}

.btn-primary {
  background: linear-gradient(135deg, #4facfe, #00c6ff);
  color: #fff;
}

.secondary {
  background: #198754;
  color: #fff;
}

.college-btn:hover,
.btn-primary:hover,
.secondary:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

/* =========================
   FLASH MESSAGES
========================= */
.flash {
  padding: 12px 14px;
  border-radius: 8px;
  margin: 14px 0;
  font-size: 14px;
}

.flash.error {
  background: rgba(255,70,70,0.15);
  color: #a30000;
  border-left: 5px solid #ff4d4d;
}

.flash.info {
  background: rgba(79,172,254,0.15);
  color: #084298;
  border-left: 5px solid #4facfe;
}

/* =========================
   TABLE
========================= */
.table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,0.95);
  margin-top: 20px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

.table th {
  background: #eef3f8;
  padding: 12px;
  font-size: 14px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.table td {
  padding: 11px 12px;
  font-size: 14px;
  border-bottom: 1px solid #eee;
}

.table tr:hover {
  background: #f9fbfd;
}

.center {
  text-align: center;
  padding: 20px;
}

/* =========================
   ACTIONS
========================= */
.actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
  body {
    justify-content: stretch;
  }

  .page-wrapper {
    max-width: 100%;
  }

  .row {
    flex-direction: column;
  }

  .actions {
    flex-direction: column;
    align-items: flex-start;
  }
}
