﻿/* EDU. NEXA User Layout */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(7, 15, 32, 0.78);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  z-index: 60;
  box-shadow: 0 12px 30px rgba(5, 11, 25, 0.28);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.95rem 1.8rem;
  max-width: 1240px;
  margin: 0 auto;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #67e8f9;
  letter-spacing: 0.02em;
}

.logo img {
  height: 32px;
  width: auto;
}

.header-center {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  list-style: none;
}

.nav-menu a {
  color: var(--gray-300);
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  background: rgba(6, 182, 212, 0.14);
  border-color: rgba(103, 232, 249, 0.35);
  color: #cffafe;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.user-profile {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(15, 24, 46, 0.5);
  cursor: pointer;
  color: var(--gray-300);
  max-width: min(42vw, 290px);
  min-width: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.user-profile span {
  display: inline-block;
  min-width: 0;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-profile:hover {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(103, 232, 249, 0.45);
}

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--primary), #67e8f9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #04253a;
  font-weight: 700;
}

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

.mobile-menu-btn {
  display: none;
  background: rgba(15, 24, 46, 0.7);
  border: 1px solid var(--border);
  color: var(--gray-300);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.55rem 0.7rem;
  border-radius: 0.65rem;
  transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
  background: rgba(6, 182, 212, 0.14);
  border-color: rgba(103, 232, 249, 0.35);
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background:
    linear-gradient(180deg, rgba(7, 14, 30, 0.96) 0%, rgba(11, 24, 50, 0.96) 100%);
  border-right: 1px solid var(--border);
  z-index: 50;
  transform: translateX(-100%);
  transition: transform 0.28s ease;
  box-shadow: 8px 0 24px rgba(0, 0, 0, 0.24);
  overflow-y: auto;
}

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

.sidebar-header {
  padding: 1.35rem 1.25rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(9, 18, 38, 0.98);
  z-index: 2;
}

.sidebar-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #67e8f9;
}

.sidebar-menu {
  padding: 0.9rem 0.55rem 1.2rem;
}

.sidebar-menu ul {
  list-style: none;
}

.sidebar-menu li {
  margin-bottom: 0.25rem;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.72rem 0.95rem;
  color: var(--gray-300);
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 0.7rem;
  transition: all 0.2s ease;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
  color: #e8fbff;
  background: rgba(6, 182, 212, 0.14);
  border-color: rgba(103, 232, 249, 0.36);
}

.sidebar-menu a i {
  width: 20px;
  text-align: center;
  opacity: 0.85;
}

.main-content {
  margin-top: 84px;
  min-height: calc(100vh - 160px);
  padding: 1.8rem;
}

.main-content.with-sidebar {
  margin-left: 280px;
}

.main-content .container > * {
  animation: page-fade 0.4s ease both;
}

@keyframes page-fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer {
  background: rgba(8, 16, 34, 0.92);
  border-top: 1px solid var(--border);
  color: var(--gray-400);
  padding: 1.6rem 0;
  margin-top: 3rem;
}

.footer-content {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.footer-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #d6f8ff;
}

.footer-links {
  display: flex;
  gap: 1.4rem;
}

.footer-links a {
  color: var(--gray-400);
  font-weight: 500;
}

.footer-links a:hover {
  color: #d6f8ff;
}

.footer-copyright {
  color: var(--gray-500);
  font-size: 0.86rem;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(2, 8, 23, 0.62);
  backdrop-filter: blur(2px);
  z-index: 40;
  display: none;
}

.sidebar-overlay.active {
  display: block;
}

