/*--------------------------------------------------------------
# Root Variables
--------------------------------------------------------------*/
:root {
  /* Color palette */
  --primary: #4361ee;
  --primary-dark: #3a56d4;
  --primary-light: #e8f1ff;
  --secondary: #6c757d;
  --success: #28a745;
  --success-light: #d4edda;
  --info: #17a2b8;
  --warning: #ffc107;
  --warning-light: #fff3cd;
  --danger: #dc3545;
  --danger-light: #f8d7da;
  --dark: #212529;
  --light: #f8f9fa;
  --grey-100: #f3f4f6;
  --grey-200: #e5e7eb;
  --grey-250: #d6d8db;
  --grey-300: #d1d5db;
  --grey-400: #9ca3af;
  --grey-500: #6b7280;
  --grey-600: #4b5563;
  --grey-700: #374151;
  --grey-800: #1f2937;
  --grey-900: #111827;
  --grey-150: #ebedf0;
  
  /* Border properties */
  --border-radius: 8px;
  --border-radius-sm: 0.25rem;
  --border-radius-lg: 12px;
  --border-color: var(--grey-300);
  
  /* Spacing */
  --spacer: 1rem;
  
  /* Shadow */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 1.5rem 4rem rgba(0, 0, 0, 0.2);
  
  /* Font */
  --font-family-sans-serif: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  
  /* Transitions */
  --transition-base: all 0.3s ease;

  /* Header styles */
  --header-height: 80px;
  --header-height-scrolled: 60px;
  --header-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* New variables for the improved styles */
  --text-primary: #2d3748;
  --text-secondary: #64748b;
  --text-muted: #8896ab;
  --animation-speed: 0.3s;
}

/*--------------------------------------------------------------
# Base Styles
--------------------------------------------------------------*/
body {
  font-family: var(--font-family-sans-serif);
  color: var(--text-primary);
  line-height: 1.6;
  background-color: #f9fafc;
}

.main-content {
  min-height: calc(100vh - 76px - 200px); /* Navbar height + footer approximate height */
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition-base);
  cursor: pointer;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}


/*--------------------------------------------------------------
# Header Styles and Navbar
--------------------------------------------------------------*/
.header-spacer {
height: var(--header-height);
}

.header {
position: fixed;
top: 0;
left: 0;
right: 0;
width: 100%;
z-index: 1000;
background-color: rgba(255, 255, 255, 0.95);
transition: var(--header-transition);
box-shadow: var(--shadow-sm);
height: var(--header-height);
backdrop-filter: blur(10px);
}

.header.scrolled {
height: var(--header-height-scrolled);
box-shadow: var(--shadow);
background-color: rgba(255, 255, 255, 0.98);
backdrop-filter: blur(10px);
}

.navbar {
height: 100%;
padding: 0;
transition: var(--header-transition);
}

/* Ajustes responsivos para o navbar */
@media (max-width: 991.98px) {
.navbar-collapse {
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  background-color: white;
  padding: 1rem;
  box-shadow: var(--shadow);
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  z-index: 1000;
  max-height: calc(100vh - var(--header-height));
  overflow-y: auto;
}

.header.scrolled .navbar-collapse {
  top: var(--header-height-scrolled);
  max-height: calc(100vh - var(--header-height-scrolled));
}

.navbar-nav {
  padding: 0.5rem 0;
}

.navbar-nav .nav-item {
  margin: 0.25rem 0;
  width: 100%;
}

.navbar-nav .nav-link {
  padding: 0.75rem 1rem !important;
  width: 100%;
}

.dropdown-menu {
  width: 100%;
  margin-top: 0 !important;
  margin-left: 0 !important;
  border: none;
  background-color: var(--primary-light);
  z-index: 1050 !important;
  box-shadow: none;
}

.navbar-toggler {
  border: none;
  outline: none;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Adicionar separador visual para as opções de perfil e sair */
.nav-item.d-lg-none:nth-last-child(2) {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--grey-200);
}
}

.brand-icon {
width: 42px;
height: 42px;
background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
color: white;
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.25rem;
transition: var(--header-transition);
}

.header.scrolled .brand-icon {
width: 34px;
height: 34px;
font-size: 1rem;
border-radius: 8px;
}

.brand-text {
font-weight: 700;
font-size: 1.4rem;
background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
transition: var(--header-transition);
}

.header.scrolled .brand-text {
font-size: 1.2rem;
}

.navbar-nav .nav-item {
margin: 0 0.2rem;
display: flex;
align-items: center;
}

.navbar-nav .nav-link {
padding: 0.7rem 1rem;
border-radius: var(--border-radius);
transition: var(--header-transition);
display: flex;
align-items: center;
color: var(--text-secondary);
font-weight: 500;
}

.header.scrolled .navbar-nav .nav-link {
padding: 0.5rem 0.8rem;
}

.navbar-nav .nav-link:hover {
color: var(--primary);
background-color: var(--primary-light);
transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
background-color: var(--primary-light);
color: var(--primary);
font-weight: 600;
position: relative;
}

.navbar-nav .nav-link.active:after {
content: '';
position: absolute;
bottom: -4px;
left: 50%;
transform: translateX(-50%);
width: 20px;
height: 3px;
background-color: var(--primary);
border-radius: 3px;
}

.nav-icon {
width: 24px;
text-align: center;
margin-right: 0.5rem;
color: var(--primary);
font-size: 0.9rem;
transition: var(--header-transition);
}

.header.scrolled .nav-icon {
font-size: 0.85rem;
}

.nav-text {
transition: var(--header-transition);
}

.dropdown-menu-animated {
animation: dropdown-fade 0.2s ease;
box-shadow: var(--shadow-md);
border: none;
border-radius: var(--border-radius);
padding: 0.5rem;
}

@media (max-width: 991.98px) {
.dropdown-menu-animated {
  animation: none;
}
}

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

.dropdown-header {
font-weight: 600;
color: var(--grey-600);
padding: 0.5rem 1rem;
}

.dropdown-item {
border-radius: var(--border-radius-sm);
padding: 0.6rem 1rem;
transition: background-color 0.2s ease;
}

.dropdown-item:hover {
background-color: var(--primary-light);
}

.dropdown-icon {
color: var(--primary);
width: 18px;
text-align: center;
}

.dropdown-divider {
margin: 0.3rem 0;
}

.avatar-circle {
width: 38px;
height: 38px;
background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
color: white;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-weight: 600;
box-shadow: var(--shadow-sm);
transition: var(--header-transition);
}

.header.scrolled .avatar-circle {
width: 32px;
height: 32px;
font-size: 1rem;
border-radius: 8px;
}

.user-name {
transition: var(--header-transition);
}

.btn-primary {
padding: 0.6rem 1.4rem;
font-weight: 500;
box-shadow: var(--shadow-sm);
transition: var(--header-transition);
}

.header.scrolled .btn-primary {
padding: 0.5rem 1.2rem;
}


/*--------------------------------------------------------------
# Layout Components
--------------------------------------------------------------*/
.container {
  max-width: 1320px;
  padding-left: var(--spacer);
  padding-right: var(--spacer);
  margin-left: auto;
  margin-right: auto;
}

.section-padding {
  padding: 5rem 0;
}

/*--------------------------------------------------------------
# Cards
--------------------------------------------------------------*/
.card {
  border: none;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* Desabilitar efeito hover nos cards de cursos extracurriculares */
#cursos-extracurriculares .card:hover {
  transform: none;
}

/* Desabilitar efeito hover nos cards da página courses */
.dashboard-container .card:hover {
  transform: none;
}

.card-header {
  background-color: white;
  border-bottom: 1px solid var(--grey-200);
  padding: 1.25rem 1.5rem;
  font-weight: 600;
}

.card-body {
  padding: 1.5rem;
}

.card-header.bg-primary, 
.card-header.bg-success,
.card-header.bg-info,
.card-header.bg-warning,
.card-header.bg-danger {
  color: var(--dark);
}

/*--------------------------------------------------------------
# Buttons
--------------------------------------------------------------*/
.btn {
  padding: 0.5rem 1.25rem;
  font-weight: 500;
  border-radius: var(--border-radius);
  transition: var(--transition-base);
  box-shadow: none;
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
  background-color: transparent;
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
  background-color: var(--primary);
  color: white;
}

.btn-secondary {
  background-color: var(--secondary);
  border-color: var(--secondary);
}

.btn-secondary:hover, .btn-secondary:focus {
  background-color: #5a6268;
  border-color: #5a6268;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1.125rem;
}

/*--------------------------------------------------------------
# Forms
--------------------------------------------------------------*/
.form-control, .form-select {
  padding: 0.75rem 1rem;
  border: 1px solid var(--grey-300);
  border-radius: var(--border-radius);
  font-size: 1rem;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

.form-label {
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}

.input-group-text {
  border: 1px solid var(--grey-300);
  background-color: var(--grey-100);
  color: var(--text-secondary);
  font-weight: 500;
  padding: 0.75rem 1rem;
}

/*--------------------------------------------------------------
# Tables
--------------------------------------------------------------*/
.table {
  border-color: var(--grey-200);
  margin-bottom: 0;
}

.table th {
  font-weight: 600;
  color: var(--text-secondary);
  background-color: var(--grey-100);
  border-bottom-width: 1px;
  padding: 1rem;
}

.table td {
  padding: 1rem;
  vertical-align: middle;
}

.table-hover tbody tr:hover {
  background-color: var(--primary-light);
}

.table-responsive {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  max-height: 400px;
  overflow-y: auto;
}

/* Estilos personalizados para a barra de rolagem */
.table-responsive::-webkit-scrollbar {
  width: 8px;
}

.table-responsive::-webkit-scrollbar-track {
  background: var(--grey-100);
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: var(--grey-300);
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: var(--grey-400);
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero-section {
  padding: 6rem 0 4rem;
  background: linear-gradient(135deg, #f9faff 0%, #f0f4ff 100%);
  position: relative;
  overflow: hidden;
}

.hero-section:before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background: radial-gradient(circle at 70% 30%, rgba(67, 97, 238, 0.08) 0%, rgba(67, 97, 238, 0) 70%);
}

.hero-content h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, var(--dark), var(--primary-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-content .lead {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.hero-image {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  transition: all 0.5s ease;
  transform: translateY(0);
}

.hero-image:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.hero-stats {
  margin-top: 2rem;
}

.stat-item {
  background-color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
  background: linear-gradient(to right, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.hero-image-container {
  position: relative;
  padding: 1rem;
}

.hero-image-container:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(67, 97, 238, 0.1) 0%, rgba(255, 107, 107, 0.1) 100%);
  border-radius: var(--border-radius-lg);
  transform: rotate(-2deg);
  z-index: -1;
}

.cta-section {
padding: 3rem 0;
}

.cta-card {
padding: 3rem;
border-radius: var(--border-radius-lg);
background: linear-gradient(135deg, var(--primary) 0%, #614FE0 100%);
color: white;
box-shadow: var(--shadow-lg);
}

.section-padding {
padding: 5rem 0;
}

.step-icon {
width: 80px;
height: 80px;
display: flex;
align-items: center;
justify-content: center;
background-color: rgba(67, 97, 238, 0.1);
color: var(--primary);
font-size: 2.5rem;
border-radius: var(--border-radius);
margin: 0 auto;
}

/*--------------------------------------------------------------
# Feature Cards
--------------------------------------------------------------*/
.feature-card {
  background-color: white;
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  height: 100%;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.feature-card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, var(--primary), var(--primary-dark));
  z-index: -1;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light) 0%, rgba(67, 97, 238, 0.2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: var(--primary);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, rgba(67, 97, 238, 0.2) 0%, var(--primary-light) 100%);
}

/*--------------------------------------------------------------
# Login & Authentication
--------------------------------------------------------------*/
.login-container {
  min-height: 100vh;
  background-color: var(--grey-100);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
}

.login-card {
  width: 100%;
  max-width: 750px;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.login-left-panel {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.login-left-panel:before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 60%);
}

.login-left-content {
  position: relative;
  z-index: 1;
}

.login-left-header {
  margin-bottom: 1rem;
}

.login-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.login-title {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.text-highlight {
  position: relative;
  color: white;
}

.text-highlight:after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.2);
  z-index: -1;
  border-radius: 4px;
}

.login-description {
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.4;
}

.login-features {
  margin-top: 1.5rem;
}

.login-feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.75rem;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

.login-feature-item:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateX(5px);
}

.login-feature-item:last-child {
  margin-bottom: 0;
}

.login-feature-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
  font-size: 1rem;
  flex-shrink: 0;
}

.login-feature-item:hover .login-feature-icon {
  background-color: rgba(255, 255, 255, 0.3);
}

.login-right-panel {
  background-color: white;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-right-content {
  max-width: 300px;
  width: 100%;
}

.login-logo {
  margin-bottom: 2rem;
}

.text-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-google {
  background-color: var(--primary);
  color: white;
  border: 1px solid var(--primary);
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.btn-google:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-google i {
  color: white;
  font-size: 1.25rem;
  margin-right: 10px;
}

.login-info-card {
  background-color: var(--primary-light);
  border-radius: var(--border-radius);
  padding: 1rem;
  display: flex;
  align-items: center;
  margin-top: 2rem;
}

.login-info-icon {
  color: var(--primary);
  font-size: 1.5rem;
  margin-right: 1rem;
}

@media (max-width: 991.98px) {
  .login-left-content, .login-right-content {
      padding: 2rem;
  }
  
  .login-title {
      font-size: 1.75rem;
  }
  
  .login-description {
      font-size: 1rem;
      margin-bottom: 2rem;
  }
  
  .login-features {
      display: none;
  }
}

@media (max-width: 767.98px) {
  .login-container {
      padding: 1rem;
  }
  
  .login-left-panel {
      display: none; /* Hide the left panel on smaller screens */
  }
  
  .login-right-content {
      padding: 2rem 1.5rem;
  }
}

/*--------------------------------------------------------------
# Dashboard Components
--------------------------------------------------------------*/
/* Dashboard Container - Common across student/counselor/admin dashboards */
.dashboard-container {
  background-color: #f9fafc;
  min-height: calc(100vh - 76px);
  padding-bottom: 2rem;
}

.dashboard-header {
  margin-bottom: 2rem;
}

.dashboard-card {
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.dashboard-card-header {
  background-color: white;
  border-bottom: 1px solid var(--grey-200);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dashboard-card-header h4 {
  margin-bottom: 0;
  font-weight: 600;
}

.dashboard-card-body {
  padding: 1.5rem;
}

.dashboard-stat {
  text-align: center;
}

.dashboard-stat-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1rem;
}

.dashboard-stat-number {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.dashboard-stat-label {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* Welcome Card - Used in multiple dashboards */
.welcome-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  color: white;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.welcome-content {
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.welcome-decoration {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 2rem;
}

.welcome-decoration i {
  font-size: 8rem;
  color: rgba(255, 255, 255, 0.2);
  animation: float 3s ease-in-out infinite;
}

.welcome-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
}

.welcome-actions .btn {
  margin-right: 1rem;
  margin-bottom: 1rem;
}


/* Info Cards - Used across dashboards */
.info-card {
  height: 100%;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  background-color: white;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.info-card-body {
  padding: 1.5rem;
}

.info-card-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.info-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark);
}

.info-card-text {
  color: var(--text-secondary);
}

.info-card-text p {
  margin-bottom: 0.5rem;
}

.info-card-text p:last-child {
  margin-bottom: 0;
}

/* Quick Action Items */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.action-item {
  background: white;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.action-item:hover {
  transform: translateY(-5px);
}

.action-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

.action-primary .action-icon {
  background-color: var(--primary-light);
  color: var(--primary);
}

.action-success .action-icon {
  background-color: var(--success-light);
  color: var(--success);
}

.action-info .action-icon {
  background-color: var(--info);
  color: var(--info);
}

.action-warning .action-icon {
  background-color: var(--warning-light);
  color: var(--warning);
}

/* System Info */
.system-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.info-item {
  background: white;
  padding: 1rem;
  border-radius: var(--border-radius);
  flex: 1;
  min-width: 150px;
  box-shadow: var(--shadow-sm);
}

.info-item:last-child {
  margin-right: 0;
}

.info-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
  display: block;
  font-weight: 500;
}

/*--------------------------------------------------------------
# Student Components
--------------------------------------------------------------*/
/* Student Items - Used in student dashboard */
.student-choices-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.student-choice-item {
  display: flex;
  align-items: center;
  background-color: white;
  border-radius: var(--border-radius);
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
}

.student-choice-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  background-color: var(--primary-light);
}

.student-choice-avatar, .student-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-right: 1rem;
  font-size: 1.1rem;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  border: 2px solid white;
}

.student-choice-details {
  flex: 1;
}

.student-choice-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--dark);
}

.student-choice-class {
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: inline-block;
  background-color: var(--grey-200);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.student-choice-number {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
  margin-left: 1rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Choice Progress - Used in student dashboard */
.choice-progress-container {
  display: flex;
  align-items: center;
}

.choice-progress {
  flex-grow: 1;
  height: 8px;
  background-color: var(--grey-200);
  border-radius: 4px;
}

.choice-progress-bar {
  height: 100%;
  background-color: var(--success);
  border-radius: 4px;
}

.choice-progress-text {
  font-weight: 500;
  color: var(--text-secondary);
}

/* Estilos da página No Choices Period */
.error-icon {
font-size: 4rem;
color: #6c757d;
opacity: 0.7;
}

.info-icon {
width: 50px;
height: 50px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.2rem;
}

.bg-primary-light {
background-color: rgba(13, 110, 253, 0.1);
}

.bg-success-light {
background-color: rgba(25, 135, 84, 0.1);
}

.bg-warning-light {
background-color: rgba(255, 193, 7, 0.1);
}

.info-section {
height: 100%;
}

.contact-item {
padding: 8px 0;
}

.animate-on-scroll {
opacity: 0;
transform: translateY(20px);
transition: all 0.6s ease;
}

.animate-on-scroll.delay-100 {
transition-delay: 0.1s;
}

.animate-on-scroll.delay-200 {
transition-delay: 0.2s;
}

.animate-on-scroll.delay-300 {
transition-delay: 0.3s;
}


/*--------------------------------------------------------------
# Observação Geral - Estilos específicos
--------------------------------------------------------------*/
.observacao-card {
background: white;
border-radius: var(--border-radius-lg);
overflow: hidden;
box-shadow: var(--shadow);
transition: all 0.3s ease;
margin-bottom: 2rem;
border-left: 4px solid var(--primary);
}

.observacao-card:hover {
box-shadow: var(--shadow-lg);
transform: translateY(-5px);
}

.observacao-card .card-header {
background-color: white;
border-bottom: 1px solid var(--grey-200);
padding: 1.25rem 1.5rem;
}

.observacao-card .card-body {
padding: 1.5rem;
}

#observacaoInput {
border: 1px solid var(--grey-300);
border-radius: 0.5rem;
padding: 1rem;
resize: none;
overflow-y: auto;
height: 308px; /* Altura fixa definida para ocupar o espaço necessário */
min-height: 120px; /* Altura mínima em caso de telas pequenas */
max-height: 500px; /* Altura máxima para telas muito grandes */
transition: all 0.25s ease;
font-size: 0.95rem;
line-height: 1.6;
background-color: #fcfcfc;
}

#observacaoInput:focus {
border-color: var(--primary);
box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.2);
outline: none;
background-color: white;
}

#observacaoInput::placeholder {
color: #adb5bd;
font-style: italic;
}

.observacao-card .form-text {
color: var(--grey-600);
font-size: 0.85rem;
margin-top: 0.5rem;
}

.observacao-card .btn-primary {
background-color: var(--primary);
border-color: var(--primary);
transition: all 0.25s ease;
box-shadow: 0 2px 4px rgba(67, 97, 238, 0.2);
font-weight: 500;
}

.observacao-card .btn-primary:hover {
background-color: var(--primary-dark);
border-color: var(--primary-dark);
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(67, 97, 238, 0.3);
}

.observacao-card .btn-primary:active {
transform: translateY(0);
}

.observacao-label {
font-weight: 500;
color: var(--grey-700);
margin-bottom: 0.75rem;
font-size: 0.95rem;
}

.observacao-label .text-primary {
font-weight: 600;
}

.observacao-timestamp {
font-size: 0.8rem;
color: var(--grey-500);
display: flex;
align-items: center;
}

.observacao-timestamp:before {
content: '\f017';
font-family: 'Font Awesome 5 Free';
margin-right: 0.4rem;
opacity: 0.7;
}

/* Efeito de animação ao salvar a observação - Aprimorado */
@keyframes highlight {
0% {
  background-color: transparent;
}
30% {
  background-color: rgba(32, 201, 151, 0.1);
}
100% {
  background-color: transparent;
}
}

@keyframes pulseBorder {
0% {
  border-color: var(--grey-300);
  box-shadow: none;
}
50% {
  border-color: var(--success);
  box-shadow: 0 0 0 4px rgba(32, 201, 151, 0.25);
}
100% {
  border-color: var(--grey-300);
  box-shadow: none;
}
}

/* Classe para animação de salvamento */
.observacao-saved {
animation: highlight 2s ease;
}

.observacao-saved #observacaoInput {
animation: pulseBorder 2s ease;
}

/* Animação de brilho para a borda lateral */
@keyframes glowBorder {
0% {
  border-left-color: var(--primary);
}
50% {
  border-left-color: var(--success);
}
100% {
  border-left-color: var(--primary);
}
}

.observacao-saved {
animation: highlight 2s ease, glowBorder 2s ease;
}

/* Melhorias para o card quando colocado na coluna da direita */
.col-lg-5 .card .observacao-label {
color: var(--dark);
}

/* Ajustes responsivos para telas menores */
@media (max-width: 992px) {
#observacaoInput {
  height: 200px; /* Altura menor em telas médias */
}
}

@media (max-width: 768px) {
#observacaoInput {
  height: 150px; /* Altura ainda menor em telas pequenas */
}
}

@media (max-height: 800px) {
#observacaoInput {
  height: 200px; /* Ajuste para telas com altura menor */
}
}


/*--------------------------------------------------------------
# Counselor Components
--------------------------------------------------------------*/
/* Series card - Used in counselor dashboard */
.series-selection {
  margin-top: 1rem;
}

.series-card {
  display: flex;
  align-items: center;
  background-color: var(--grey-100);
  border-radius: var(--border-radius);
  padding: 1rem;
  text-decoration: none;
  color: var(--grey-800);
  transition: var(--transition-base);
  border-left: 3px solid var(--primary);
}

.series-card:hover {
  background-color: white;
  box-shadow: var(--shadow-sm);
}

.series-card-alt {
  border-left-color: var(--success);
}

.series-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(67, 97, 238, 0.1);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-right: 1rem;
}

.series-card-alt .series-icon {
  background-color: rgba(6, 214, 160, 0.1);
  color: var(--success);
}

.series-info {
  flex: 1;
}

.series-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.series-action {
  font-size: 0.875rem;
  color: var(--primary);
}

.series-card-alt .series-action {
  color: var(--success);
}

/* Guide Sections - Used in counselor dashboard */
.guide-section {
  margin-bottom: 1.5rem;
}

.guide-title {
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.guide-list {
  padding-left: 1.25rem;
  margin-bottom: 0;
}

.guide-list li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.guide-list li:last-child {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Admin Components
--------------------------------------------------------------*/
/* Form Fields - Used in admin views */
.form-field {
  margin-bottom: 0;
}

.form-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-text {
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

.input-group-text {
  border: 1px solid var(--grey-300);
  background-color: var(--grey-100);
  color: var(--text-secondary);
  font-weight: 500;
  padding: 0.75rem 1rem;
}

/* Alert size variant */
.alert-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Search input no focus style */
#counselorSearch:focus,
#administratorSearch:focus {
  box-shadow: none;
  border-color: #dee2e6;
}

#counselorSearch:focus + .input-group-text,
#administratorSearch:focus + .input-group-text {
  border-color: #dee2e6;
}

/*--------------------------------------------------------------
# ADMIN - Counselor Form Components
--------------------------------------------------------------*/
/* Email input wrapper with verify button */
.email-input-wrapper {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.input-group-custom {
  flex: 1;
  display: flex;
  align-items: center;
  border-bottom: 2px solid #dee2e6;
  padding-bottom: 0.5rem;
  transition: border-color 0.3s ease;
}

.input-group-custom:focus-within {
  border-bottom-color: var(--primary);
}

.input-icon {
  margin-right: 0.75rem;
  font-size: 1.1rem;
}

.form-control-custom {
  flex: 1;
  border: none;
  outline: none;
  padding: 0;
  background-color: transparent;
  font-size: 1rem;
}

.form-control-custom:focus {
  outline: none;
}

.btn-verify {
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.65rem 1.5rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.3s ease;
  cursor: pointer;
  height: 42px;
}

.btn-verify:hover {
  background-color: #3a56d4;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

.btn-verify:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Override input-group styles for counselor form additional fields */
#additionalFields .input-group {
  display: flex;
  align-items: center;
  border-bottom: 2px solid #dee2e6;
  padding-bottom: 0.5rem;
}

#additionalFields .input-group-text {
  border: none;
  background-color: transparent;
  margin-right: 0.75rem;
  padding: 0;
}

#additionalFields .form-control {
  border: none;
  padding-left: 0;
  background-color: transparent;
  flex: 1;
}

#additionalFields .form-control:focus {
  box-shadow: none;
  background-color: transparent;
  outline: none;
}

#additionalFields .input-group:focus-within {
  border-bottom-color: var(--primary);
}

/* Admin Tables */
.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.admin-table th {
  background-color: var(--grey-100);
  color: var(--text-secondary);
  font-weight: 600;
  padding: 1rem;
}

.admin-table td {
  padding: 1rem;
  vertical-align: middle;
}

.admin-table tbody tr:hover {
  background-color: var(--primary-light);
}

.table-responsive {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  overflow-y: auto;
}

/*--------------------------------------------------------------
# Student Choices Page
--------------------------------------------------------------*/
.choice-progress-card {
background: linear-gradient(135deg, var(--primary) 0%, #3a56d4 100%);
border-radius: var(--border-radius-lg);
overflow: hidden;
color: white;
box-shadow: var(--shadow-lg);
}

.progress-content {
padding: 2rem;
}

.progress-container {
max-width: 100%;
}

.progress-count {
font-weight: 600;
}

.progress-complete {
color: #8affb4;
font-weight: 600;
}

.progress-decoration {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
}

.progress-decoration i {
font-size: 8rem;
opacity: 0.2;
animation: float 3s ease-in-out infinite;
}

.choice-item {
display: flex;
align-items: center;
background-color: var(--grey-100);
border-radius: var(--border-radius);
padding: 0.75rem;
border-left: 3px solid var(--success);
transition: var(--transition-base);
animation: slideIn 0.3s ease forwards;
}

.choice-item:hover {
background-color: white;
box-shadow: var(--shadow-sm);
}

.choice-number {
width: 24px;
height: 24px;
background-color: var(--success);
color: white;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-weight: 600;
font-size: 0.8rem;
margin-right: 0.75rem;
}

.choice-avatar {
width: 42px;
height: 42px;
border-radius: 50%;
background-color: var(--primary);
color: white;
display: flex;
align-items: center;
justify-content: center;
font-weight: 600;
font-size: 1rem;
margin-right: 0.75rem;
}

.choice-name {
font-weight: 600;
font-size: 0.95rem;
line-height: 1.2;
}

.choice-class {
color: var(--text-secondary);
font-size: 0.85rem;
}

.choice-action {
margin-left: 0.5rem;
}

@keyframes slideIn {
from {
    opacity: 0;
    transform: translateX(-20px);
}
to {
    opacity: 1;
    transform: translateX(0);
}
}

@media (max-width: 991.98px) {
.progress-content {
    padding: 1.5rem;
}
}

/* Redesigned remove choice button with trash icon */
.choice-item {
position: relative;
padding: 10px 12px;
animation: slideIn 0.3s ease forwards;
border-left: 3px solid var(--primary);
margin-bottom: 12px;
transition: all 0.2s ease;
}

.choice-item:hover {
background-color: white;
box-shadow: var(--shadow);
}

/* Reposition the choice action to be properly aligned */
.choice-action {
position: absolute;
right: 12px;
top: 0;
bottom: 0;
display: flex;
align-items: center;
justify-content: center;
}

.choice-action .btn-outline-danger.rounded-circle {
width: 32px;
height: 32px;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.25s ease;
background-color: transparent;
color: var(--grey-500);
border: none;
opacity: 0.7;
}

.choice-action .btn-outline-danger.rounded-circle:hover {
background-color: var(--danger-light);
color: var(--danger);
opacity: 1;
}

.choice-action .btn-outline-danger.rounded-circle:active {
transform: scale(0.95);
}

.choice-action .btn-outline-danger.rounded-circle:focus {
box-shadow: 0 0 0 2px var(--danger-light);
outline: none;
}

/* Animation for when a choice is removed */
@keyframes fadeOut {
from {
    opacity: 1;
    transform: translateX(0);
}
to {
    opacity: 0;
    transform: translateX(-15px);
}
}

.choice-item.removing {
animation: fadeOut 0.25s ease forwards;
border-left-color: var(--danger);
}

/* Adjust choice info to make room for trash icon */
.choice-info {
padding-right: 40px; /* Space for the trash icon */
}

/*--------------------------------------------------------------
# Student Choices Page - Enhanced Layout
--------------------------------------------------------------*/

/* Nova classe para a tabela de estudantes - altura simétrica */
.students-table-card {
height: 100%;
}

.students-table-container {
min-height: 722px;
max-height: 722px;
overflow-y: auto;
border-radius: var(--border-radius);
}

/* Ajuste da altura específica para telas médias e grandes */
@media (min-width: 992px) {
.students-table-container {
    height: 722px; /* Altura fixa em telas grandes para simetria */
}
}

@media (max-width: 991.98px) {
.students-table-container {
    height: 500px; /* Altura menor em telas médias */
}
}

@media (max-width: 768px) {
.students-table-container {
    height: 350px; /* Altura ainda menor em telas pequenas */
}
}

/*--------------------------------------------------------------
# Modal de Confirmação de Escolhas
--------------------------------------------------------------*/

/* Seções do modal */
.confirmation-section {
background-color: var(--grey-100);
border-radius: var(--border-radius);
padding: 1.5rem;
border-left: 4px solid var(--primary);
}

.confirmation-section:last-child {
border-left-color: var(--primary);
background-color: var(--primary-light);
}

.section-title {
font-weight: 600;
color: var(--dark);
margin-bottom: 1rem;
font-size: 1.1rem;
display: flex;
align-items: center;
}

/* Container das escolhas no modal */
.modal-choices-container {
max-height: 300px;
overflow-y: auto;
padding-right: 10px;
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 0.75rem 0.75rem;
align-items: start; /* Garantir que todos os itens comecem no topo */
}

.modal-choice-item {
display: flex;
align-items: center;
background-color: white;
border-radius: var(--border-radius);
padding: 1rem;
margin-bottom: 0.75rem;
box-shadow: var(--shadow-sm);
border-left: 3px solid var(--primary);
transition: all 0.3s ease;
min-height: 80px; /* Altura mínima fixa para todos os itens */
height: 80px; /* Altura fixa para garantir uniformidade */
overflow: hidden; /* Evita quebra de layout */
}

.modal-choice-item:hover {
transform: translateY(-2px);
box-shadow: var(--shadow);
}

.modal-choice-item:last-child {
margin-bottom: 0;
}

.modal-choice-number {
width: 32px;
height: 32px;
background-color: var(--primary);
color: white;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-weight: 700;
font-size: 0.9rem;
margin-right: 1rem;
box-shadow: 0 2px 4px rgba(67, 97, 238, 0.3);
}

.modal-choice-avatar {
width: 48px;
height: 48px;
border-radius: 50%;
background-color: var(--primary);
color: white;
display: flex;
align-items: center;
justify-content: center;
font-weight: 600;
font-size: 1.1rem;
margin-right: 1rem;
box-shadow: 0 2px 4px rgba(67, 97, 238, 0.3);
}

.modal-choice-avatar img {
width: 48px;
height: 48px;
border-radius: 50%;
object-fit: cover;
}

.modal-choice-info {
flex: 1;
}

.modal-choice-name {
font-weight: 600;
color: var(--dark);
margin-bottom: 0.25rem;
font-size: 1rem;
}

.modal-choice-class {
color: var(--text-secondary);
font-size: 0.875rem;
background-color: var(--grey-200);
padding: 0.25rem 0.5rem;
border-radius: 4px;
display: inline-block;
}

/* Container da observação no modal */
.modal-observacao-container {
background-color: white;
border-radius: var(--border-radius);
padding: 1rem;
box-shadow: var(--shadow-sm);
border: 1px solid var(--grey-200);
}

.observacao-display {
min-height: 80px;
max-height: 200px;
overflow-y: auto;
font-size: 0.95rem;
line-height: 1.6;
color: var(--text-primary);
white-space: pre-wrap;
word-wrap: break-word;
}

.observacao-display.empty {
color: var(--text-secondary);
font-style: italic;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
}

/* Checkbox de confirmação */
.form-check {
background-color: white;
border-radius: var(--border-radius);
padding: 1rem;
box-shadow: var(--shadow-sm);
border: 1px solid var(--grey-200);
}

.form-check-input {
width: 1.25rem;
height: 1.25rem;
border: 2px solid var(--success);
border-radius: 4px;
}

.form-check-input:checked {
background-color: var(--success);
border-color: var(--success);
}

.form-check-input:focus {
box-shadow: 0 0 0 0.25rem rgba(32, 201, 151, 0.25);
}

.form-check-label {
margin-left: 0.5rem;
color: var(--dark);
cursor: pointer;
}

/* Modal header customizado */
#confirmChoicesModal .modal-header {
background: linear-gradient(135deg, var(--primary) 0%, #3a56d4 100%);
border-bottom: none;
color: #fff;
}

#confirmChoicesModal .modal-title {
color: #fff;
}

/* Modal body spacing to fit more content without scroll */
#confirmChoicesModal .modal-body {
padding: 1.5rem 1.5rem 1rem;
}

/* Make modal nearly full-width on larger screens */
#confirmChoicesModal .modal-dialog {
width: 80vw;
max-width: 900px;
margin-left: auto;
margin-right: auto;
}

/* Constrain inner content width for better readability */
#confirmChoicesModal .modal-body {
display: flex;
justify-content: center;
}
#confirmChoicesModal .modal-body > .row {
width: 100%;
max-width: 900px;
}

@media (min-width: 1200px) {
#confirmChoicesModal .modal-body {
  max-height: none;
  overflow: visible;
}
.modal-choices-container {
  max-height: none;
  overflow: visible;
}
}

/* Keep two columns and avoid clipping */
.modal-choices-container {
grid-template-columns: repeat(2, minmax(280px, 1fr));
gap: 1rem 1rem;
align-items: stretch; /* Força todos os itens a terem a mesma altura na linha */
}

/* Garantir altura uniforme para itens em grid */
.modal-choice-item {
display: flex;
align-items: center; /* Manter layout horizontal */
height: 100%; /* Ocupa toda a altura disponível no grid */
}

/* On medium screens, still try to keep two columns if possible */
@media (max-width: 991.98px) {
.modal-choices-container {
  grid-template-columns: 1fr;
  max-height: 60vh;
  overflow-y: auto;
}
}

/* Larger avatars to highlight photos */
.modal-choice-avatar {
width: 48px;
height: 48px;
font-size: 1rem;
}
.modal-choice-avatar img {
width: 48px;
height: 48px;
}

/* Slightly more compact padding for items */
.modal-choice-item {
padding: 0.75rem;
}

@media (max-width: 768px) {
.modal-choice-avatar {
  width: 44px;
  height: 44px;
  font-size: 0.95rem;
}
.modal-choice-avatar img {
  width: 44px;
  height: 44px;
}
}

/* Darker accents for items to match dark purple */
.modal-choice-item {
border-left-color: #3a56d4;
}
.modal-choice-number {
background-color: #3a56d4;
box-shadow: 0 2px 4px rgba(58, 86, 212, 0.3);
}

/* Modal footer: subtle separation */
#confirmChoicesModal .modal-footer {
background-color: var(--grey-100);
border-top: 1px solid var(--grey-200);
}

/* Botão de salvar final */
#finalSaveBtn:disabled {
opacity: 0.6;
cursor: not-allowed;
}

#finalSaveBtn:not(:disabled) {
background-color: var(--success);
border-color: var(--success);
box-shadow: 0 4px 8px rgba(32, 201, 151, 0.3);
}

#finalSaveBtn:not(:disabled):hover {
background-color: #1ba67e;
border-color: #1ba67e;
transform: translateY(-2px);
box-shadow: 0 6px 12px rgba(32, 201, 151, 0.4);
}

/* Estado vazio no modal */
.modal-empty-state {
text-align: center;
padding: 2rem;
color: var(--text-secondary);
}

.modal-empty-state i {
font-size: 3rem;
margin-bottom: 1rem;
color: var(--grey-400);
}

/* Animações para o modal */
@keyframes slideInFromRight {
from {
    opacity: 0;
    transform: translateX(20px);
}
to {
    opacity: 1;
    transform: translateX(0);
}
}

.modal-choice-item {
animation: slideInFromRight 0.3s ease-out;
}

.modal-choice-item:nth-child(1) { animation-delay: 0.1s; }
.modal-choice-item:nth-child(2) { animation-delay: 0.2s; }
.modal-choice-item:nth-child(3) { animation-delay: 0.3s; }
.modal-choice-item:nth-child(4) { animation-delay: 0.4s; }
.modal-choice-item:nth-child(5) { animation-delay: 0.5s; }

/* Scrollbar customizada para o modal */
.modal-choices-container::-webkit-scrollbar {
width: 6px;
}

.modal-choices-container::-webkit-scrollbar-track {
background: var(--grey-100);
border-radius: 3px;
}

.modal-choices-container::-webkit-scrollbar-thumb {
background: var(--grey-300);
border-radius: 3px;
}

.modal-choices-container::-webkit-scrollbar-thumb:hover {
background: var(--grey-400);
}

.observacao-display::-webkit-scrollbar {
width: 6px;
}

.observacao-display::-webkit-scrollbar-track {
background: var(--grey-100);
border-radius: 3px;
}

.observacao-display::-webkit-scrollbar-thumb {
background: var(--grey-300);
border-radius: 3px;
}

.observacao-display::-webkit-scrollbar-thumb:hover {
background: var(--grey-400);
}

/* Responsividade do modal */
@media (max-width: 768px) {
#confirmChoicesModal .modal-dialog {
    margin: 1rem;
}

.modal-choice-item {
    padding: 0.75rem;
}

.modal-choice-avatar {
    width: 40px;
    height: 40px;
    font-size: 1rem;
}

.modal-choice-number {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
}

.confirmation-section {
    padding: 1rem;
}

.modal-choices-container {
    grid-template-columns: 1fr;
}
}


/*--------------------------------------------------------------
# Sociogram Styles
--------------------------------------------------------------*/
/* Estilos gerais do dashboard */
.dashboard-container {
background-color: var(--grey-100);
min-height: calc(100vh - 76px);
}

/* Estilos do container do sociograma */
.sociogram-container {
width: 100%;
height: 600px;
background-color: white;
border-radius: var(--border-radius);
overflow: hidden;
}

/* Estilos para a lista de alunos no sociograma */
.student-list-row.student-isolated td {
background-color: rgba(230, 57, 70, 0.05);
}

.student-list-row:hover {
cursor: pointer;
background-color: var(--primary-light) !important;
}

/* Enhanced badges for the student list */
.student-list-row .badge {
min-width: 28px;
padding: 0.35rem 0.6rem;
font-size: 0.8rem;
}

/* Sort indicators */
#studentListTable th {
cursor: pointer;
position: relative;
}

#studentListTable th.sort-asc::after {
content: '▲';
position: absolute;
right: 8px;
color: var(--primary);
}

#studentListTable th.sort-desc::after {
content: '▼';
position: absolute;
right: 8px;
color: var(--primary);
}

/* Estilo para as linhas na tabela de alunos */
.student-list-row {
transition: all 0.2s ease;
}

/* Estilo para as células da tabela */
#studentListTable td {
padding: 0.75rem 1rem;
vertical-align: middle;
}

/* Avatar do aluno na lista */
#studentListTable .student-avatar {
border: 2px solid white;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
transition: all 0.2s ease;
}

.student-list-row:hover .student-avatar {
transform: scale(1.05);
}

/* Botão de detalhes na lista */
#studentListTable .btn-outline-primary {
border-radius: 20px;
padding: 0.25rem 0.75rem;
font-size: 0.8rem;
transition: all 0.2s ease;
}

#studentListTable .btn-outline-primary:hover {
transform: translateY(-2px);
box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
}

/* Estilo para alunos populares (com muitas escolhas recebidas) */
.student-list-row.student-popular td {
background-color: rgba(32, 201, 151, 0.05);
}

/* Estilo para contagem das escolhas */
.choice-count {
font-weight: bold;
font-size: 1.1rem;
}

/* Animação para novos itens na lista */
@keyframes fadeInUp {
from {
    opacity: 0;
    transform: translateY(10px);
}
to {
    opacity: 1;
    transform: translateY(0);
}
}

.student-list-row {
animation: fadeInUp 0.3s ease-out;
}

/* Status filter pills */
.student-filter-pills {
display: flex;
gap: 0.5rem;
margin-bottom: 1rem;
flex-wrap: wrap;
}

.student-filter-pill {
background-color: var(--grey-100);
border: 1px solid var(--grey-300);
border-radius: 20px;
padding: 0.35rem 1rem;
font-size: 0.85rem;
cursor: pointer;
transition: all 0.2s ease;
}

.student-filter-pill:hover {
background-color: var(--grey-200);
}

.student-filter-pill.active {
background-color: var(--primary);
color: white;
border-color: var(--primary);
}

/* Contador de itens filtrados */
.filter-counter {
font-size: 0.75rem;
margin-left: 0.35rem;
background-color: rgba(255, 255, 255, 0.3);
padding: 0.15rem 0.4rem;
border-radius: 10px;
}

/* Estilos da legenda */
.sociogram-legend {
background-color: var(--grey-100);
padding: 1rem;
border-radius: var(--border-radius);
}

.legend-item {
display: flex;
align-items: center;
}

.legend-color {
width: 16px;
height: 16px;
border-radius: 50%;
margin-right: 6px;
}

.legend-text {
font-size: 0.9rem;
}

/* Estilos para os elementos SVG do sociograma */
.nodes circle {
cursor: pointer;
transition: r 0.2s ease-in-out;
stroke: #ffffff;
stroke-width: 2px;
pointer-events: auto; /* Garantir que os eventos de clique funcionem */
}

.nodes circle:hover {
r: 24;
stroke-width: 3px;
transition: all 0.2s ease;
}

.nodes text {
font-family: var(--font-family-sans-serif);
font-size: 10px;
pointer-events: none;
}

.links line {
stroke-opacity: 0.6;
}

.nodes {
pointer-events: all;
}

.node {
cursor: pointer; /* Mudado de 'move' para 'pointer' */
}

/* Estilos para o ícone de estado vazio */
.empty-state-icon {
width: 60px;
height: 60px;
background-color: var(--grey-200);
color: var(--text-secondary);
font-size: 1.5rem;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto;
}

/* Estilos para detalhes do aluno */
.student-detail-card {
background-color: white;
border-radius: var(--border-radius);
overflow: hidden;
}

.student-detail-header {
display: flex;
align-items: center;
padding: 1.5rem;
border-bottom: 1px solid var(--grey-200);
}

.student-avatar {
width: 60px;
height: 60px;
border-radius: 50%;
background-color: var(--primary);
color: white;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5rem;
font-weight: bold;
margin-right: 1rem;
}

.student-name {
margin-bottom: 0.25rem;
font-weight: 600;
}

.student-class {
color: var(--text-secondary);
}

.student-detail-stats {
padding: 1.5rem;
}

.stat-card {
background-color: var(--grey-100);
border-radius: var(--border-radius);
padding: 1rem;
height: 100%;
}

.stat-header {
display: flex;
align-items: center;
margin-bottom: 0.75rem;
}

.stat-header h5 {
margin-bottom: 0;
font-size: 1rem;
font-weight: 600;
}

.choice-list {
list-style: none;
padding-left: 0;
margin-bottom: 0;
}

.choice-item {
border-bottom: 1px solid var(--grey-200);
padding: 0.5rem 0;
font-size: 0.9rem;
}

.choice-item:last-child {
border-bottom: none;
}

.student-detail-footer {
padding: 1rem 1.5rem;
background-color: var(--grey-100);
border-top: 1px solid var(--grey-200);
}

/*--------------------------------------------------------------
# Class Assembly Components
--------------------------------------------------------------*/
.assembly-instructions {
border-left: 4px solid var(--primary);
}

.icon-container {
font-size: 1.5rem;
}

.unassigned-container,
.class-container-wrapper {
background-color: white;
border-radius: var(--border-radius);
box-shadow: var(--shadow-sm);
overflow: hidden;
height: 100%;
display: flex;
flex-direction: column;
}

/* Específico para o container de não alocados - fazer a área de conteúdo ocupar todo o espaço */
#future-unassigned-container {
flex: 1;
height: auto;
min-height: 0;
max-height: 920px;
overflow-y: auto;
display: flex;
flex-direction: column;
}

/* Garantir que o container de não alocados ocupe toda a altura disponível */
.allocation-panel .unassigned-container {
flex: 1;
display: flex;
flex-direction: column;
}

.container-header {
background-color: var(--grey-700);
color: white;
padding: 0.75rem 1rem;
font-weight: 600;
display: flex;
align-items: center;
justify-content: space-between;
}

.container-badge {
background-color: rgba(255, 255, 255, 0.3);
border-radius: 50%;
width: 24px;
height: 24px;
display: flex;
align-items: center;
justify-content: center;
font-size: 0.75rem;
font-weight: 700;
}

.gender-counters {
position: absolute;
top: 40px;
right: 8px;
z-index: 10;
display: flex;
flex-direction: row;
gap: 4px;
pointer-events: none;
}

.future-class-display {
height: 1000px !important;
overflow: hidden;
position: relative;
}

.future-class-display .class-container {
height: auto;
max-height: 920px !important;
min-height: 920px;
overflow-y: auto;
position: relative;
}

/* Cores personalizadas para as etiquetas de sexo */
.gender-counters .badge {
font-size: 0.75rem;
font-weight: 700;
padding: 0.375rem 0.75rem;
border-radius: 0.375rem;
white-space: nowrap;
}

.badge.bg-pink {
background-color: #ec4899 !important;
color: white !important;
}

.badge.bg-info {
background-color: #3b82f6 !important;
color: white !important;
}

.bg-primary .container-badge {
background-color: rgba(255, 255, 255, 0.3);
}

.class-container {
flex: 1;
padding: 1rem;
height: auto;
max-height: 920px;
min-height: 0;
overflow-y: auto;
position: relative;
}

.student-item {
background-color: white;
border-radius: var(--border-radius-sm);
margin-bottom: 0.75rem;
padding: 0.75rem;
cursor: pointer;
display: flex;
align-items: center;
border: 1px solid var(--grey-200);
transition: all 0.2s ease;
}

.student-item:last-child {
margin-bottom: 0;
}

.student-item:hover {
background-color: var(--grey-100);
transform: translateX(5px);
}

.student-item.dragging {
    opacity: 0.6;
    border: 3px dashed #3E5BE0;
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 8px 20px rgba(62, 91, 224, 0.4);
    background: linear-gradient(135deg, rgba(62, 91, 224, 0.1), rgba(62, 91, 224, 0.2));
    cursor: grabbing !important;
    z-index: 1000;
    transition: all 0.2s ease;
}

.student-avatar {
width: 36px;
height: 36px;
border-radius: 50%;
background-color: var(--primary);
color: white;
display: flex;
align-items: center;
justify-content: center;
font-weight: 600;
font-size: 0.9rem;
margin-right: 0.75rem;
}

.student-info {
flex: 1;
}

.student-name {
font-weight: 600;
font-size: 0.9rem;
line-height: 1.2;
}

.empty-placeholder {
text-align: center;
padding: 2rem 1rem;
color: var(--grey-500);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100%;
min-height: 150px;
}

.empty-placeholder i {
font-size: 2rem;
margin-bottom: 1rem;
}

.empty-placeholder p {
margin-bottom: 0;
}

.empty-state {
text-align: center;
padding: 3rem 1rem;
}

.empty-state-icon {
width: 70px;
height: 70px;
background-color: var(--grey-200);
color: var(--text-secondary);
font-size: 1.75rem;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 1.25rem;
}

.empty-state-title {
font-weight: 600;
margin-bottom: 0.5rem;
}

.empty-state-description {
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 1.5rem;
}


/* Estilos para a interface de turma futuras */
.allocation-panel {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}

.allocation-header {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.turma-title {
  font-size: 1.1rem;
}


.student-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  margin-bottom: 8px;
  border-radius: 6px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  cursor: grab;
  transition: all 0.2s ease;
}

.student-item:active {
  cursor: grabbing;
}

.student-item:hover {
  background: #e9ecef;
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

.student-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #6c757d;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 10px;
}

.student-info {
  flex: 1;
}

.student-name {
  font-weight: 500;
}

.empty-placeholder {
  text-align: center;
  padding: 30px 0;
  color: #6c757d;
}

.empty-placeholder i {
  font-size: 32px;
  margin-bottom: 10px;
}


.container-badge {
  background: rgba(255,255,255,0.3);
  border-radius: 50px;
  padding: 3px 10px;
  font-weight: bold;
}

/* Efeitos de drag and drop */
.dragging {
    opacity: 0.6;
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 8px 20px rgba(62, 91, 224, 0.4);
    transition: all 0.2s ease;
}


/* Efeito visual quando o item é solto com sucesso - MINIMALISTA */
.student-item.just-dropped {
    animation: dropSuccess 0.5s ease;
    border: 1px solid rgba(58, 86, 212, 0.4) !important;
    background: linear-gradient(135deg, rgba(58, 86, 212, 0.05), rgba(58, 86, 212, 0.08)) !important;
}

@keyframes dropSuccess {
    0% {
        transform: scale(1.02);
        box-shadow: 0 0 0 0 rgba(58, 86, 212, 0.3);
    }
    50% {
        transform: scale(1);
        box-shadow: 0 0 8px 4px rgba(58, 86, 212, 0.15);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(58, 86, 212, 0);
    }
}


/* Estilos para detalhes do aluno */
.student-detail-card {
background-color: white;
border-radius: var(--border-radius);
overflow: hidden;
}

.student-detail-header {
display: flex;
align-items: center;
padding: 1.5rem;
border-bottom: 1px solid var(--grey-200);
}

.student-detail-avatar {
width: 60px;
height: 60px;
border-radius: 50%;
background-color: var(--primary);
color: white;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5rem;
font-weight: bold;
margin-right: 1rem;
}

.student-detail-name {
margin-bottom: 0.25rem;
font-weight: 600;
}

.student-detail-class {
color: var(--text-secondary);
}

.student-detail-stats {
padding: 1.5rem;
}

.stat-card {
background-color: var(--grey-100);
border-radius: var(--border-radius);
padding: 1rem;
height: 100%;
}

.stat-header {
display: flex;
align-items: center;
margin-bottom: 0.75rem;
}

.stat-header h5 {
margin-bottom: 0;
font-size: 1rem;
font-weight: 600;
}

.choice-list {
list-style: none;
padding-left: 0;
margin-bottom: 0;
}

.choice-item {
border-bottom: 1px solid var(--grey-200);
padding: 0.5rem 0;
font-size: 0.9rem;
}

.choice-item:last-child {
border-bottom: none;
}

.student-detail-footer {
padding: 1rem 1.5rem;
background-color: var(--grey-100);
border-top: 1px solid var(--grey-200);
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/

/* Estilos para o footer simplificado */
.footer {
background: linear-gradient(180deg, #1a2036 0%, #121729 100%);
color: white;
padding: 1rem 0;
position: relative;
border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer:before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 2px;
background: linear-gradient(90deg, #4361ee 0%, #3a56d4 50%, #614FE0 100%);
}

.footer-logo {
font-size: 1.3rem;
background: linear-gradient(45deg, #4361ee, #7e6ffa);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}

.footer h5 {
font-weight: 600;
color: white;
font-size: 1.2rem;
}

.footer-copyright {
color: rgba(255, 255, 255, 0.7);
font-size: 0.85rem;
margin: 0;
}

@media (max-width: 768px) {
.footer {
  padding: 0.75rem 0;
}

.footer h5 {
  font-size: 1.1rem;
}

.footer-copyright {
  font-size: 0.8rem;
}

.footer-logo {
  font-size: 1.2rem;
}
}

/*--------------------------------------------------------------
# Empty State - Used across multiple views
--------------------------------------------------------------*/
.empty-state {
  text-align: center;
  padding: 2rem 1rem;
}

.empty-state-icon {
  width: 70px;
  height: 70px;
  background-color: var(--grey-200);
  color: var(--text-secondary);
  font-size: 1.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.empty-state-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.empty-state-description {
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 1.5rem;
}

/*--------------------------------------------------------------
# Color Utility Classes
--------------------------------------------------------------*/
.bg-primary-light {
  background-color: rgba(67, 97, 238, 0.1);
  color: var(--primary);
}

.bg-success-light {
  background-color: rgba(6, 214, 160, 0.1);
  color: var(--success);
}

.bg-warning-light {
  background-color: rgba(255, 209, 102, 0.1);
  color: var(--warning);
}

.bg-danger-light {
  background-color: rgba(234, 84, 85, 0.1); 
  color: var(--danger);
}

/* Purple color classes for counselors */
.bg-purple {
  background-color: #8b5cf6;
}

.text-purple {
  color: #8b5cf6 !important;
}

.text-primary {
  color: var(--primary) !important;
}

.text-success {
  color: var(--success) !important;
}

.text-warning {
  color: var(--warning) !important;
}

.text-danger {
  color: var(--danger) !important;
}

/*--------------------------------------------------------------
# Tables - Used in admin and counselor views
--------------------------------------------------------------*/
.config-table thead th, .student-table thead th {
  border-top: none;
  border-bottom-width: 1px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 1rem;
}

.config-table tbody td, .student-table tbody td {
  padding: 1rem;
  vertical-align: middle;
}

.student-list-item {
  display: flex;
  align-items: center;
}

.class-badge, .series-badge {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
}

.class-badge {
  background-color: var(--primary-light);
  color: var(--primary);
}

.series-badge {
  background-color: var(--secondary-light);
  color: var(--secondary);
}

/*--------------------------------------------------------------
# Modal Styles
--------------------------------------------------------------*/
.modal-icon {
  width: 80px;
  height: 80px;
  background-color: rgba(var(--bs-danger-rgb), 0.1);
  color: var(--bs-danger);
  font-size: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.modal-content {
  border: none;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.modal-header {
  border-bottom: 1px solid var(--grey-200);
  padding: 1.25rem 1.5rem;
}

.modal-footer {
  border-top: 1px solid var(--grey-200);
  padding: 1.25rem 1.5rem;
}

/*--------------------------------------------------------------
# Progress Width Classes
--------------------------------------------------------------*/
.progress-width-20 { width: 20%; }
.progress-width-40 { width: 40%; }
.progress-width-60 { width: 60%; }
.progress-width-80 { width: 80%; }
.progress-width-100 { width: 100%; }

/*--------------------------------------------------------------
# Admin Dashboard Styles
--------------------------------------------------------------*/
/* Dashboard Container - Admin specific */
.admin-dashboard-container {
    background-color: var(--grey-100);
    min-height: calc(100vh - 76px);
}

/* Welcome Card - Admin specific */
.admin-welcome-card {
    background: linear-gradient(135deg, var(--primary) 0%, #3a56d4 100%);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    color: white;
    box-shadow: var(--shadow-lg);
}

.admin-welcome-content {
    padding: 2.5rem;
}

.admin-welcome-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.admin-welcome-decoration i {
    font-size: 8rem;
    opacity: 0.2;
}

.admin-welcome-actions .btn {
    font-weight: 600;
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
}

/* Dashboard Stat Cards - Admin specific */
.dashboard-stat-card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition-base);
}

.dashboard-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.dashboard-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-right: 1.25rem;
}

.dashboard-stat-info {
    flex: 1;
}

.dashboard-stat-label {
    color: var(--grey-600);
    font-size: 0.875rem;
    font-weight: 500;
    display: block;
    margin-bottom: 0.25rem;
}

.dashboard-stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.dashboard-stat-text {
    color: var(--grey-600);
    font-size: 0.875rem;
}

/* Quick Action Grid - Admin specific */
.quick-action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

.quick-action-item {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1.25rem;
    border: 1px solid var(--grey-200);
    transition: var(--transition-base);
    text-decoration: none;
    color: var(--grey-800);
}

.quick-action-item:hover {
    background-color: var(--grey-100);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.quick-action-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: var(--grey-100);
}

.quick-action-item.disabled:hover {
    background-color: var(--grey-100);
    transform: none;
    box-shadow: none;
}

.quick-action-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-right: 1rem;
}

.quick-action-text {
    flex: 1;
}

.quick-action-text h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.quick-action-text p {
    font-size: 0.875rem;
    color: var(--grey-600);
    margin-bottom: 0;
}

/* System Info Items - Admin specific */
.system-info-items {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.system-info-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--grey-200);
}

.system-info-item:last-child {
    border-bottom: none;
}

.system-info-label {
    font-weight: 500;
    color: var(--grey-700);
}

.system-info-value {
    display: flex;
    align-items: center;
    font-weight: 600;
}

/* Counselor Cards - Admin access as counselor - Layout horizontal */
.counselor-card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1.25rem;
    width: 280px;
    min-width: 280px;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition-base);
    border: 1px solid var(--grey-200);
    flex-shrink: 0;
}

.counselor-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.counselor-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #3a56d4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    margin-bottom: 0.75rem;
    flex-shrink: 0;
}

.counselor-info {
    flex: 1;
    margin-bottom: 0.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.counselor-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--grey-800);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.counselor-email {
    font-size: 0.8rem;
    color: var(--grey-600);
    margin-bottom: 0;
    word-break: break-all;
    line-height: 1.2;
}

.counselor-actions {
    width: 100%;
    margin-top: auto;
}

.counselor-actions .btn {
    width: 100%;
    font-weight: 600;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
}

/* Layout horizontal com scroll para orientadores */
.counselors-grid {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--grey-200);
    cursor: grab;
    user-select: none;
    scroll-behavior: smooth;
}

.counselors-grid:active {
    cursor: grabbing;
}

.counselors-grid::-webkit-scrollbar {
    height: 8px;
}

.counselors-grid::-webkit-scrollbar-track {
    background: var(--grey-200);
    border-radius: 4px;
}

.counselors-grid::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.counselors-grid::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Responsividade para layout horizontal */
@media (max-width: 768px) {
    .counselor-card {
        width: 250px;
        min-width: 250px;
        height: 180px;
        padding: 1rem;
    }
    
    .counselor-avatar {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .counselor-name {
        font-size: 0.95rem;
    }
    
    .counselor-email {
        font-size: 0.75rem;
    }
    
    .counselor-actions .btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
}

@media (max-width: 576px) {
    .counselor-card {
        width: 220px;
        min-width: 220px;
        height: 160px;
        padding: 0.875rem;
    }
    
    .counselor-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .counselor-name {
        font-size: 0.9rem;
    }
    
    .counselor-email {
        font-size: 0.7rem;
    }
}

/* Progress Width Classes - Admin specific */
.progress-width-0 { width: 0%; }
.progress-width-10 { width: 10%; }
.progress-width-20 { width: 20%; }
.progress-width-30 { width: 30%; }
.progress-width-40 { width: 40%; }
.progress-width-50 { width: 50%; }
.progress-width-60 { width: 60%; }
.progress-width-70 { width: 70%; }
.progress-width-80 { width: 80%; }
.progress-width-90 { width: 90%; }
.progress-width-100 { width: 100%; }

/* Admin Dashboard Responsive */
@media (max-width: 767.98px) {
    .admin-welcome-content {
        padding: 1.5rem;
    }
    
    .admin-welcome-actions {
        flex-direction: column;
    }
    
    .admin-welcome-actions .btn {
        margin-bottom: 0.75rem;
        margin-right: 0 !important;
        width: 100%;
    }
    
    .quick-action-grid {
        grid-template-columns: 1fr;
    }
}

/*--------------------------------------------------------------
# Animation Styles
--------------------------------------------------------------*/
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animate-active {
  opacity: 1;
  transform: translateY(0);
}

/* Animation delay classes for individual items */
.item-delay-0 { animation-delay: 0ms; }
.item-delay-1 { animation-delay: 100ms; }
.item-delay-2 { animation-delay: 200ms; }
.item-delay-3 { animation-delay: 300ms; }
.item-delay-4 { animation-delay: 400ms; }

/* Animation delay classes for components */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

@keyframes float {
  0% {
      transform: translateY(0);
  }
  50% {
      transform: translateY(-10px);
  }
  100% {
      transform: translateY(0);
  }
}

/*--------------------------------------------------------------
# Responsive Styles
--------------------------------------------------------------*/
@media (max-width: 992px) {
  .hero-section {
      padding: 4rem 0;
  }
  
  .hero-content {
      text-align: center;
      margin-bottom: 2rem;
  }
  
  .footer-content {
      flex-direction: column;
  }
  
  .footer-content > div:first-child {
      width: 100%;
  }
}

@media (max-width: 768px) {
  .hero-section {
      padding: 3rem 0;
  }
  
  .section-padding {
      padding: 3rem 0;
  }
  
  .welcome-content {
      padding: 1.5rem;
  }
  
  .welcome-actions {
      flex-direction: column;
  }
  
  .welcome-actions .btn {
      margin-bottom: 0.75rem;
      margin-right: 0 !important;
      width: 100%;
  }
  
  .info-card-body {
      padding: 1.5rem;
  }
}

@media (max-width: 576px) {
  .btn-lg {
      padding: 0.5rem 1.25rem;
      font-size: 1rem;
  }
  
  .hero-content h1 {
      font-size: 2.5rem;
  }
  
  .hero-content .lead {
      font-size: 1rem;
  }
}

/* Estilos para o perfil do usuário integrado com o SQL Server*/

/* Estilos para alunos da Lista de Alunos*/
.student-avatar img {
width: 50px;
height: 50px;
object-fit: cover;
}

/* Estilos para alunos escolhidos*/
.avatar-img {
width: 45px;
height: 45px;
object-fit: cover;
}

/* Estilos para placeholder de alunos da lista de alunos*/
.student-avatar {
width: 45px;
height: 45px;
background-color: #007bff;
color: white;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
font-weight: bold;
margin-right: 10px;
}

.student-list-item {
display: flex;
align-items: center;
}

/*--------------------------------------------------------------
# Alert Icon Styles
--------------------------------------------------------------*/
.alert-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(13, 110, 253, 0.1);
  color: var(--bs-info);
  flex-shrink: 0;
}

/* Fixed height container for choices to always show 5 slots */
.my-choices {
min-height: 320px; /* Altura para 5 itens */
max-height: 320px;
overflow-y: auto; /* Restaurar barra de rolagem */
padding-right: 8px; /* Espaço para a barra de rolagem */
}

/* Customizar barra de rolagem */
.my-choices::-webkit-scrollbar {
width: 6px;
}

.my-choices::-webkit-scrollbar-track {
background: var(--grey-100);
border-radius: 3px;
}

.my-choices::-webkit-scrollbar-thumb {
background: var(--grey-300);
border-radius: 3px;
}

.my-choices::-webkit-scrollbar-thumb:hover {
background: var(--grey-400);
}

/* Skeleton placeholder for empty choice slots */
.choice-skeleton {
position: relative;
padding: 10px 12px;
border-left: 3px dotted var(--grey-400);
margin-bottom: 12px;
background-color: transparent;
border: 2px dotted var(--grey-300);
border-radius: var(--border-radius-sm);
transition: all 0.3s ease;
min-height: 54px; /* Altura fixa para cada item */
}

.choice-skeleton.animate {
animation: dottedPulse 3s ease-in-out infinite;
}

@keyframes dottedPulse {
0% {
  border-color: var(--grey-300);
  background-color: transparent;
}
50% {
  border-color: var(--grey-400);
  background-color: rgba(var(--grey-300), 0.05);
}
100% {
  border-color: var(--grey-300);
  background-color: transparent;
}
}

/* Ocultar números dos skeletons */
.choice-skeleton .skeleton-number {
display: none; /* Esconder completamente */
}

.choice-skeleton .skeleton-avatar {
width: 42px;
height: 42px;
border-radius: 50%;
border: 2px dotted var(--grey-400);
background-color: transparent;
margin-right: 0.75rem;
display: flex;
align-items: center;
justify-content: center;
color: var(--grey-400);
font-size: 1.2rem;
}

.choice-skeleton .skeleton-avatar:before {
content: "?";
opacity: 0.5;
font-weight: bold;
}

.choice-skeleton .skeleton-info {
flex: 1;
padding-right: 40px;
display: flex;
flex-direction: column;
justify-content: center;
}

.choice-skeleton .skeleton-name {
height: 14px;
border: 1px dotted var(--grey-300);
background-color: transparent;
border-radius: 4px;
margin-bottom: 6px;
width: 60%;
}

.choice-skeleton .skeleton-class {
height: 12px;
border: 1px dotted var(--grey-300);
background-color: transparent;
border-radius: 4px;
width: 45%;
}

.choice-skeleton .skeleton-placeholder {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: var(--grey-500);
font-style: italic;
font-size: 0.85rem;
text-align: center;
pointer-events: none;
background-color: rgba(255, 255, 255, 0.8);
padding: 6px 12px;
border-radius: 16px;
border: 1px dotted var(--grey-400);
font-weight: 500;
white-space: nowrap;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
backdrop-filter: blur(2px);
}

/* Hide skeleton when choice is made */
.choice-skeleton.hidden {
display: none;
}

/* Ocultar números das escolhas reais também */
.choice-item .choice-number {
display: none; /* Esconder números das escolhas */
}

/* Melhorar a transição das escolhas reais */
.choice-item {
min-height: 54px; /* Mesma altura dos skeletons */
transition: all 0.3s ease;
}

.choice-item.animate-in {
animation: slideInChoice 0.4s ease-out forwards;
}

@keyframes slideInChoice {
from {
  opacity: 0;
  transform: translateX(-15px) scale(0.95);
}
to {
  opacity: 1;
  transform: translateX(0) scale(1);
}
}

/* Empty state inside choices: same fixed height and centered */
#emptyChoicesState {
min-height: 320px;
max-height: 320px;
display: flex;
flex-direction: column;
}

/* Container de visualização por turma - altura mínima maior */
#turmasSociogramContainer {
min-height: 380px;
}

/* Dense mode for 5 choices to reduce vertical space */
#modalChoicesList.dense {
gap: 0.5rem 0.5rem;
}
#modalChoicesList.dense .modal-choice-item {
padding: 0.6rem 0.6rem;
}
#modalChoicesList.dense .modal-choice-avatar {
width: 42px;
height: 42px;
font-size: 0.95rem;
}
#modalChoicesList.dense .modal-choice-avatar img {
width: 42px;
height: 42px;
}
#modalChoicesList.dense .modal-choice-number {
width: 28px;
height: 28px;
font-size: 0.8rem;
margin-right: 0.75rem;
}
#modalChoicesList.dense .modal-choice-name {
font-size: 0.95rem;
}
#modalChoicesList.dense .modal-choice-class {
font-size: 0.8rem;
}

/* ===== LEGEND & STATS BAR - Barra de Legendas + Contadores ===== */
.legend-stats-bar {
background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
transition: all 0.3s ease;
}

.legend-badge,
.stat-badge {
transition: all 0.3s ease;
display: inline-flex;
align-items: center;
white-space: nowrap;
font-size: 0.9rem;
}

.legend-badge:hover,
.stat-badge:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.stat-badge i {
font-size: 1rem;
}

.stat-badge .fw-bold {
font-size: 1.1rem;
line-height: 1;
}

.stat-badge.bg-primary {
background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%) !important;
}

/* Separador vertical */
.vr {
background-color: #dee2e6;
opacity: 1;
width: 1px;
}

/* Responsivo para telas menores */
@media (max-width: 1200px) {
.legend-stats-bar .gap-2 {
  gap: 0.5rem !important;
}

.legend-badge,
.stat-badge {
  padding: 0.4rem 0.75rem !important;
  font-size: 0.85rem;
}

.stat-badge i {
  font-size: 0.9rem;
}

.stat-badge .fw-bold {
  font-size: 1rem;
}
}

@media (max-width: 768px) {
.legend-stats-bar {
  padding: 0.75rem !important;
}

.legend-stats-bar .justify-content-between {
  flex-direction: column;
  align-items: flex-start !important;
}

.vr {
  display: none;
}

.legend-badge,
.stat-badge {
  padding: 0.35rem 0.6rem !important;
  font-size: 0.8rem;
}

.stat-badge i {
  font-size: 0.85rem;
}

.stat-badge .fw-bold {
  font-size: 0.95rem;
}

.stat-badge small {
  font-size: 0.7rem !important;
}
}

/* ===== STUDENT PROGRAM BADGE (MS/HS) - Badge nos cards de alunos ===== */
.student-item {
position: relative;
}

.student-program-badge {
position: absolute;
bottom: 4px;
right: 4px;
font-size: 0.65rem;
font-weight: 700;
padding: 2px 6px;
border-radius: 8px;
text-transform: uppercase;
letter-spacing: 0.5px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
z-index: 10;
pointer-events: none;
}

/* Container para múltiplas etiquetas (ano atual + próximo ano)
 * Permite visualizar simultaneamente as matrículas do aluno em ambos os anos
 * Etiquetas cinza = ano atual (2025)
 * Etiquetas coloridas = próximo ano (2026)
 */
.student-badges-container {
position: absolute;
bottom: 4px;
right: 4px;
display: flex;
gap: 3px;
z-index: 10;
pointer-events: none;
}

.student-program-badge.badge-ms {
background: linear-gradient(135deg, #198754 0%, #146c43 100%);
color: white;
}

.student-program-badge.badge-hs {
background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
color: #000;
}

.student-program-badge.badge-bl {
background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
color: white;
}

/* Versões em CINZA (ano atual) */
.student-program-badge.badge-ms-gray {
background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
color: white;
opacity: 0.7;
}

.student-program-badge.badge-hs-gray {
background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
color: white;
opacity: 0.7;
}

.student-program-badge.badge-bl-gray {
background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
color: white;
opacity: 0.7;
}

/* Animação ao adicionar o badge */
.student-program-badge {
animation: badgeFadeIn 0.3s ease-out;
}

@keyframes badgeFadeIn {
from {
  opacity: 0;
  transform: scale(0.8);
}
to {
  opacity: 1;
  transform: scale(1);
}
}
