/* =========================
   HEADER
   ========================= */

.main-header {
    background: linear-gradient(90deg, #224679 33%, #406DAD 100%);
    width: 100%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    z-index: 3000;
}

.navbar-custom {
    font-family: "Inter", sans-serif;
    background-color: #2f4f81;
    height: 70px;
    font-size: 17px;
    position: relative;
    z-index: 3100;
}

/* Desktop - Menus centralizados */
@media (min-width: 992px) {

    /* navbar ocupa toda largura */
    .navbar-custom .navbar-collapse {
        display: flex !important;
        align-items: center;
    }

    /* 🔥 wrapper centralizado perfeitamente */
    .menu-center-wrapper {
        flex: 1;
        display: flex;
        justify-content: center;
    }

    /* avatar colado à direita */
    .navbar-custom .dropdown.d-none.d-lg-block {
        margin-left: auto;
    }
}

/* Mobile Menu */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: #2f4f88;
        padding: 20px;
        border-radius: 0 0 12px 12px;
    }

    .navbar-nav {
        text-align: left;
    }

    .navbar-nav .nav-link {
        padding: 10px 0;
        color: white;
    }

    .dropdown {
        margin-top: 15px;
    }

    .nav-links {
        display: none !important;
    }
    
    /* Ajustes mobile adicionais */
    .navbar-nav .nav-item {
        padding: 8px 20px;
    }

    .dropdown-menu {
        background-color: #3a5fa2;
        border: none;
        margin-top: 8px;
        padding-left: 20px;
    }

    .dropdown-menu .dropdown-item {
        color: white;
        padding: 8px 0;
        font-size: 14px;
    }

    .dropdown-menu .dropdown-item:hover {
        background-color: transparent;
        color: #e3ebf7;
    }
}

/* DROPDOWN STYLING (unificado) */
.dropdown {
    position: relative;
}

.dropdown-menu {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 6px 0;
    min-width: 140px;
    margin-top: 5px;
    z-index: 4000 !important;
}

.dropdown-menu .dropdown-item {
    color: #2c3e50;
    padding: 10px 16px;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item.active,
.dropdown-menu .dropdown-item:active {
    background-color: #e3ebf7;
    color: #30599B;
}

.nav-pill.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-pill.dropdown-toggle::after {
    content: '';
    border: solid white;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    margin-left: 4px;
}

/* NAVBAR FIXES */
.navbar-brand {
    padding: 0;
    margin-right: 0;
}

.navbar-brand img {
    max-height: 85px;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.75rem;
}

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

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

.nav-links .btn-logout {
    margin-left: auto;
}

.dropdown-menu-end {
    right: 0 !important;
    left: auto !important;
}

/* =========================
   LOGO
   ========================= */

.logo-gov {
    height: 90px;
    object-fit: contain;
}



/* =========================
   AVATAR
   ========================= */

.avatar-circle {
    width: 35px;
    height: 35px;
    background-color: #30507e;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================
   BARRA COLORIDA
   ========================= */

.color-stripe {
    display: flex;
    height: 8px;
    width: 100%;
}

.stripe-item { flex: 1; }
.yellow { background-color: #f1c40f; }
.red { background-color: #e43838; }
.blue { background-color: #3498db; }
.green { background-color: #2ecc71; }
.black { background-color: #000000; }

/* =========================
   BOTÕES
   ========================= */

.btn-primary {
    background-color: #30599B !important;
    border-color: #30599B !important;
}

.btn-primary:hover {
    background-color: #27497f !important;
    border-color: #27497f !important;
}

.btn-outline-primary {
    border-color: #30599B !important;
    color: #30599B !important;
}

.btn-outline-primary:hover {
    background-color: #27497f !important;
    border-color: #27497f !important;
    color: #ffffff !important;
}

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

.form-control, 
.form-select {
    border: none !important;
    border-radius: 8px !important;
    padding: 0.6rem 1rem !important;
    background-color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04) !important;
    transition: all 0.2s ease-in-out;
}

.form-control:focus, 
.form-select:focus {
    box-shadow: 0 4px 12px rgba(48, 89, 155, 0.12) !important;
    transform: translateY(-1px);
}

/* File input */
.form-control::file-selector-button {
    background-color: #f1f3f5;
    color: #495057;
    border: none;
    border-right: 1px solid #dee2e6;
    padding: 0.375rem 0.75rem;
    margin-right: 10px;
    transition: background-color 0.2s;
    cursor: pointer;
}

.form-control::file-selector-button:hover {
    background-color: #e9ecef;
}

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

.card {
    border: none;
}

.dashboard-card {
    border-radius: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.12);
}

.card-blue {
    background: linear-gradient(135deg, #e3ebf7, #d4e1ff);
}

.card-yellow {
    background: linear-gradient(135deg, #fff3cd, #ffe8a1);
}

.card-green {
    background: linear-gradient(135deg, #e6f4ea, #d1f0dd);
}

.card-info {
    background: linear-gradient(135deg, #e0f7fa, #b2ebf2);
}
.dashboard-icon {
    font-size: 28px;
}

/* =========================
   TABELAS PADRÃO
   ========================= */

.card-header {
    border: none !important;
}

.card-header-azul {
    background-color: #e3ebf7 !important;
    border-bottom: 1px solid #d1ddf0;
}

.card-header-azul th {
    background-color: #e3ebf7 !important;
    border-bottom: 1px solid #d1ddf0;
}

.card-header-azul-escuro {
    background-color: #406DAD;
}

.card-header-azul h5 {
    color: #1e293b;
    font-weight: 600;
}

.modal .modal-content {
    border: none;
}

.table-padrao {
    border-radius: 12px;
    overflow: hidden;
}

.table-header-azul {
    background-color: #e3ebf7 !important;
}

.table-header-azul th {
    color: #1e293b;
    font-weight: 600;
    border: none;
}

.table-padrao tbody tr {
    border-bottom: 1px solid #e9ecef;
}

.table-padrao tbody tr:hover {
    background-color: #f1f5ff;
}

/* =========================
   CARDS MATERIAIS (ALUNO)
   ========================= */

.card-estilo-padrao {
    border: 1px solid #30599B;
    border-radius: 12px;
    background: white;
    transition: transform .2s ease, box-shadow .2s ease;
}

.card-estilo-padrao:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,.08);
}

.icon-circle {
    width: 70px;
    height: 70px;
    background: #f0f2f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px auto;
}

.icon-circle i {
    font-size: 2rem;
    color: #30599B;
}

.titulo-modulo {
    color: #30599B;
}

.card-estilo-padrao a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
}

.card-estilo-padrao a:hover {
    color: #30599B;
}

#container-acoes-ajax .table tbody tr:hover {
    background-color: #f8fafc;
}

#container-acoes-ajax .badge {
    font-weight: 500;
}

/* =========================
   PROFESSOR INFO
   ========================= */

.prof-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.prof-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e3ebf7;
    color: #30599B;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================
   BADGES SOFT
   ========================= */

.badge-soft-primary {
    background: #e7f1ff;
    color: #2f6fed;
    font-weight: 600;
    border-radius: 15px;
    padding: 5px;
    font-size: 14px;
}

.badge-soft-info {
    background: #e6f7ff;
    color: #0aa2c0;
    font-weight: 600;
     border-radius: 15px;
    padding: 5px;
    font-size: 14px;
}

.badge-soft-warning {
    background: #fff4e5;
    color: #cc8a00;
    font-weight: 600;
    border-radius: 15px;
    padding: 5px;
    font-size: 14px;
}

.badge-soft-success {
    background: #e9f7ef;
    color: #1e7e34;
    font-weight: 600;
    border-radius: 15px;
    padding: 5px;
    font-size: 14px;
}

.badge-soft-danger {
    background: #ffd1cc;
    color: #b02a37;
    font-weight: 600;
    border-radius: 15px;
    padding: 5px 10px;
    font-size: 14px;
}

.badge-soft-gray {
    background: #f1f3f5 !important;
    color: #6c757d !important;
    font-weight: 600;
    border-radius: 15px !important;
    padding: 5px 10px;
    font-size: 14px;
}

.code-soft {
    background: #f1f3f5;
    padding: 3px 8px;
    border-radius: 6px;
    /* color: #d63384; */
    color: #4b4a4a;
      border-radius: 15px;
    padding: 5px;
    font-size: 14px;
}

/* Estilo padrão dos inputs acinzentados */
.input-gray {
    background-color: #f2f2f2 !important;
    border: 1px solid transparent !important;
    border-radius: 10px;
}

/* Focus */
.input-gray:focus {
    background-color: #f2f2f2 !important;
    border: 1px solid #222222 !important;
    outline: none;
    box-shadow: none;
}

/* Select ocupa largura correta */
select.input-gray {
    width: 100%;
}


.btn-action {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

