/* ========= GLOBAL VARIABLES ========= */
:root {
  --sidebar-w: 240px;
  --bg-overlay: rgba(18, 18, 18, 0.75);
  --card: #1e1e2f;
  --muted: #bbb;
  --accent1: #6c63ff;
  --accent2: #4a47d5;
  --cta: #ffcc00;
}

/* ========= GLOBAL RESET ========= */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; font-family: "Poppins", sans-serif; color: #fff; overflow-x: hidden; }

/* ========= GLOBAL BACKGROUND ========= */
body {
  background: #121212;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("/IMAGES/aitm main.webp") center/cover no-repeat;
  z-index: -1;
  animation: zoomBG 20s ease-in-out infinite alternate;
  filter: brightness(0.7);
  background-attachment: fixed;
}
@keyframes zoomBG { from { transform: scale(1); } to { transform: scale(1.08); } }

/* ========= SIDEBAR ========= */
.sidebar {
  width: var(--sidebar-w);
  background: rgba(30, 30, 47, 0.94);
  padding: 20px;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  overflow-y: auto;
  transition: left 0.28s ease;
  z-index: 1000;
}
.sidebar h2 { color: #fff; margin-bottom: 18px; font-size: 18px; letter-spacing: 0.6px; }
.sidebar a {
  text-decoration: none;
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 8px;
  transition: all 0.18s ease;
  display: block;
}
.sidebar a.active,
.sidebar a:hover {
  background: #33334d;
  color: #fff;
  transform: translateX(4px);
}

/* ========= MENU TOGGLE ========= */
.menu-toggle {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  background: rgba(234, 234, 237, 0.08);
  color: #fff;
  border: none;
  font-size: 20px;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  z-index: 1100;
}

/* ========= MAIN CONTENT ========= */
.main-content {
  flex: 1;
  padding: 32px;
  margin-left: var(--sidebar-w);
  overflow-y: auto;
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* ========= HEADERS ========= */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.header h1 { font-size: 26px; }

/* ========= CARD GRID ========= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

/* ========= CARD ========= */
.card {
  background: var(--card);
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.45);
  transition: transform 0.22s, box-shadow 0.22s;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.55);
}

/* ========= BUTTONS ========= */
button {
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.14s, filter 0.14s;
}
button:hover { transform: translateY(-3px); filter: brightness(0.95); }

/* ========= AUTH & PROFILE CONTAINERS ========= */
.auth-container,
.profile-container {
  position: relative;
  z-index: 2;
  padding: 34px;
  max-width: 420px;
  margin: auto;
  background: rgba(0,0,0,0.45);
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  text-align: center;
}
.auth-container h2 { margin-bottom: 18px; font-size: 22px; }
.auth-container p { margin-bottom: 16px; color: #ddd; }

/* ========= INPUTS & LABELS ========= */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
textarea,
select {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border-radius: 8px;
  border: none;
  background: rgba(255,255,255,0.08);
  color: #fff;
  outline: none;
  font-size: 15px;
}
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }

/* ========= LINKS ========= */
.auth-link {
  margin-top: 14px;
  font-size: 0.9rem;
  color: #ddd;
}
.auth-link a { color: var(--cta); text-decoration: none; }
.auth-link a:hover { text-decoration: underline; }

/* ========= EMAIL DISPLAY ========= */
.email-display {
  font-weight: 700;
  color: var(--cta);
  padding: 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  margin-bottom: 12px;
  display: inline-block;
}

/* ========= CAROUSEL ========= */
.carousel { width: 100%; overflow: hidden; border-radius: 12px; margin-bottom: 20px; }
.slides { display: flex; transition: transform .8s ease; }
.slide { min-width: 100%; }
.slide img { width: 100%; height: 380px; object-fit: cover; border-radius: 12px; }
.dots { text-align: center; margin-top: 8px; }
.dot {
  width: 10px; height: 10px;
  background: rgba(255,255,255,0.6);
  display: inline-block;
  margin: 0 6px;
  border-radius: 50%;
  cursor: pointer;
}
.dot.active { background: #fff; }

/* ========= INDEX ROLE BUTTONS ========= */
.index-container { text-align: center; z-index: 2; }
.role-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}
.role-btn {
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  background: rgba(255,255,255,0.2);
  color: white;
  border: 2px solid rgba(255,255,255,0.3);
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}
.role-btn:hover {
  background: var(--cta);
  color: #111;
  transform: translateY(-3px) scale(1.05);
}

/* ========= SCROLLBAR ========= */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,0.03); border-radius: 10px; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg,var(--accent1),var(--accent2));
  border-radius: 10px;
}

/* ========= RESPONSIVE ========= */
@media (max-width: 992px) {
  .main-content { padding: 20px; }
  .slide img { height: 320px; }
}
@media (max-width: 768px) {
  .sidebar { left: -280px; }
  .sidebar.active { left: 0; }
  .menu-toggle { display: block; }
  .main-content { margin-left: 0; padding: 18px; }
  .auth-container { max-width: 360px; }
  .slide img { height: 220px; }
}
@media (max-width: 480px) {
  .sidebar { width: 200px; }
  .slide img { height: 160px; }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
