/* ==========================================================
   UNIVERSAL THEME — BLUE + WHITE + MODERN GLASS LOOK
========================================================== */
:root {
  --white: #ffffff;
  --black: #000000;
  --text: #1a1a1a;

  --lightblue: #4da3ff;
  --lightblue-dark: #2196f3;

  --primary-blue: #0b3d91;
  --primary-blue-soft: #cfe9ff;

  --soft-gray: #f4f6f8;
  --border: #d7d7d7;
  --red: #e74c3c;

  --shadow: 0 4px 12px rgba(0,0,0,0.10);
  --shadow-strong: 0 12px 32px rgba(0,0,0,0.18);
}

/* ==========================================================
   RESET + BASE
========================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", system-ui, sans-serif;
}

html, body {
  background: var(--soft-gray);
  color: var(--text);
  min-height: 100%;
  overflow-x: hidden;
}

/* ==========================================================
   LOGIN PAGE
========================================================== */
.page-bg {
  position: fixed;
  inset: 0;
  background: url('bg_school.jpg') center / cover no-repeat;
  filter: blur(6px);
  opacity: 0.25;
  z-index: 1;
}

.center-wrap {
  position: relative;
  z-index: 5;
  max-width: 1100px;
  margin: 40px auto;
  padding: 20px;
  display: flex;
  gap: 25px;
}

.card-left,
.card-right {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.card-left {
  flex: 1;
  padding: 32px;
  text-align: center;
}

.card-left img {
  width: 110px;
  margin-bottom: 10px;
}

.card-left h2 {
  font-size: 22px;
  font-weight: 700;
}

.sys-label {
  margin-top: 10px;
  display: inline-block;
  padding: 6px 16px;
  font-size: 12px;
  border-radius: 20px;
  background: var(--lightblue);
  color: #fff;
}

.card-right {
  width: 420px;
  padding: 28px;
  box-shadow: var(--shadow-strong);
}

/* ROLE BUTTONS */
.role-buttons {
  display: grid;
  gap: 10px;
  margin-top: 15px;
}

.role-btn {
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: var(--lightblue);
  color: white;
  font-weight: 600;
  cursor: pointer;
}

.role-btn:hover {
  background: var(--lightblue-dark);
}

.role-btn.selected {
  background: var(--primary-blue);
}

/* INPUTS */
input {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-bottom: 12px;
}

input:focus {
  outline: none;
  border-color: var(--lightblue);
  box-shadow: 0 0 6px rgba(77,163,255,0.35);
}

/* PASSWORD */
.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 42px;
}

.eye-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  opacity: .7;
}

/* BUTTONS */
.form-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.btn-submit {
  flex: 1;
  padding: 12px;
  background: var(--primary-blue);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

.btn-back {
  width: 120px;
  padding: 12px;
  background: var(--lightblue);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 700;
}

/* ERROR */
.error {
  padding: 12px;
  background: #ffe6e6;
  color: var(--red);
  border-left: 4px solid var(--red);
  border-radius: 6px;
  margin-bottom: 10px;
}

/* =========================
   HEADER LOGO — EXTRA SMALL
=========================*/
.header-left{
    width:36px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.logo-circle{
    width:18px;          /* VERY SMALL */
    height:18px;
    border-radius:50%;
    background:#ffffff;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    box-shadow:0 0 4px rgba(0,0,0,0.3);
}

.logo-circle img{
    width:14px;
    height:14px;
    object-fit:contain;
}


/* ==========================================================
   SIDEBAR
========================================================== */
.sidebar,
.sidebar-menu {
  position: fixed;
  top: 68px;
  left: 0;
  width: 230px;
  height: calc(100vh - 68px);
  background: var(--primary-blue);
  color: white;
  padding-top: 20px;
  z-index: 1000;
}

.sidebar a,
.sidebar-menu a {
  display: block;
  padding: 14px 20px;
  color: white;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar a:hover,
.sidebar-menu a:hover {
  background: rgba(255,255,255,0.12);
}

.sidebar-menu a.active {
  background: rgba(255,255,255,0.2);
}

/* ==========================================================
   MAIN CONTENT
========================================================== */
.main-content,
.content {
  margin-left: 230px;
  padding: 100px 30px 30px;
  min-height: 100vh;
}

.page-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
}

/* DASHBOARD */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 20px;
}

.dash-card {
  background: white;
  padding: 22px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: .3s;
  text-align: center;
}

.dash-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-strong);
}

/* ==========================================================
   FOOTER
========================================================== */
footer {
  background: var(--primary-blue);
  color: white;
  padding: 10px;
  text-align: center;
}

/* ==========================================================
   RESPONSIVE
========================================================== */
@media(max-width: 780px) {
  .center-wrap {
    flex-direction: column;
    max-width: 95%;
  }

  .card-right {
    width: 100%;
  }

  .sidebar,
  .sidebar-menu {
    transform: translateX(-100%);
    transition: .3s ease;
  }

  .sidebar.show,
  .sidebar-menu.show {
    transform: translateX(0);
  }

  .main-content,
  .content {
    margin-left: 0;
    padding: 90px 20px;
  }

  .user-name {
    display: none;
  }
}
