/* Mentor Platform — Layout
   Sidebar + Content structure */

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-family);
  font-size: 14px;
  color: var(--gray-900);
  background: var(--gray-50);
  min-height: 100vh;
}

/* ===== App Layout (Sidebar + Content) ===== */

.layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  background: var(--gray-800);
  color: var(--gray-300);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 0;
  overflow-y: auto;
  z-index: 100;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px 20px;
}

.sidebar-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  background: var(--olive-500);
  flex-shrink: 0;
}

.sidebar-logo-text {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

/* Nav Section */
.sidebar-nav {
  flex: 1;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-section-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--gray-500);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 16px 12px 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  height: 40px;
  transition: background 0.15s, color 0.15s;
}

.nav-item:hover {
  background: var(--gray-700);
  color: var(--gray-100);
}

.nav-item.active {
  background: var(--olive-800);
  color: #fff;
  font-weight: 600;
}

.nav-item-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.8;
}

.nav-item.active .nav-item-icon {
  opacity: 1;
}

/* User Footer */
.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--gray-700);
}

.sidebar-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--wine-600);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}

.sidebar-user-info {
  flex: 1;
  min-width: 0;
}

.sidebar-user-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-300);
}

.sidebar-user-role {
  font-size: 10px;
  color: var(--gray-500);
}

.sidebar-logout {
  color: var(--gray-500);
  text-decoration: none;
  font-size: 18px;
  transition: color 0.15s;
}

.sidebar-logout:hover {
  color: var(--wine-400);
}

/* Content Area */
.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-left: var(--sidebar-w);
  min-height: 100vh;
}

.content-header {
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  flex-shrink: 0;
}

.content-header-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
}

.content-header-meta {
  font-size: 13px;
  color: var(--gray-500);
}

.content-body {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
}

/* ===== Content Footer ===== */

.sidebar-legal {
  padding: 8px 24px 12px;
  font-size: 10px;
  color: var(--gray-600);
  text-align: center;
}

.sidebar-legal a {
  color: var(--gray-500);
  text-decoration: none;
}

.sidebar-legal a:hover {
  color: var(--gray-300);
}

/* ===== Auth Layout (Login, Register, Reset) ===== */

.auth-layout {
  min-height: 100vh;
  background: var(--gray-800);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--olive-500);
}

.auth-logo-text {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}

.auth-card {
  width: 400px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
}

/* ===== Mobile Toggle ===== */

.sidebar-toggle {
  display: none;
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--gray-800);
  color: #fff;
  border: none;
  font-size: 20px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ===== Responsive ===== */

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-toggle {
    display: flex;
  }

  .content {
    margin-left: 0;
  }

  .content-body {
    padding: 16px;
  }


  .auth-card {
    width: calc(100% - 32px);
    max-width: 400px;
  }
}
