/* ==========================================================
   LEARN TECH - ESTILOS DE TURMAS, ATIVIDADES E FORMULÁRIOS
   ========================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(#1b1033, #0a0d18);
  color: #ffffff;
  min-height: 100vh;
  display: flex;
}

.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hidden {
  display: none !important;
}

/* HEADER / NAVBAR */
header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
}

nav.nav-links {
  display: flex;
  gap: 52px;
}

nav.nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

nav.nav-links a.active,
nav.nav-links a:hover {
  color: #38bdf8;
  transform: scale(1.05);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-icon-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-icon-btn svg {
  width: 28px;
  height: 28px;
  stroke: #ffffff;
}

/* CONTAINERS PRINCIPAIS */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 40px 60px;
}

.page-title {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 30px;
  text-align: center;
}

.accent-blue {
  color: #38bdf8;
}

/* ==========================================================
   ESTILOS ESPECÍFICOS DA PÁGINA DE TURMAS
   ========================================================== */

.actions-row-prof {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 900px;
  margin-bottom: 28px;
}

.btn-round-action {
  background-color: #5c93d9;
  color: #0b091a;
  border: none;
  padding: 12px 32px;
  border-radius: 22px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}

.btn-round-action:hover {
  background-color: #72a6eb;
  transform: translateY(-2px);
}

.turmas-row {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1100px;
}

.turma-card {
  background-color: #172036;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  padding: 20px;
  width: 320px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  position: relative;
  transition: background-color 0.2s, transform 0.2s;
}

.turma-card:hover {
  background-color: #232f4d;
  transform: translateY(-2px);
}

.turma-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.turma-card-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.turma-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: url('https://images.unsplash.com/photo-1580582932707-520aed937b7b?w=150&auto=format&fit=crop&q=80') center/cover;
  border: 2px solid rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.turma-info h4 {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff;
  word-break: break-word;
}

.turma-info p {
  font-size: 11px;
  color: #94a3b8;
  text-transform: uppercase;
  margin-top: 2px;
}

.options-container {
  position: relative;
}

.btn-options {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}

.btn-options:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.context-menu-dropdown {
  display: none;
  position: absolute;
  top: 30px;
  right: 0;
  background-color: #3b82f6;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  width: 150px;
  z-index: 50;
  flex-direction: column;
}

.context-menu-dropdown.active {
  display: flex;
}

.context-item {
  width: 100%;
  padding: 10px 14px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s;
}

.context-item:first-child {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.context-item:last-child {
  border-bottom: none;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.context-item:hover {
  background-color: #2563eb;
}

.btn-ver-atividade {
  width: 100%;
  height: 38px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #2b6ce6;
  border: none;
  color: #ffffff;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.btn-ver-atividade:hover {
  background-color: #ffffff;
  color: #000000;
}

/* FORMULÁRIO DE EDIÇÃO */
.edit-form-container {
  width: 100%;
  max-width: 580px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0 auto;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.form-group label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.form-input {
  width: 100%;
  background-color: #111422;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  padding: 12px 16px;
  color: #ffffff;
  font-size: 13px;
  outline: none;
}

.form-buttons-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
  width: 100%;
}

@media (max-width: 1024px) {
  header {
    padding-inline: 24px;
  }

  nav.nav-links {
    gap: 22px;
  }

  nav.nav-links a {
    font-size: 14px;
  }

  .header-right {
    gap: 12px;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 18px;
  }

  nav.nav-links {
    display: none;
  }

  main {
    padding: 20px 18px 40px;
  }

  .turmas-row {
    gap: 18px;
  }

  .turma-card {
    width: min(320px, 100%);
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 23px;
    margin-bottom: 22px;
  }

  .turma-card {
    padding: 16px;
  }

  .btn-round-action {
    width: 100%;
    padding-inline: 16px;
  }

  .form-buttons-row {
    flex-wrap: wrap;
  }
}