/* src/components/layout/StudentLayout.css */

.student-layout {
  display: flex;
  min-height: 100vh;
  background-color: #f5f6fa;
}

/* Sidebar Styles */
.student-sidebar {
  width: 260px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
  padding: 30px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h2 {
  margin: 0 0 5px 0;
  font-size: 28px;
  font-weight: 700;
}

.user-role {
  margin: 0;
  font-size: 14px;
  opacity: 0.9;
}

/* Navigation */
.sidebar-nav {
  flex: 1;
  padding: 20px 0;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 15px 25px;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  margin: 5px 0;
}

.nav-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-left-color: white;
}

.nav-item.active {
  background-color: rgba(255, 255, 255, 0.15);
  border-left-color: white;
  font-weight: 600;
}

.nav-icon {
  font-size: 20px;
  margin-right: 15px;
  width: 24px;
  text-align: center;
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.logout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 12px 15px;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
}

.logout-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Main Content Area */
.student-main {
  flex: 1;
  margin-left: 260px;
  padding: 30px;
  min-height: 100vh;
}

.content-wrapper {
  max-width: 1400px;
  margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
  .student-sidebar {
    width: 80px;
  }

  .sidebar-header h2 {
    font-size: 20px;
  }

  .user-role,
  .nav-item span:not(.nav-icon) {
    display: none;
  }

  .nav-item {
    justify-content: center;
    padding: 15px 10px;
  }

  .student-main {
    margin-left: 80px;
    padding: 15px;
  }

  .logout-btn span:not(.nav-icon) {
    display: none;
  }

  .logout-btn {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .student-sidebar {
    position: fixed;
    bottom: 0;
    top: auto;
    width: 100%;
    height: 70px;
    flex-direction: row;
    z-index: 1000;
  }

  .sidebar-header,
  .sidebar-footer {
    display: none;
  }

  .sidebar-nav {
    display: flex;
    width: 100%;
    padding: 0;
    justify-content: space-around;
  }

  .nav-item {
    flex-direction: column;
    padding: 10px;
    margin: 0;
    font-size: 12px;
    border-left: none;
    border-top: 3px solid transparent;
  }

  .nav-item.active {
    border-left: none;
    border-top-color: white;
  }

  .nav-icon {
    margin: 0 0 5px 0;
    font-size: 18px;
  }

  .student-main {
    margin-left: 0;
    margin-bottom: 70px;
    padding: 15px;
  }
}
