body {
    background-color: white;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

/* Estilo para melhorar a visibilidade do fieldset */
fieldset {
	border: 1px solid #ddd;
	border-radius: 5px;
	padding: 15px;
	margin-bottom: 20px;
}
fieldset legend {
	padding: 0 10px;
	font-weight: bold;
	font-size: 1.1em;
}
fieldset:disabled {
	opacity: 0.7;
	background-color: #f5f5f5;
}


/* Alerta final */
.alerta-final {
	background-color: #ffeb3b;
	padding: 15px;
	border-radius: 5px;
	margin: 20px 0;
	font-weight: bold;
}

.required-field::after {
	content: " *";
	color: red;
	font-weight: bold;
}

/* Cores de acento para azul */
/* Input focus color */
.input-field input[type=text]:focus + label,
.input-field input[type=number]:focus + label,
.input-field textarea:focus + label,
.input-field .prefix.active {
	color: #25aee1 !important;
}

/* Input focus underline */
.input-field input[type=text]:focus,
.input-field input[type=number]:focus,
.input-field textarea:focus {
	border-bottom: 1px solid #25aee1 !important;
	box-shadow: 0 1px 0 0 #25aee1 !important;
}

/* Select focus */
.dropdown-content li > a, .dropdown-content li > span {
	color: #25aee1 !important;
}

/* Select focus border */
.select-wrapper input.select-dropdown:focus {
	border-bottom: 1px solid #25aee1 !important;
}

/* Checkbox color */
[type="checkbox"]:checked + span:not(.lever):before {
	border-right: 2px solid #25aee1 !important;
	border-bottom: 2px solid #25aee1 !important;
}

/* Estilos específicos para a página de login */
body.login-page {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center; /* Centraliza horizontalmente */
    align-items: center; /* Centraliza verticalmente */
    margin: 0;
    overflow: hidden;
    background-color: black;
}

/* body.login-page::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/foto2.png');
    background-size: cover;
    background-position: center;
    filter: blur(5px) grayscale(0.75);
    z-index: -1;
} */

.login-container {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 2px;
    padding: 30px;
    width: 400px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.login-title {
    font-weight: 500;
    margin-bottom: 30px;
    color: #333;
}

.btn-full {
    width: 100%;
    margin-top: 15px;
    margin-bottom: 15px;
}

.alternate-login {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.manual-btn {
    margin-top: 30px;
    margin-bottom: 15px;
}

.support-btn {
    margin-top: 10px;
}

/* Cor de acento principal */
.accent-color {
    background-color: #25aee1;
}

/* Estilos existentes do arquivo style.css */
main {
    flex: 1 0 auto;
    padding: 20px;
    margin-left: 300px; /* Corresponde à largura do sidenav */
}

nav {
    background-color: rgba(15, 135, 170, 0.85); /* Cor de acento com transparência */
    /*background-color: unset !important; /* Vermelho com transparência */
    padding: 0 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    position: relative;
    z-index: 997;
}

nav::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/foto1.png');
    background-size: inherit;
    background-position: center;
    opacity: 0.6;
    z-index: -1;
}

.sidenav {
    background-color: white;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    width: 300px;
    top: 64px; /* Altura do navbar */
    height: calc(100% - 64px);
    position: fixed;
    transform: translateX(0);
    z-index: 999;
}

.sidenav li > a {
    color: #333;
    font-weight: 500;
    padding: 0 25px;
    height: 60px;
    line-height: 60px;
    display: flex;
    align-items: center;
}

.sidenav li > a:hover {
    background-color: rgba(158, 158, 158, 0.2); /* Cinza com opacidade */
}

.sidenav li > a > i {
    color: #757575; /* Cinza 75% */
    margin-right: 15px;
    line-height: inherit;
}

.sidenav li.active {
    /* background-color: #25aee1; /* Cor de acento principal */
    background-color: rgb(15, 135, 170); /* Cor de acento principal */
}

.sidenav li.active > a {
    color: white; /* Texto branco para o item ativo */
}

.sidenav li.active > a > i {
    color: white; /* Ícone branco para o item ativo */
}

.app-card {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 10px;
	overflow: hidden;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1);
}

.app-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #757575; /* Cinza 75% */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
	margin: 0 13em;
}

.app-card:hover>.app-icon, .app-icon:hover {
    background-color: #25aee1; /* Cor de acento principal */
}

.app-icon i {
    font-size: 48px;
    color: white;
}

.red-custom {
    background-color: #25aee1 !important; /* Cor de acento principal */
}

.grey-custom {
    background-color: #757575 !important; /* Cinza 75% */ 
}

.user-view {
    display: flex;
    align-items: center;
}

.user-name {
    margin-left: 10px;
    font-weight: 500;
}

/* Ajuste para dispositivos móveis */
@media only screen and (max-width: 992px) {
    main {
        margin-left: 0;
    }
    
    .sidenav {
        transform: translateX(-105%);
        top: 56px; /* Altura do navbar em dispositivos móveis */
        height: calc(100% - 56px);
    }
    
    nav .brand-logo {
        left: 50%;
        transform: translateX(-50%);
    }
}

.sidenav-overlay {
    z-index: 996;
}

.card {
    border-radius: 10px;
}

/* Estilo para reduzir o tamanho da fonte dos placeholders */
::placeholder {
    font-size: 0.85em;
}

/* Para garantir compatibilidade com diferentes navegadores */
::-webkit-input-placeholder {
    font-size: 0.85em;
}
::-moz-placeholder {
    font-size: 0.85em;
}
:-ms-input-placeholder {
    font-size: 0.85em;
}
:-moz-placeholder {
    font-size: 0.85em;
}

/* Sobrescrever a cor do botão de gerar treino */
.btn.red, 
.btn.red.darken-2,
button.btn.red,
button.btn.red.darken-2 {
    background-color: #25aee1 !important;
}

/* Garantir que o hover do botão também use a cor de acento */
.btn.red:hover, 
.btn.red.darken-2:hover,
button.btn.red:hover,
button.btn.red.darken-2:hover {
    background-color: #1d9ed1 !important;
}




/** ESTILO GERAL PARA O RETORNO DA IA **/

#print p {
    margin-bottom: 15px;
}

#print h2 {
    color: #25aee1;
    font-size: 28px;
    margin-top: 30px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #25aee1;
}

#print h3 {
    color: #333;
    font-size: 22px;
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 500;
}

#print ul, #print ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

#print li {
    margin-bottom: 8px;
}

/* Estilo para as tabelas de treino */
#print table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#print th {
    background-color: #25aee1;
    color: white;
    text-align: left;
    padding: 12px 15px;
    font-weight: 500;
}

#print td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
}

#print tr:nth-child(even) {
    background-color: #f9f9f9;
}

#print tr:hover {
    background-color: #f1f1f1;
}

/* Estilo para links de vídeos */
#print a {
    color: #25aee1;
    text-decoration: none;
    transition: color 0.3s;
}

#print a:hover {
    color: #1d9ed1;
    text-decoration: underline;
}

/* Estilo para botões de ação */
.btnBack {
    display: inline-block;
    background-color: #25aee1;
    color: white !important;
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s;
    border: none;
    font-size: 16px;
    cursor: pointer;
	min-width: 220px;
    text-align: center;
}

.btnBack:hover {
    background-color: #1d9ed1;
    text-decoration: none;
}

#btnPrnt {
    background-color: #4CAF50;
}

#btnPrnt:hover {
    background-color: #45a049;
}

/* Destaque para informações importantes */
.alerta-final, #print strong {
    font-weight: bold;
}

/* Responsividade para dispositivos móveis */
@media screen and (max-width: 768px) {
    #print {
        padding: 10px;
    }	
    
    #print table {
        display: block;
        overflow-x: auto;
    }
    
    #print th, #print td {
        padding: 8px 10px;
    }
    
    #print h2 {
        font-size: 24px;
    }
    
    #print h3 {
        font-size: 20px;
    }
}

/* table td:last-child,
table th:last-child {
  display: none;
} */

li > div.language-selector{
	font-weight: 500;
    padding: 0 25px;
    height: 60px;
    line-height: 60px;
    display: flex;
    align-items: center;
    flex-flow: row;
	justify-content: space-evenly;
}

li > div.language-selector a{
	padding: 0 1em;
}

li > div.language-selector a.active{
	background-color: rgba(158, 158, 158, 0.1);
}


h5 { word-break: break-all; }

input.select-dropdown {
    -webkit-user-select:none;
    -moz-user-select:none;
    -ms-user-select:none;
    -o-user-select:none;
    user-select:none;

	touch-action: manipulation;
	pointer-events: auto;
}

.dropdown-content {
	touch-action: manipulation !important;
	pointer-events: auto !important;
	z-index: 999;
}

[type="radio"]:checked+span:after, [type="radio"].with-gap:checked+span:after {
	background-color: #25aee1 !important;
}

[type="radio"]:checked+span:after, [type="radio"].with-gap:checked+span:before, [type="radio"].with-gap:checked+span:after {
	border: 2px solid #25aee1 !important;
}

/* Estilos de Banner */
/* Banner de Alerta - Material Design */
.banner {
	display: flex;
	align-items: flex-start;
	padding: 16px 24px;
	margin: 8px 0;
	border-radius: 4px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 0 2px rgba(0, 0, 0, 0.04);
	font-family: 'Roboto', Arial, sans-serif;
	position: relative;
	overflow: hidden;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .banner::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .banner:hover {
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.16), 0 0 4px rgba(0, 0, 0, 0.08);
  }
  
  .banner:hover::before {
	width: 6px;
  }
  
  /* Ícone do Banner */
  .banner-icon {
	font-size: 24px;
	margin-right: 16px;
	margin-top: 2px;
	flex-shrink: 0;
	user-select: none;
  }
  
  /* Conteúdo do Banner */
  .banner-content {
	flex: 1;
	min-width: 0;
  }
  
  .banner-title {
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
	margin: 0 0 4px 0;
	letter-spacing: 0.15px;
  }
  
  .banner-message {
	font-size: 14px;
	font-weight: 400;
	line-height: 1.43;
	margin: 0;
	opacity: 0.87;
	letter-spacing: 0.25px;
  }
  
  /* Variações de Cor - Info */
  .banner-info {
	background-color: #e3f2fd;
	color: #0d47a1;
	border: 1px solid #bbdefb;
  }
  
  .banner-info::before {
	background-color: #2196f3;
  }
  
  .banner-info .banner-icon {
	color: #1976d2;
  }
  
  /* Variações de Cor - Success */
  .banner-success {
	background-color: #e8f5e8;
	color: #2e7d32;
	border: 1px solid #c8e6c9;
  }
  
  .banner-success::before {
	background-color: #4caf50;
  }
  
  .banner-success .banner-icon {
	color: #388e3c;
  }
  
  /* Variações de Cor - Warning */
  .banner-warning {
	background-color: #fff3e0;
	color: #e65100;
	border: 1px solid #ffcc02;
  }
  
  .banner-warning::before {
	background-color: #ff9800;
  }
  
  .banner-warning .banner-icon {
	color: #f57c00;
  }
  
  /* Variações de Cor - Error */
  .banner-error {
	background-color: #ffebee;
	color: #c62828;
	border: 1px solid #ffcdd2;
  }
  
  .banner-error::before {
	background-color: #f44336;
  }
  
  .banner-error .banner-icon {
	color: #d32f2f;
  }

  .mobile-show-only {
	display: none;
  }
  
  /* Responsividade */
  @media (max-width: 600px) {
	.mobile-show-only {
		display: block !important;
	}
	  

	.mobile-hidden {
		display: none !important;
	}

	.banner {
	  padding: 12px 16px;
	  margin: 4px 0;
	}
	
	.banner-icon {
	  font-size: 20px;
	  margin-right: 12px;
	}
	
	.banner-title {
	  font-size: 15px;
	}
	
	.banner-message {
	  font-size: 13px;
	}
  }
  
  /* Animação de entrada */
  @keyframes bannerSlideIn {
	from {
	  transform: translateY(-100%);
	  opacity: 0;
	}
	to {
	  transform: translateY(0);
	  opacity: 1;
	}
  }
  
  .banner.animate-in {
	animation: bannerSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  /* Estados adicionais */
  .banner.banner-dismissible {
	padding-right: 48px;
  }
  
  .banner-close {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	font-size: 18px;
	cursor: pointer;
	padding: 8px;
	border-radius: 50%;
	color: inherit;
	opacity: 0.6;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .banner-close:hover {
	opacity: 1;
	background-color: rgba(0, 0, 0, 0.04);
  }
  
  .banner-close:focus {
	outline: none;
	box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.12);
  }

  .full-width {
	width: 100% !important;
  }

  /* Password Hider */
  .password-cell {
	position: relative;
	font-family: monospace;
}

.password-cell > button:focus {
	background-color: unset !important;
}

.password-toggle {
	cursor: pointer;
	padding: 4px 8px;
	background-color: unset;
	color: white;
	border: none;
	border-radius: 4px;
	font-size: 16px;
	margin-left: 8px;
	transition: background-color 0.2s;
}

.password-toggle:hover {
	background-color: #0056b3;
}

.password-hidden {
	color: #666;
	letter-spacing: 2px;
}

.password-visible {
	color: #333;
	font-weight: bold;
}

/* EDITOR */
.editor-container {
	margin: 20px 0;
	border: 1px solid #ddd;
	border-radius: 8px;
	overflow: hidden;
	background: white;
}

.content-display {
	min-height: 400px;
	padding: 20px;
	background: white;
	line-height: 1.6;
}

.editing-mode {
	background: #fffef7;
	border: 2px solid #ff9800;
}

.edit-button {
	position: fixed;
	bottom: 30px;
	right: 30px;
	z-index: 1000;
}

.save-cancel-buttons {
	position: fixed;
	bottom: 30px;
	right: 30px;
	z-index: 1000;
	display: none;
}

.save-cancel-buttons .btn {
	margin-left: 10px;
}

.protocol-content h1, .protocol-content h2, .protocol-content h3 {
	margin-top: 25px;
	margin-bottom: 15px;
}

.protocol-content table {
	width: 100%;
	margin: 15px 0;
	border-collapse: collapse;
}

.protocol-content table th,
.protocol-content table td {
	border: 1px solid #ddd;
	padding: 8px;
	text-align: left;
}

.protocol-content table th {
	background-color: #f2f2f2;
	font-weight: bold;
}

.protocol-content ul, .protocol-content ol {
	margin: 15px 0;
	padding-left: 30px;
}

.editor-status {
	position: fixed;
	top: 20px;
	right: 20px;
	padding: 10px 15px;
	background: #4CAF50;
	color: white;
	border-radius: 4px;
	display: none;
	z-index: 1001;
}

.editor-status.saving {
	background: #FF9800;
}

.editor-status.error {
	background: #F44336;
}

/* TinyMCE customizations */
.tox-tinymce {
	border-radius: 0 0 8px 8px !important;
}

.tox-toolbar-overlord {
	background: #fafafa !important;
}

/* Responsivo */
@media (max-width: 768px) {
	.edit-button, .save-cancel-buttons {
		bottom: 20px;
		right: 20px;
	}
	
	.save-cancel-buttons .btn {
		margin-left: 5px;
		padding: 0 16px;
	}
	
	.tox-toolbar__group {
		flex-wrap: wrap;
	}
}

/* Melhorar aparência das tabelas no protocolo */
.protocol-content table {
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	border-radius: 4px;
	overflow: hidden;
}

.protocol-content table tr:nth-child(even) {
	background-color: #f9f9f9;
}

.protocol-content table tr:hover {
	background-color: #f5f5f5;
}

/* Content Editor Styles */
.content-editable {
    position: relative;
    transition: all 0.2s ease;
}

.content-editable:hover {
    background-color: #f5f5f5 !important;
}

.content-editing {
    background-color: #fff3e0 !important;
    border: 2px solid #2196F3 !important;
    border-radius: 4px !important;
    padding: 8px !important;
    position: relative;
}

.content-edit-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #2196F3;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    z-index: 1000;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.2s ease;
    font-size: 14px;
}

.content-edit-btn:hover {
    background-color: #1976D2;
    transform: scale(1.1);
}

.content-edit-input {
    width: 100%;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    outline: none;
    resize: vertical;
    min-height: 30px;
}

.table-row-controls {
    position: absolute;
    top: -35px;
    right: 0;
    display: flex;
    gap: 5px;
    z-index: 1001;
}

.table-row-controls .btn-small {
    height: 24px;
    line-height: 24px;
    padding: 0 8px;
    min-width: 24px;
}

.table-row-controls .btn-small i {
    font-size: 16px;
    line-height: 24px;
}

/* Compatibilidade com outros sistemas */
.exercise-replacer-processed.content-editable {
    cursor: default;
}

.exercise-replacer-processed.content-editable:hover {
    background-color: #e3f2fd !important;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .content-edit-btn {
        width: 35px;
        height: 35px;
        top: -12px;
        right: -12px;
    }
    
    .table-row-controls {
        top: -40px;
        right: -5px;
    }
    
    .table-row-controls .btn-small {
        height: 28px;
        line-height: 28px;
        min-width: 28px;
    }
}

/* Prevent text selection when hovering edit button */
.content-editable:hover {
    user-select: none;
}

.content-editing {
    user-select: text;
}

ul:not(.browser-default)>li {
	list-style-type: disc;
}

#nav-mobile > li {
	list-style-type: none !important;
}

/* Customização das abas (tabs) para usar a cor de destaque teal */
.tabs .tab a {
	color: #25aee1 !important;
}

.tabs .tab a:hover {
	background-color: rgba(37, 174, 225, 0.1) !important;
	color: #25aee1 !important;
}

.tabs .tab a.active {
	color: #25aee1 !important;
}

.tabs .indicator {
	background-color: #25aee1 !important;
}

/* ============================================================
   Painel de Alunos (ger-alunos.php)
   ============================================================ */

.stats-container {
    margin-bottom: 30px;
}

.stat-card {
    border-radius: 8px;
    padding: 25px;
    color: white;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.2s;
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.stat-card i {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.95;
}

.stat-card--breakdown {
    flex-direction: column;
    align-items: flex-start;
}

.stat-card.green {
    background: linear-gradient(135deg, #66bb6a 0%, #4caf50 100%);
}

.stat-card.blue {
    background: linear-gradient(135deg, #42a5f5 0%, #2196f3 100%);
}

.stat-card.yellow {
    background: linear-gradient(135deg, #ffa726 0%, #ff9800 100%);
}

.stat-card.red {
    background: linear-gradient(135deg, #ef5350 0%, #f44336 100%);
}

.action-buttons {
    margin-bottom: 30px;
}

.action-buttons-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.action-buttons-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex-shrink: 0;
	max-width: 100%;
}

.btn-action {
    margin: 0;
    text-transform: none;
    font-size: 0.95rem;
    padding: 0 20px;
    height: 40px;
    line-height: 40px;
}

.btn-action i {
    margin-right: 5px;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 180px;
}

.search-box input {
    border-radius: 25px !important;
    padding-left: 45px !important;
    height: 40px !important;
    font-size: 0.95rem !important;
    margin: 0 !important;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 10px;
    color: #9e9e9e;
}

.students-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.student-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.student-card .dropdown-content {
    z-index: 9999;
}

.student-card:hover {}

.student-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.student-status {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    color: white;
    cursor: pointer;
    text-decoration: none;
}

.status-ativo {
    background-color: #4caf50;
}

.status-inativo {
    background-color: #f44336;
}

.status-no-protocol {
    background-color: #ff9800;
}

.student-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.student-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.student-details h6 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.student-contact {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.student-contact i {
    font-size: 1rem;
    margin-right: 5px;
    vertical-align: middle;
}

.student-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.btn-student-action {
    flex: 1;
    height: 36px;
    line-height: 36px;
    padding: 0 12px;
    font-size: 0.85rem;
    text-transform: none;
    white-space: nowrap;
}

.btn-student-action i {
    font-size: 1.1rem;
    margin-right: 5px;
}

.btn-green {
    background-color: #4caf50 !important;
}

.btn-blue {
    background-color: #2196f3 !important;
}

.btn-grey {
    background-color: #9e9e9e !important;
}

.menu-dots {
    cursor: pointer;
    padding: 5px;
    color: #9e9e9e;
}

.menu-dots:hover {
    color: #666;
}

.pagination-info {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 12px 0 24px;
    color: #555;
    font-size: 0.95rem;
}

.pagination-btn {
    width: 36px;
    height: 36px;
    line-height: 36px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1976d2;
}

.pagination-btn:disabled {
    color: #bdbdbd;
    cursor: default;
    pointer-events: none;
}

.warning-icon {
    color: #ff9800;
    margin-left: 5px;
    font-size: 1.2rem;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .students-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
        padding: 12px 16px;
        min-height: unset;
        margin-bottom: 10px;
    }

    .stat-card--breakdown {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .proto-type-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .stat-card i {
        font-size: 1.6rem;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .stat-number {
        font-size: 1.6rem;
        margin-bottom: 0;
        line-height: 1;
    }

    .stat-label {
        font-size: 0.85rem;
        line-height: 1.2;
    }

    .stat-card .stat-text {
        display: flex;
        align-items: baseline;
        gap: 8px;
        flex-wrap: wrap;
    }

    .btn-action {
        width: 100%;
        margin-right: 0;
    }

    .student-actions {
        gap: 6px;
    }

    .btn-student-action {
        flex: 1 1 0;
        min-width: 0;
        padding: 0 6px;
        font-size: 0.78rem;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .btn-student-action i {
        font-size: 0.95rem;
        margin-right: 3px;
    }
}

/* Modal: Link de Cadastro (ger-alunos.php) */
#linkModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    overflow: auto;
}

#linkModal.open {
    display: flex;
}

#linkModal .modal-content {
    background: #fff;
    border-radius: 8px;
    padding: 32px;
    width: 90%;
    max-width: 560px;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

#linkModal .modal-content h4 {
    margin-top: 0;
    font-size: 1.4rem;
}

#linkModal .close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 1.6rem;
    cursor: pointer;
    color: #757575;
    line-height: 1;
}

#linkModal .close:hover {
    color: #212121;
}

#linkModal .link-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}

#linkModal .link-input {
    flex: 1;
    min-width: 0;
    border: 1px solid #bdbdbd !important;
    border-radius: 4px;
    padding: 8px 10px;
    font-size: 0.9rem;
    background: #f5f5f5;
}

#linkModal .copy-button {
    background: #1976d2;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

#linkModal .copy-button:hover {
    background: #1565c0;
}

#linkModal .copy-success {
    display: none;
    color: #2e7d32;
    font-size: 0.85rem;
    align-items: center;
    gap: 4px;
}

/* ── Barra de filtros (historico-protocolo.php) ─────────────────────────── */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 14px 0 4px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 13px;
    border-radius: 20px;
    border: 2px solid #ddd;
    background: white;
    color: #757575;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s, color 0.18s;
    white-space: nowrap;
    line-height: 1.4;
}

.filter-chip:hover {
    border-color: #9e9e9e;
    color: #424242;
}

.filter-chip.active {
    color: white;
    border-color: transparent;
}

.filter-chip i {
    font-size: 0.95rem;
}