html {
  box-sizing: border-box;
  font-size: 62.5%;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: 'Outfit', sans-serif;
}

a,
button,
input,
textarea,
label,
select {
  -webkit-tap-highlight-color: transparent;
}
   
:root {
  --orange: #f97316;
  --sidebar-width: 25.5rem;
  --card-radius: 1.2rem;
  --shadow: 0 4px 14px rgba(0,0,0,.08);
}

input::placeholder,
textarea::placeholder {
  font-family: 'Outfit', sans-serif;
  font-size: inherit; /* Optional: match input's font-size */
}

/* Hide number input arrows in Chrome, Safari, Edge */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Hide number input arrows in Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

body {
  height: 100vh; 
  overflow: hidden; 
  color:#000; 
  background: #fff;
  /* line-height: 1.6; */
  user-select: none;
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none;    /* Firefox */
  -ms-user-select: none;     /* IE/Edge */
}

.swal2-popup {
  font-size: 1.6rem !important; /* makes it 16px */
  font-family: 'Outfit', sans-serif !important;
}

.swal2-title {
  font-size: 2rem !important; /* slightly larger title */
  font-weight: 600;
}

.swal2-html-container {
  font-size: 1.6rem !important;
}

a {
  cursor: pointer;
  text-decoration: none !important;
  color: var(--bs-primary);
}
  
.layout {display: flex; height: 100%;}

/* ============ Hamburger Button ============ */
.hamburger {
  background: none;
  border: none;
  font-size: 2.2rem;;
  color: #333;
  cursor: pointer;
  display: none; /* hidden by default (desktop-first) */
    /* For iOS Safari and Android Chrome tap highlight */
  -webkit-tap-highlight-color: transparent;
  /* Prevent Firefox blue focus ring */
  -moz-outline-style: none;
}

/* ---------- Sidebar ---------- */
.sidebar {
  width: var(--sidebar-width);
  background:#fff;
  border-right: 1px solid #e5e7eb;
  padding: 2.4rem 1.8rem;
  overflow-y: auto;
  font-size: 1.5rem;
}
/* Overlay - hidden by default (desktop-first) */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* dim effect */
  z-index: 998; /* behind sidebar */
}
.close-sidebar {
  display: none; /* desktop first */
}

.sidebar .switcher {
  position: relative;
  display: flex;
  width: 20rem;
  margin-bottom: 2rem;
  background: #e5e5e5;
  border-radius: 2.5rem;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
}
.sidebar .switch-label {
  flex: 1;
  text-align: center;
  line-height: 4rem;
  font-weight: bold;
  z-index: 1;
  transition: color 0.3s;
  color: #444;
}
.sidebar .switch-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: #F88948;
  border-radius: 2.5rem;
  transition: left 0.3s ease;
  z-index: 0;
}
.sidebar .switcher.admin .switch-indicator {
  left: 0;
}
.sidebar .switcher.tutor .switch-indicator {
  left: 50%;
}
.sidebar .switcher.admin .switch-label.admin {
  color: white;
}
.sidebar .switcher.tutor .switch-label.tutor {
  color: white;
}
.sidebar .logo {
  font-weight: 700;
  font-size: 2.2rem;
  margin-top: -1rem;
  margin-bottom: 0.8rem;
  margin-left: 0.7rem;
}
.nav-item {
  display: flex; 
  align-items: center;
  gap: 1.4rem;
  padding: 1rem 1.4rem;
  border-radius: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: .2s;
  color: #444;
  margin-top: 0.5rem;
  text-decoration: none;
}
.nav-item.active, .nav-item:hover {background:var(--orange); color:#fff;}
.nav-sub {  
  margin-left: 3.8rem; 
  margin-top: 0.4rem; 
  margin-bottom: 1rem; 
}
.nav-sub .nav-item {
  font-weight: 400; 
  font-size: 1.5rem; 
  padding: 0.6rem 1.2rem;
}

/* ---------- Main ---------- */
.main {
  flex: 1;
  transition: margin-left 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
/* Top Bar */
.topbar {
  display: flex; 
  align-items: center;
  justify-content: flex-end;
  padding: 1rem 3rem;
  border-bottom: 1px solid #e5e7eb;
}
.search-box {
  position: relative; 
  width: 30rem;
}
.search-box input {
  width: 100%; 
  padding: 0.8rem 3.8rem; 
  border-radius: 2rem; 
  border: 1px solid #d1d5db;
  background:#f9fafb;
}
.search-box i {
  position: absolute; 
  top: 50%; 
  left: 1.4rem; 
  transform: translateY(-50%); 
  color:#9ca3af;
}
.profile {
  display: flex; 
  align-items: center; 
  gap: 1rem;
}
.profile img {
  width: 4.8rem; 
  height: 4.8rem; 
  border-radius: 50%;
}
.profile p {
  font-size: 1.6rem;
  font-weight:700;
}

.academy-logo img {
  width: 5.5rem; 
  height: 5.5rem;
  border-radius: 50%;
  object-fit: contain;
}

/* ---------- Content Section ---------- */
.content-wrapper {
  padding: 3rem;
  background: linear-gradient(135deg,#d7c4ff 0%,#d4b2ff 30%,#ffb7c5 60%,#c7ffd8 100%);
  flex: 1;
  overflow-y: auto;
}

h1.big {
  font-size: 3.4rem; 
  font-weight: 800; 
  margin-bottom: 2.4rem;
}
h3.small {
  font-size: 1.8rem; 
  font-weight: 600; 
  margin-bottom: .8rem;
}

/* Filter styling */
.filter-student {
  margin: 3rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.filter-student label {
  color: #333;
  margin-right: 1rem;
  font-size: 1.6rem;
  font-weight: 500;
}

.filter-student select {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  padding: 0.8rem 0.8rem;
  border-radius: 1rem;
  font-size: 1.44rem;
  min-width: 20rem;
}

.no-hover {
  pointer-events: none;
}

/* ============ Sidebar Slide-in on Small Screens ============ */
@media (max-width: 1024px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: -25.5rem; /* hidden off-screen */
    width: var(--sidebar-width);
    height: 100%;
    background: #fff;
    z-index: 999;
    transition: left 0.3s ease;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
  }

  .sidebar-overlay.show {
    display: block;
  }

  .close-sidebar {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    z-index: 1000;
    cursor: pointer;
  }

  .sidebar.show {
    left: 0; /* slide in */
  }

  .main {
    width: 100%;
    margin-left: 0;
  }

  .layout {
    flex-direction: column;
  }

  .hamburger {
    display: inline-block; /* visible on small screens */
  }

  .topbar {
    justify-content: space-between;
  }

  .main {
    margin-left: 0;
    width: 100%;
  }

  .content-wrapper {
    padding: 2rem;
    padding-bottom: 10rem;
  }
}