:root {
    --primary: #ff7a00;
    --primary-dark: #e56300;
    --dark: #0b0b0b;
    --dark-soft: #1f1f1f;
    --light-bg: #f7f7f7;
    --border: #ececec;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--light-bg);
    color: #141414;
}

/* ========================= */
/* LAYOUT */
/* ========================= */

.layout {
    display: flex;
    min-height: 100vh;
    align-items: flex-start;
}

/* SIDEBAR */

.sidebar {
    width: 260px;
    background: var(--dark);
    color: white;
    display: flex;
    flex-direction: column;
    padding: 22px;
    box-shadow: 8px 0 30px rgba(0,0,0,0.24);
    position: sticky;
    top: 0;
    align-self: flex-start;
    min-height: 100vh;
    z-index: 5;
    flex-shrink: 0;
}

.brand {
    padding: 25px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.brand img {
    width: 140px;
    margin-left: 18%;
}

.page-header-split {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.page-header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.table-actions-head {
    text-align: right;
    white-space: nowrap;
}


.menu a {
    display: block;
    padding: 12px 14px;
    margin-bottom: 6px;
    border-radius: 12px;
    color: #FFF;
    text-decoration: none;
    font-size: 14px;
    transition: 0.25s ease;
}

.menu a:hover {
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    color: white;
}

.menu-submenu {
    margin-bottom: 6px;
    border-radius: 12px;
    overflow: visible;
}

.menu-submenu > summary {
    list-style: none;
    cursor: pointer;
    padding: 12px 14px;
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    transition: 0.25s ease;
    user-select: none;
}

.menu-submenu > summary::-webkit-details-marker {
    display: none;
}

.menu-submenu > summary::after {
    content: "▸";
    float: right;
    opacity: 0.7;
    font-size: 12px;
}

.menu-submenu[open] > summary::after {
    content: "▾";
}

.menu-submenu[open] > summary {
    background: rgba(255, 255, 255, 0.08);
}

.menu-submenu[open] {
    position: relative;
    z-index: 60;
}

.menu-submenu > summary:hover {
    background: rgba(255, 255, 255, 0.06);
}

.menu-submenu a {
    display: block;
    padding: 10px 14px 10px 22px;
    margin: 0;
    border-radius: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    border-left: 3px solid transparent;
}

.menu-submenu a:hover {
    background: rgba(255, 255, 255, 0.06);
    border-left-color: var(--primary);
    color: #fff;
}

.logout-area {
    margin-top: auto;
}

.logout-area button {
    width: 100%;
    background: none;
    border: 1px solid #374151;
    color: #f87171;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
}

.container button {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    background-color: #2563eb;
    color: #fff !important;
}

/* MAIN */

.content-area{
flex:1;
display:flex;
flex-direction:column;
min-width:0;
position: relative;
z-index: 10;
}

.page{
padding:30px;
width:100%;
}

.topbar{
height:52px;
background:white;
border-bottom:1px solid #e5e5e5;
position: relative;
z-index: 20;

display:flex;
align-items:center;
justify-content:space-between;

padding:0 20px;
}

.profile-menu-wrap {
    position: relative;
}

.topbar-user{
display:flex;
align-items:center;
gap:10px;
cursor: pointer;
background: none;
border: none;
font: inherit;
color: inherit;
padding: 4px 8px;
border-radius: 10px;
}

.topbar-user:hover {
    background: #f9fafb;
}

.user-avatar{
width:36px;
height:36px;
border-radius:50%;

background:#f5a623;
color:white;

display:flex;
align-items:center;
justify-content:center;

font-weight:bold;
font-size:14px;
flex-shrink: 0;
}

.user-avatar-img {
    object-fit: cover;
    padding: 0;
}

.user-info{
line-height:1.2;
font-size:13px;
text-align: left;
}

.profile-menu-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    min-width: 180px;
    display: none;
    padding: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    z-index: 100;
}

.profile-menu-wrap.is-open .profile-menu-dropdown {
    display: block;
}

.profile-menu-dropdown a {
    display: block;
    color: #111827;
    text-decoration: none;
    padding: 8px;
    border-radius: 8px;
}

.profile-menu-dropdown a:hover {
    background: #f3f4f6;
}

.profile-logout-btn {
    width: 100%;
    margin-top: 4px;
    border: 1px solid #fee2e2;
    background: #fff5f5;
    color: #b91c1c;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
}

.text-muted {
    color: #6b7280;
    font-size: 12px;
    display: block;
    margin-top: 4px;
}

.form-checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-checkbox-row label {
    margin: 0;
}

.form-checkbox-row input[type="checkbox"] {
    width: auto;
    margin: 0;
}


/* ========================= */
/* DASHBOARD */
/* ========================= */

.dashboard {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.kpi {
    text-align: center;
}

.kpi h4 {
    font-size: 14px;
    color: #777;
}

.kpi h2 {
    font-size: 28px;
}

.charts-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.charts-grid-management {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.charts-grid-stacked {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (max-width: 960px) {
    .charts-grid-management {
        grid-template-columns: 1fr;
    }
}

.dashboard-chart-wrap {
    position: relative;
    max-height: 280px;
}

.dashboard-chart-wrap canvas {
    max-height: 280px !important;
}

.dashboard-chart-full {
    margin-top: 0;
}

.dashboard-chart-note {
    font-size: 13px;
    color: var(--muted, #666);
    margin: 0 0 12px;
}

.dashboard-chart-wrap-bar {
    max-height: 320px;
}

.dashboard-chart-wrap-bar canvas {
    max-height: 320px !important;
}

.chart-canvas-wrap {
    position: relative;
    height: 320px;
    width: 100%;
}

.ranking-table tr.gold {
    background: linear-gradient(90deg, #fff7cc, #ffe066);
    font-weight: bold;
}

.ranking-table tr.silver {
    background: linear-gradient(90deg, #f0f0f0, #d9d9d9);
}

.ranking-table tr.bronze {
    background: linear-gradient(90deg, #f5e1d0, #d2a679);
}

.ranking-table td {
    padding: 10px;
    text-align: center;
}

/* ========================= */
/* LOGIN */
/* ========================= */

.login-body {
    font-family: 'Inter', sans-serif;
    height: 100vh;
    width: 100%;
}

/* CONTAINER PRINCIPAL */
.login-container {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* LADO ESQUERDO */
.login-left {
    width: 50%;
    background: linear-gradient(135deg, #000000, #1c1c1c);
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-logo {
    width: 420px;
    max-width: 75%;
}

/* LADO DIREITO */
.login-right {
    width: 50%;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.login-right-content h2 {
    font-size: 28px;
    margin-bottom: 30px;
    font-weight: 600;
    color: #111;
    margin-left: 15%;
}

/* FORM */
.login-right form {
    width: 100%;
    max-width: 350px;
}

.login-right input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 16px;
    font-size: 14px;
    transition: 0.2s;
}

.login-right input:focus {
    border-color: #F57C00;
    outline: none;
    box-shadow: 0 0 0 2px rgba(245,124,0,0.15);
}

/* BOTÃO */
.login-right button {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    background-color: #F57C00;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.login-right button:hover {
    background-color: #E65100;
}

/* ERRO */
.error {
    background-color: #ffe5e0;
    color: #d84315;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
}

.login-message {
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
}

.login-message-success {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.login-message-error {
    background-color: #ffe5e0;
    color: #d84315;
}

.login-message-warning {
    background-color: #fff8e1;
    color: #f57f17;
}

.login-forgot {
    margin-top: 16px;
    text-align: center;
    font-size: 14px;
}

.login-forgot a {
    color: #F57C00;
    text-decoration: none;
    font-weight: 500;
}

.login-forgot a:hover {
    text-decoration: underline;
}

.login-help-text {
    color: #666;
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.login-password-form small.login-help-text {
    display: block;
    margin-top: -8px;
    margin-bottom: 12px;
}

/* SEARCH */

.search-bar {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.search-bar input {
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    width: 250px;
}

.search-bar button {
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    background: var(--primary);
    color: white;
    cursor: pointer;
}

/* =========================
   HEADER DA PÁGINA
========================= */

.page-header {
    margin-bottom: 30px;
}

.page-header h1 {
    margin-bottom: 6px;
}

.page-header p {
    margin-bottom: 20px;
    color: #6b7280;
}

.page-header > .page-header-actions {
    margin-top: 4px;
    margin-bottom: 4px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.search-bar {
    display: flex;
    gap: 10px;
}

/* =========================
   BOTÕES PADRÃO SISTEMA
========================= */

/* Força botão quando for link */
a.btn {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
}

button.btn {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
}



/* Cores */

.btn-primary {
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    color: white !important;
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
}


a.btn-primary {
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    color: #fff !important;
    
}

a.btn-secondary {
    background-color: #111;
    color: #fff !important;
    border: 1px solid #333;
}

button.btn-warning {
    background-color: #2563eb;
    color: #fff !important;
}

a.btn-danger {
    background-color: #dc2626;
    color: #fff !important;
}

button.btn-danger {
    background-color: #dc2626;
    color: #fff !important;
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
}

button.btn-sucess {
    background-color: #16a34a;
    color: #fff !important;
}

a.btn:hover {
    opacity: 0.9;
    text-decoration: none !important;
}
.actions {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
}


/* =========================
   FORMULÁRIOS
========================= */

.container {
    max-width: 600px;
    width: 100%;
    margin: 40px auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #ececec;
    box-sizing: border-box;
}

.container:has(.form-grid2) {
    max-width: min(960px, 100%);
}

.container h2{
    color: #111;
}

.container button{
    background-color: #f59e0b;
    color: white !important;
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
}

.container a{
    background-color: #111;
    color: #fff !important;
}

label .competencia{
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #000000;
}

.form-container{
background:white;
padding:30px;
border-radius:10px;
max-width:600px;
margin-top:20px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.form-grid .form-group {
    min-width: 0;
}

.form-grid .form-group input,
.form-grid .form-group select,
.form-grid .form-group textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.form-grid-single {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 520px;
}

.form-grid-single .form-group {
    margin-bottom: 20px;
}

.form-grid-single .form-group input.form-control,
.form-grid-single .form-group input[type="password"] {
    width: 100%;
    box-sizing: border-box;
}

.form-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

.card-auth {
    max-width: 560px;
    padding: 28px 32px;
}

.form-grid2 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 24px;
}

.form-grid2 .form-group {
    min-width: 0;
    margin-bottom: 0;
}

.form-grid2 .form-group input,
.form-grid2 .form-group select,
.form-grid2 .form-group textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom:18px;
}

.form-group input,
.form-group select {
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #181c20;
}




.form-control {
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #111;
}

.form-actions{
margin-top:20px;
}

.form-actions-split {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 28px;
}

.form-checkbox{
    width:auto;
    margin-left:0;
    transform: translateY(1px);
}

/* ===== Enrollment form fix ===== */

.form-container .form-control,
.form-container select,
.form-container input {
    background: #fff;
    color: #111;
    border: 1px solid #d1d5db;
}

.form-container select:focus,
.form-container input:focus {
    outline: none;
    border-color: #fc6c18;
    box-shadow: 0 0 0 1px #fc6c18;
}

/* =========================
   TABELA DE ALUNOS
========================= */

.table-link{
    color: inherit;
    text-decoration: none;
    font-weight:500;
}

.table-link a:hover {
    text-decoration: underline;
    cursor: pointer;
}

.table-container {
    width: 100%;
    border-collapse: collapse;
}

.table-container th,
.table-container td {
    padding: 10px 5px;
    text-align: left;
}

.table-container th:nth-child(3),
.table-container td:nth-child(3) {
    width: 120px;
    text-align: center;
}

.styled-table td:nth-child(2),
.styled-table th:nth-child(2){
    text-align:center;
    width:240px;
}

.styled-table{
    width:100%;
    border-collapse:collapse;
    margin-top:15px;
}

.styled-table th,
.styled-table td{
    padding:12px 10px;
    border-bottom:1px solid #e5e7eb;
}

.styled-table th{
    text-align:left;
    color:#6b7280;
    font-size:14px;
}

.styled-table td{
    font-size:15px;
}


.styled-table thead {
    background-color: #fff3e8;
}

.styled-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
}

.styled-table tbody tr:hover {
    background-color: #fff8f2;
}

.styled-table tr:last-child td{
    border-bottom:none;
}



/* Ajuste da coluna Ações */
.styled-table td:last-child {
    text-align: center;
}

.enrollments-table td:last-child,
.enrollments-table th:last-child {
    text-align: left;
}


.styled-table th:last-child,
.styled-table td:last-child{
text-align:center;
width:140px;
}

/* Espaçamento entre botões */
.actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    
}

.status-cell{
text-align:center;
}


.status{
display:inline-block;
padding:4px 10px;
border-radius:20px;
font-size:12px;
font-weight:600;
}

.status.active{
background:#dcfce7;
color:#166534;
}

.status.inactive{
background:#fee2e2;
color:#991b1b;
}

.status.warning{
background:#fef3c7;
color:#92400e;
}

.status.basic{
    background: #dcebfc;
    color: #163865
}


/* =========================
   CARD PADRÃO
========================= */

.card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card-grid--student-metrics {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 25px;
}

@media (max-width: 1280px) {
    .card-grid--student-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .card-grid--student-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.student-detail-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px 24px;
    margin-bottom: 22px;
}

.student-detail-head-text h1 {
    margin: 0 0 6px;
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #111;
}

.student-detail-sub {
    margin: 0;
    font-size: 15px;
    color: #6b7280;
    font-weight: 500;
}

.student-detail-status {
    flex-shrink: 0;
    margin-left: auto;
    align-self: center;
}

.student-detail-status .status {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 999px;
}

.card label {
    font-size: 13px;
    color: #6b7280;
    display: block;
    margin-bottom: 5px;
}

.card p {
    font-size: 15px;
    font-weight: 500;
}

.save-aluno {
    margin-top: 15px;
}

.actions-card h3 {
    margin-bottom: 15px;
}

.banner-erro {
    background-color: #ffe6e6;
    border: 1px solid #ff4d4d;
    color: #990000;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
}

.banner-erro ul {
    margin: 0;
    padding-left: 20px;
}

.banner-erro li {
    margin-bottom: 5px;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

.modal-box {
    background: white;
    padding: 25px;
    border-radius: 8px;
    width: 350px;
    text-align: center;
}

.modal-box button {
    margin: 10px 5px;
    padding: 8px 12px;
    cursor: pointer;
}


.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 320px;
    padding: 14px 16px;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
    animation: slideIn 0.3s ease;
}

.toast.success { background: #16a34a; }
.toast.error { background: #dc2626; }
.toast.warning { background: #d97706; }

.toast-icon::before {
    font-size: 18px;
}

.toast.success .toast-icon::before { content: "✔"; }
.toast.error .toast-icon::before { content: "✖"; }
.toast.warning .toast-icon::before { content: "⚠"; }

.toast-content {
    flex: 1;
}

.toast-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255,255,255,0.6);
    width: 100%;
    animation: progress 4s linear forwards;
}

@keyframes slideIn {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes progress {
    from { width: 100%; }
    to { width: 0%; }
}

/* ========================= */
/* AGENDA MÊS */
/* ========================= */

.calendar-grid{
display:grid;
grid-template-columns:repeat(7, 1fr);
gap:12px;
width:100%;
}

.calendar-day{
border:1px solid #ccc;
min-height:120px;
background:white;
}

.calendar-day a{
display:block;
width:100%;
height:100%;
padding:8px;
text-decoration:none;
color:inherit;
}

.calendar-day-out{
opacity:0.3;
}

.lesson-chip{
margin-top:5px;
background:#f5a623;
padding:3px 6px;
border-radius:4px;
font-size:12px;
width:fit-content;
}

/* ========================= */
/* AGENDA DIA */
/* ========================= */

.schedule-section{
margin-top:30px;
}

.room-title{
margin-top:15px;
font-size:14px;
color:#6b7280;
}

.time-grid{
display:flex;
flex-wrap:wrap;
gap:10px;
margin-top:8px;
}

.time-slot{
padding:8px 14px;
border:2px solid #cbd5e1;
background: linear-gradient(90deg, #ff8a1d, #ff7a00);
border-radius:8px;
text-decoration:none;
color:#fff;
font-weight:500;
display:flex;
flex-direction:column;
align-items:center;
gap:2px;
min-width:60px;
}

.time-slot:hover{
background:#000000;
border-color:#111;
color:white;
}

.time-slot.empty {
    opacity: 0.45;
    background-color: #f5f5f5;
    color: #4b5563;
    border-style: dashed;
}

.lesson-count{
font-size:11px;
}

.no-lessons{
color:#9ca3af;
font-size:14px;
}

/* ========================= */
/* LESSONS */
/* ========================= */

.attendance-list{
margin-top:30px;
display:flex;
flex-direction:column;
gap:10px;
}

.student-row{
background:white;
border:1px solid #ddd;
border-radius:8px;
padding:14px;

display:flex;
justify-content:space-between;
align-items:center;

cursor:pointer;
transition:0.2s;
}

.student-row:hover{
background:#f7f7f7;
}

.present{
border-left:6px solid #28a745;
}

.absent{
border-left:6px solid #dc3545;
}

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

.btn-save{
margin-top:20px;
background:#28a745;
color:white;
border:none;
padding:10px 18px;
border-radius:6px;
cursor:pointer;
}

.student-actions{
display:flex;
align-items:center;
gap:10px;
}

.btn-avaliar{
background:#4a90e2;
color:white;
padding:6px 10px;
border-radius:6px;
text-decoration:none;
font-size:12px;
}

.attendance-controls{
display:flex;
gap:10px;
margin-top: 20px;
margin-bottom:20px;

}

.attendance-controls button{
padding:8px 14px;
border:none;
border-radius:6px;
cursor:pointer;
background:#eee;
}

.makeup-form{
display:grid;
grid-template-columns: repeat(2, minmax(120px,1fr));
gap:8px;
align-items:center;
}

.section-divider{
    margin:40px 0 25px 0;
    border:none;
    border-top:1px solid #e5e7eb;
}

.section-title{
    margin-bottom:20px;
}

.blocked-day{
    background:#fee2e2;
    color:#991b1b;
    padding:3px 6px;
    border-radius:4px;
    font-size:11px;
    margin-top:4px;
    width:fit-content;
}

.lesson-count{
    margin-top:4px;
    font-size:11px;
    color:#000000;
    background:#f5a623;
    padding:2px 6px;
    border-radius:4px;
    width:fit-content;
}

textarea {

    font-family: inherit;
    font-size: 14px;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    width: 100%;
    resize: vertical;
}

.checkbox-group label{
    display:flex;
    align-items:center;
    gap:8px;
}

.checkbox-group input{
    transform: scale(1.2);
    cursor:pointer;
}

/* ========================= */
/* FEED */
/* ========================= */

.feed-wrapper {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

/* POST */
.post-creator {
    padding: 15px;
}

.post-creator form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.post-creator .post-actions {
    margin-top: 12px;
    padding-left: 55px;
    align-self: stretch;
    box-sizing: border-box;
    flex-wrap: wrap;
    align-items: center;
}

@media (max-width: 600px) {
    .post-creator .post-actions {
        padding-left: 0;
    }
}

.edit-post-images-block {
    margin-top: 14px;
    padding-left: 55px;
}

@media (max-width: 600px) {
    .edit-post-images-block {
        padding-left: 0;
    }
}

.edit-post-images-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    margin: 0 0 8px;
}

.edit-post-images-list {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.edit-post-image-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-size: 12px;
    color: #374151;
}

.edit-post-image-item img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.edit-post-remove-check {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.edit-post-remove-check input {
    cursor: pointer;
}

.post-creator .post-actions > .btn.btn-secondary {
    margin-left: auto;
}

.post-card {
    padding: 15px;
    position: relative;
}

.post-header {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    justify-content: space-between;
}

.post-header--challenge {
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 12px;
}

.post-header-right {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-shrink: 0;
    margin-left: auto;
}

.post-header-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    max-width: 240px;
}

@media (max-width: 640px) {
    .post-header--challenge {
        flex-wrap: wrap;
    }
    .post-header-right {
        width: 100%;
        margin-left: 0;
        justify-content: flex-end;
    }
}

.avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #f59e0b;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

img.avatar.avatar-img {
    display: block;
    object-fit: cover;
    padding: 0;
}

.table-actions-cell {
    vertical-align: middle;
    text-align: right;
    white-space: nowrap;
}

.actions-inline {
    display: inline-flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Compact ⋮ menu for table actions */
.action-menu {
    position: relative;
    display: inline-flex;
    justify-content: flex-end;
    vertical-align: middle;
}

.action-menu-trigger {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    color: #444;
    font-size: 1.1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.action-menu-trigger::before {
    content: "⋮";
    display: block;
    transform: translateY(-1px);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.action-menu-trigger:hover,
.action-menu-trigger:focus-visible {
    background: #f3f3f3;
    border-color: #d4d4d4;
    outline: none;
}

.action-menu-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    min-width: 180px;
    max-width: min(320px, 92vw);
    padding: 6px 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    z-index: 300;
}

.action-menu.is-open .action-menu-dropdown {
    display: block;
}

.action-menu.is-open {
    z-index: 350;
}

.action-menu.dropup .action-menu-dropdown {
    top: auto;
    bottom: calc(100% + 4px);
}

.action-menu-dropdown--wide {
    min-width: 260px;
    max-width: min(380px, 94vw);
    padding: 10px 0;
}

.action-menu-section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #888;
    padding: 6px 14px 4px;
}

.action-menu-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 14px;
    border: none;
    background: transparent;
    font: inherit;
    color: #222;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease;
}

a.action-menu-item {
    color: #222;
}

.action-menu-item:hover,
.action-menu-item:focus-visible {
    background: #f5f5f5;
    outline: none;
}

.action-menu-item-danger {
    color: #b91c1c;
}

.action-menu-item-danger:hover,
.action-menu-item-danger:focus-visible {
    background: #fef2f2;
}

.action-menu-form {
    margin: 0;
    padding: 0;
}

.action-menu-form .action-menu-item {
    border-radius: 0;
}

.action-menu-scroll {
    max-height: 320px;
    overflow-y: auto;
    padding: 0 8px 8px;
}

.action-menu-footer-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px 12px;
    border-top: 1px solid var(--border);
}

.action-menu-inline-delete {
    margin: 0;
    padding: 0;
    display: inline-flex;
}

.makeup-form .turma-picker {
    margin-bottom: 10px;
    max-width: 100%;
}

.makeup-form .turma-picker-filter {
    margin-bottom: 8px;
    width: 100%;
}

.makeup-form .turma-picker-select {
    width: 100%;
    min-height: 7.5rem;
    font-size: 14px;
}

.makeup-form .turma-picker-meta {
    font-size: 12px;
    color: #6b7280;
    margin: 8px 0 0;
    line-height: 1.4;
}

.makeup-form .turma-picker-meta a {
    color: #e56300;
    font-weight: 600;
    text-decoration: none;
}

.makeup-form .turma-picker-meta a:hover {
    text-decoration: underline;
}

.action-menu-scroll .makeup-form .turma-picker-select {
    min-height: 5.5rem;
}

/* Strategies accordion */
.estrategia-accordion-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.estrategia-accordion {
    padding: 0;
    overflow: visible;
}

.estrategia-accordion-header {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    cursor: pointer;
    user-select: none;
    border: none;
    background: #fff;
    text-align: left;
    font: inherit;
    transition: background 0.15s ease;
}

.estrategia-accordion-header:hover,
.estrategia-accordion-header:focus-visible {
    background: #fafafa;
    outline: none;
}

.estrategia-accordion-header.is-open {
    background: #fff8f2;
    border-bottom: 1px solid var(--border);
}

.estrategia-accordion-header-main {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.estrategia-accordion-chevron {
    width: 10px;
    height: 10px;
    border-right: 2px solid #555;
    border-bottom: 2px solid #555;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-top: -4px;
}

.estrategia-accordion-header.is-open .estrategia-accordion-chevron {
    transform: rotate(-135deg);
    margin-top: 4px;
}

.estrategia-accordion-title {
    font-size: 15px;
    min-width: 0;
}

.estrategia-accordion-subtitle {
    color: #666;
    font-weight: 400;
}

.estrategia-accordion-actions {
    flex-shrink: 0;
}

.estrategia-accordion-meta {
    font-size: 12px;
    color: #888;
    flex-shrink: 0;
    white-space: nowrap;
}

.estrategia-accordion-panel {
    padding: 16px 18px 18px;
    border-top: 1px solid transparent;
}

.estrategia-accordion-panel[hidden] {
    display: none;
}

.estrategia-panel-desc {
    margin: 0 0 14px;
}

/* Manage access (from ↔ to) */
.estrategia-acesso-card {
    padding: 20px;
}

.estrategia-acesso-search-wrap {
    margin-bottom: 20px;
}

.estrategia-acesso-search-wrap label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.estrategia-acesso-columns {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: stretch;
}

@media (max-width: 768px) {
    .estrategia-acesso-columns {
        grid-template-columns: 1fr;
    }
    .estrategia-acesso-divider {
        display: none;
    }
}

.estrategia-acesso-column {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    min-height: 280px;
}

.estrategia-acesso-column-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    background: #fff;
    border-radius: 12px 12px 0 0;
}

.estrategia-acesso-column-head h3 {
    margin: 0;
    font-size: 15px;
}

.estrategia-acesso-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 22px;
    padding-top: 48px;
}

.estrategia-acesso-list {
    flex: 1;
    overflow-y: auto;
    max-height: 420px;
    padding: 8px;
}

.estrategia-acesso-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 10px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 8px;
}

.estrategia-acesso-row[hidden] {
    display: none;
}

.estrategia-acesso-row span {
    font-size: 14px;
    font-weight: 500;
    min-width: 0;
}

.estrategia-acesso-row form {
    margin: 0;
    flex-shrink: 0;
}

.estrategia-acesso-empty {
    padding: 16px 12px;
    font-size: 13px;
    color: #666;
    margin: 0;
    text-align: center;
}

.estrategia-card {
    position: relative;
    overflow: visible;
}

.estrategia-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.estrategia-card-title h3 {
    margin: 8px 0 4px;
}

.estrategia-card-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.estrategia-access-menu .action-menu-trigger {
    width: auto;
    min-width: 130px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 600;
}

.estrategia-access-menu .action-menu-trigger::before {
    content: none;
}

.estrategia-access-dropdown {
    min-width: 300px;
    max-width: min(420px, 96vw);
}

.estrategia-access-panel {
    padding: 4px 0 8px;
}

.estrategia-access-section {
    padding: 0 0 10px;
}

.estrategia-access-section--grant {
    border-top: 1px solid var(--border);
    padding-top: 10px;
}

.estrategia-access-granted-list {
    max-height: 160px;
    overflow-y: auto;
    padding: 0 10px;
}

.estrategia-access-granted-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 4px;
    border-bottom: 1px solid #f0f0f0;
}

.estrategia-access-granted-row:last-child {
    border-bottom: none;
}

.estrategia-access-name {
    font-size: 14px;
    font-weight: 500;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.action-menu-item-danger-text {
    color: #b91c1c;
    font-weight: 600;
}

.estrategia-access-empty {
    padding: 8px 14px;
    font-size: 13px;
    color: #666;
    margin: 0;
}

.estrategia-student-search {
    margin: 8px 12px 10px;
    width: calc(100% - 24px);
}

.estrategia-student-picklist {
    max-height: 220px;
    overflow-y: auto;
    padding: 0 8px 8px;
}

.estrategia-student-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 6px;
    border-radius: 8px;
    transition: background 0.15s ease;
}

.estrategia-student-option:hover {
    background: #f8f8f8;
}

.estrategia-student-option[hidden] {
    display: none;
}

.estrategia-student-option span {
    font-size: 14px;
    min-width: 0;
    flex: 1;
}

.estrategia-student-option form {
    margin: 0;
    flex-shrink: 0;
}

.estrategia-access-count {
    margin-top: 12px;
    margin-bottom: 0;
    font-size: 12px;
}

.estrategia-materiais {
    margin-top: 16px;
}

.estrategia-audio-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
    line-height: 1.35;
}

.form-hint {
    font-size: 12px;
    margin-top: 4px;
}

.estrategia-materiais-row strong {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #666;
}

.estrategia-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.estrategia-audios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.estrategia-audio-item audio {
    width: 100%;
    margin-top: 4px;
}

.form-reposicao-summary h3 {
    margin: 0 0 14px;
    font-size: 1rem;
}

.form-reposicao-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px 20px;
}

.form-reposicao-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
    margin-bottom: 4px;
}

.form-reposicao-summary-grid strong {
    font-size: 15px;
    font-weight: 600;
    color: #111;
}

.form-reposicao-container {
    max-width: 720px;
}

.form-reposicao-times-actions {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px 16px;
    align-items: end;
}

.form-reposicao-btn-group {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .form-reposicao-times-actions {
        grid-template-columns: 1fr;
    }
    .form-reposicao-btn-group {
        justify-self: start;
        padding-top: 4px;
    }
}

.form-reposicao-delete {
    margin-top: 8px;
    padding-top: 8px;
}

.action-menu--post-corner {
    position: absolute;
    top: 6px;
    right: 8px;
    z-index: 6;
}

.post-card:has(.action-menu--post-corner) .post-header-right {
    margin-right: 42px;
}

.student-row .action-menu--lesson-row {
    flex-shrink: 0;
    margin-left: 8px;
}

.form-card-compact {
    max-width: 980px;
}

.form-estrategia-edit {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-estrategia-edit > .form-group {
    margin-bottom: 12px;
}

.form-estrategia-edit__files {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.form-estrategia-edit__files .form-group {
    margin-bottom: 0;
}

.form-estrategia-edit__actions {
    margin-top: 24px;
    padding-top: 8px;
}

.compact-grid {
    max-width: 920px;
}

.compact-actions {
    display: flex;
    flex-direction: row;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
}

.form-group.compact-actions {
    flex-direction: row;
    align-items: center;
}

.filter-form-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
}

.form-grid2 > .filter-form-actions {
    grid-column: 1 / -1;
}

.compact-actions .btn {
    min-width: 120px;
    text-align: center;
}

.table-scroll-wrap {
    overflow: auto;
    max-height: 460px;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.table-scroll-wrap .styled-table {
    margin-bottom: 0;
}

.table-scroll-wrap .styled-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
}

.pagination-row {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    margin-top: 12px;
}

.ranking-gamification-table .rank-medal-col {
    text-align: center;
    width: 52px;
}

.rank-medal {
    font-size: 1.35rem;
    line-height: 1;
    display: inline-block;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

.ranking-gamification-table tr.rank-row-gold td {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.2), rgba(255, 248, 220, 0.08));
}

.ranking-gamification-table tr.rank-row-silver td {
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.22), rgba(245, 245, 245, 0.08));
}

.ranking-gamification-table tr.rank-row-bronze td {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.18), rgba(245, 222, 200, 0.08));
}

/* EDITOR */
.editor-container {
    width: 100%;
}

#editor {
    background: white;
    border-radius: 10px;
}

.ql-toolbar {
    border-radius: 10px 10px 0 0;
}

.ql-container {
    border-radius: 0 0 10px 10px;
    min-height: 120px;
}

/* AÇÕES */
.post-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.upload-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: #e4e3e3;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    overflow: hidden;
}

.upload-btn:hover {
    background: #fc6c18;
}

.publish-btn {
    background: #f59e0b;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
}

/* Input file invisível mas funcional (display:none quebra seleção no iOS/Safari) */
.feed-wrapper .upload-btn input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.feed-attachments-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    padding-left: 55px;
}

@media (max-width: 600px) {
    .feed-attachments-preview {
        padding-left: 0;
    }
}

.feed-attachment-item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 140px;
}

.feed-attachment-thumb {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.feed-attachment-file {
    width: 120px;
    min-height: 72px;
    padding: 10px;
    font-size: 12px;
    line-height: 1.35;
    word-break: break-word;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.feed-attachment-meta {
    font-size: 11px;
    color: #6b7280;
}

.feed-attachment-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.feed-form-errors {
    margin: 10px 0 0 55px;
    padding: 10px 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #b91c1c;
    font-size: 13px;
    list-style: none;
}

.feed-form-errors li + li {
    margin-top: 4px;
}

.feed-conteudo-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 600px) {
    .feed-form-errors {
        margin-left: 0;
    }
}

/* POSTS */
.post-user {
    display: flex;
    gap: 10px;
    align-items: center;
}

.post-content {
    margin: 10px 0;
}

.post-date {
    font-size: 12px;
    color: gray;
}

/* IMAGENS */
.post-images img {
    width: 100%;
    border-radius: 10px;
    margin-top: 10px;
    cursor: pointer;
}
.fixed-badge {
    background: #fff3cd;
    color: #856404;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 12px;
    margin-bottom: 10px;
    display: inline-block;
}

/* ARQUIVOS */
.file-link {
    display: block;
    margin-top: 5px;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}

.modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.action-btn {
    font-size: 12px;
    margin-left: 10px;
    cursor: pointer;
    text-decoration: none;
    color: #0a66c2;
}

.action-btn.delete {
    color: red;
}

.post-menu {
    position: relative;
}

.menu-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

.menu-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 25px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    min-width: 120px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 10;
}

.menu-dropdown form {
    margin: 0;
}

.menu-dropdown a,
.menu-dropdown button {
    display: block;
    width: 100%;
    padding: 10px;
    text-decoration: none;
    color: black;
    font-size: 14px;
    text-align: left;
    background: none;
    border: 0;
    cursor: pointer;
}

.menu-dropdown a:hover,
.menu-dropdown button:hover {
    background: #f3f2ef;
}

.menu-dropdown .delete {
    color: red;
}

/* ==========================================
   Class Management Modern Grid & Filter UI
   ========================================== */

.turmas-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    background: #fff;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid var(--border, #e5e7eb);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.turmas-search-wrapper {
    position: relative;
    flex: 1;
    min-width: 240px;
}

.turmas-search-input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    font-size: 0.95rem;
    border: 1px solid var(--border, #d1d5db);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #f9fafb;
}

.turmas-search-input:focus {
    background: #fff;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.turmas-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
    font-size: 0.95rem;
}

.turmas-controls-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.turmas-count-badge {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b7280;
    background: #f3f4f6;
    padding: 6px 12px;
    border-radius: 20px;
}

.view-toggle-btns {
    display: inline-flex;
    background: #f3f4f6;
    padding: 3px;
    border-radius: 8px;
}

.view-toggle-btn {
    border: none;
    background: transparent;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #6b7280;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.view-toggle-btn.active {
    background: #fff;
    color: #111827;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.turmas-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.filter-chip {
    border: 1px solid var(--border, #e5e7eb);
    background: #fff;
    color: #4b5563;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-chip:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.filter-chip.active {
    background: #ffebd8;
    color: #c2410c;
    border-color: #fdba74;
    font-weight: 600;
}

.turmas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.turma-card {
    background: #fff;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 14px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    z-index: 1;
}

.turma-card:has(.action-menu.is-open),
.turma-card.is-open {
    z-index: 100;
}

.turma-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: #fdba74;
}

.turma-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.turma-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    line-height: 1.3;
    text-decoration: none;
}

.turma-card-title:hover {
    color: #f97316;
}

.turma-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.turma-badge-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.turma-info-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #4b5563;
    background: #f3f4f6;
    padding: 4px 10px;
    border-radius: 6px;
}

.turma-students-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #0369a1;
    background: #e0f2fe;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 500;
}

.turma-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

.turma-card-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #f97316;
    text-decoration: none;
    transition: color 0.2s;
}

.turma-card-action-btn:hover {
    color: #c2410c;
}

.turmas-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 16px;
    background: #fff;
    border: 1px dashed #d1d5db;
    border-radius: 14px;
    color: #6b7280;
}
/* Pedagogical operating system */
.eyebrow {
    color: #d95f02;
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 0.45rem;
    text-transform: uppercase;
}

.pedagogy-hero,
.pedagogy-callout,
.combat-card-head,
.curriculum-version-card {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.pedagogy-hero {
    border-left: 5px solid #ff7a00;
    margin-bottom: 1.25rem;
}

.pedagogy-hero-main { max-width: 70%; }
.pedagogy-hero-side { display: grid; gap: 0.35rem; min-width: 220px; }
.pedagogy-hero-side label,
.pedagogy-dl dt { color: #6b7280; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; }

.pedagogy-grid,
.maker-grid,
.combat-catalog-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 1rem;
}

.combat-catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pedagogy-badges { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.75rem 0; }
.combat-code { color: #ff7a00; font-size: 0.82rem; font-weight: 800; }
.combat-card h3 { margin: 0.2rem 0 0.5rem; }
.combat-card p { font-size: 0.88rem; }
.status.warning { background: #fff1cc; color: #8a5700; }
.pedagogy-dl { display: grid; gap: 0.75rem; }
.pedagogy-dl div { border-bottom: 1px solid #eceff3; padding-bottom: 0.65rem; }
.pedagogy-dl dd { margin: 0.2rem 0 0; }
.form-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 0.65rem; }
.pedagogy-action-bar { margin: 1rem 0; }
.timeline-list { display: grid; gap: 0.75rem; }
.timeline-list > div { border-left: 3px solid #ff7a00; padding-left: 0.75rem; }
.timeline-list p { margin: 0.25rem 0; }
.timeline-list small { color: #6b7280; }
.pedagogical-form { margin: 0 auto; max-width: 780px; }
.pedagogical-form p { display: grid; gap: 0.35rem; }
.pedagogical-form input[type="checkbox"] { justify-self: start; }
.filter-bar { align-items: end; display: flex; gap: 0.75rem; margin-bottom: 1rem; max-width: 420px; }
.table-scroll { overflow-x: auto; }
.quality-scan-bar { align-items: center; display: flex; gap: 1rem; justify-content: space-between; margin-bottom: 1rem; }
.quality-scan-bar p { margin: 0.25rem 0 0; }
.quality-resolution-form { display: grid; gap: 0.5rem; min-width: 240px; }

@media (max-width: 1000px) {
    .combat-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
    .pedagogy-grid,
    .maker-grid,
    .combat-catalog-grid { grid-template-columns: 1fr; }
    .pedagogy-hero,
    .pedagogy-callout,
    .curriculum-version-card { flex-direction: column; }
    .pedagogy-hero-main { max-width: none; }
    .pedagogy-hero-side { min-width: 0; width: 100%; }
}
