/* ── Tutor Dashboard – standalone page styles ────────────────────────────── */

/* ── Login screen ── */
#login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e1b4b 0%, #4f46e5 100%);
  padding: 2rem 1rem;
}

.tutor-login-card {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  width: 480px;
  max-width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

.tutor-login-logo {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: #4f46e5;
  text-align: center;
  margin-bottom: .5rem;
  letter-spacing: -.5px;
}

.tutor-login-card h2 {
  text-align: center;
  font-size: 1.1rem;
  color: #64748b;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.tutor-login-tabs {
  display: flex;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 1.5rem;
}

.tutor-tab-btn {
  flex: 1;
  padding: .55rem;
  border: none;
  border-radius: 7px;
  background: transparent;
  font-size: .9rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all .2s;
}

.tutor-tab-btn.active {
  background: #fff;
  color: #4f46e5;
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
}

.tutor-tab-panel form {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.tutor-tab-panel label {
  font-size: .85rem;
  font-weight: 600;
  color: #1e293b;
}

.tutor-tab-panel input,
.tutor-tab-panel select,
.tutor-tab-panel textarea {
  width: 100%;
  padding: .6rem .9rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: .9rem;
  font-family: inherit;
  outline: none;
  background: #fff;
  box-sizing: border-box;
}

.tutor-tab-panel input:focus,
.tutor-tab-panel select:focus,
.tutor-tab-panel textarea:focus {
  border-color: #4f46e5;
}

/* ── Dashboard shell ── */
#tutor-shell {
  display: flex;
  min-height: 100vh;
  background: #f1f5f9;
}

/* ── Burger button — MOBILE ONLY ── */
#burger-btn {
  display: none;
  position: fixed;
  top: .85rem;
  left: .85rem;
  z-index: 300;
  width: 38px;
  height: 38px;
  background: #1e1b4b;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
  transition: background .15s;
}

#burger-btn:hover { background: #4f46e5; }

#burger-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all .2s;
}

#tutor-shell.sidebar-open #burger-btn span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
#tutor-shell.sidebar-open #burger-btn span:nth-child(2) {
  opacity: 0;
}
#tutor-shell.sidebar-open #burger-btn span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Backdrop — MOBILE ONLY ── */
#sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 199;
}

/* ── Sidebar ── */
.tutor-sidebar {
  width: 220px;
  min-width: 220px;
  background: #1e1b4b !important;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1rem;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  box-sizing: border-box;
}

/* ── Sidebar brand ── */
.tutor-sidebar-brand {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff !important;
  padding: 0 .5rem;
  display: block;
  line-height: 1.1;
  text-decoration: none !important;
  margin-bottom: 1rem;
}

.tutor-sidebar-brand span {
  display: block;
  font-size: .7rem;
  font-weight: 500;
  color: #c7d2fe;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-top: .15rem;
}

/* ── Profile strip ── */
.tutor-sidebar-profile {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .75rem .5rem;
  margin-bottom: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.1);
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: transparent !important;
}

.tutor-sidebar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #4f46e5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
}

.tutor-sidebar-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.tutor-sidebar-name {
  font-size: .85rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.tutor-sidebar-meta {
  font-size: .73rem;
  color: #a5b4fc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Nav ── */
.tutor-sidebar-nav {
  display: flex !important;
  flex-direction: column !important;
  gap: .3rem;
  background: transparent !important;
  height: auto !important;
  border-bottom: none !important;
  border-top: none !important;
  padding: 0 !important;
  position: static !important;
  z-index: auto !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
}

.tutor-side-btn {
  width: 100%;
  text-align: left;
  background: transparent !important;
  border: none !important;
  color: #c7d2fe !important;
  padding: .6rem .9rem;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
  font-family: inherit;
  box-shadow: none !important;
}

.tutor-side-btn:hover {
  background: rgba(255,255,255,.08) !important;
  color: #fff !important;
}

.tutor-side-btn.active {
  background: #4f46e5 !important;
  color: #fff !important;
}

/* ── Logout button ── */
.tutor-logout-btn {
  background: transparent !important;
  border: 1px solid rgba(255,255,255,.15) !important;
  color: #c7d2fe !important;
  padding: .5rem;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  margin-top: auto;
  transition: all .15s;
  width: 100%;
  font-family: inherit;
}

.tutor-logout-btn:hover {
  border-color: #ef4444 !important;
  color: #fca5a5 !important;
}

/* ── Main content area ── */
.tutor-main {
  flex: 1;
  padding: 2rem 2.5rem;
  overflow-y: auto;
  max-width: 900px;
}

.tutor-tab { display: none; }
.tutor-tab.active { display: block; }

.tutor-main h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: .25rem;
}

.tutor-hint {
  color: #64748b;
  font-size: .88rem;
  margin-bottom: .5rem;
}

/* Form styles inside main cards */
.tutor-main .card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.04);
  margin-bottom: 1.5rem;
}

.tutor-main .card form {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.tutor-main .card label {
  font-size: .85rem;
  font-weight: 600;
  color: #1e293b;
}

.tutor-main .card input,
.tutor-main .card select,
.tutor-main .card textarea {
  width: 100%;
  padding: .6rem .9rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: .9rem;
  font-family: inherit;
  outline: none;
  background: #fff;
  box-sizing: border-box;
}

.tutor-main .card input:focus,
.tutor-main .card select:focus,
.tutor-main .card textarea:focus {
  border-color: #4f46e5;
}

/* ── MOBILE — sidebar slides in as overlay, burger visible ── */
@media (max-width: 680px) {
  #tutor-shell { flex-direction: column; background: #f1f5f9; }

  /* Show burger button */
  #burger-btn { display: flex; }

  /* Sidebar: fixed overlay, hidden off-screen by default */
  .tutor-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 240px;
    z-index: 200;
    transform: translateX(-100%);
    transition: transform .22s cubic-bezier(.4,0,.2,1);
  }

  /* Show sidebar when open */
  #tutor-shell.sidebar-open .tutor-sidebar {
    transform: translateX(0);
  }

  /* Show backdrop when open */
  #tutor-shell.sidebar-open #sidebar-backdrop {
    display: block;
  }

  /* Main content fills full width, add top padding for burger */
  .tutor-main {
    width: 100%;
    padding: 4rem 1rem 1.5rem;
    max-width: 100%;
  }
}
