/* Seu CSS existente */
:root {
    --verde-principal: #218838;
    --verde-escuro: rgb(18, 75, 31);
    --verde-claro: #e8f5e9;
}

body.login {
    background: url('../logo/LAYOUT-FUNDO-2.png') no-repeat center center fixed;
    background-size: cover;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.login .main-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login .login-container {
    background-color: rgba(33, 136, 55, 0.30);
    border-radius: 15px;
    padding: 2.5rem;
    max-width: 450px;
    width: 100%;
    margin: 0 auto 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.login .footer-logos {
    background-color: rgb(250, 250, 250);
    padding: -5rem;
    text-align: center;
    margin-top: -5px;
    width: 100%;

}


.login .logo-row {

    justify-content: center;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: 0rem;
    margin-top: -2rem;


}

.login .logo-footer {
    height: 130px;
    margin-top: 7px;


}

.login .sus-header {
    text-align: center;
    margin-bottom: 1rem;
}

.login .logo-telessaude {
    max-width: 150px;
    margin-bottom: -30px;
    margin-top: -50px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.login .btn-sus {
    background-color: var(--verde-escuro);
    border: none;
    padding: 12px 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border-radius: 8px;
    color: #ddd;
}

.login .btn-sus:hover {
    background-color: rgb(48, 131, 65);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.login .form-control {
    border-radius: 8px;
    padding: 12px 15px;
    border: 1px solid #ddd;
}

.login .form-control:focus {
    border-color: var(--verde-principal);
    box-shadow: 0 0 0 0.25rem rgba(33, 136, 56, 0.25);
}

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

.login .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.login .alert {
    border-radius: 8px;
}

.login .input-group-text {
    background-color: var(--verde-claro);
    border: 1px solid #ddd;
}

.login .input-group {
    border-radius: 5px;
    color: #218838;
}

.login .footer-links {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.login .footer-links a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.login .footer-links a:hover {
    color: var(--verde-claro);
    text-decoration: underline;
}

.login h3 {
    color: white;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 0.5rem;
}

.login .password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
    z-index: 5;
}

.login .password-wrapper {
    position: relative;
}

.login .copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    margin-top: 0.5rem;
    text-align: center;

}

.login .copyright a {
    color: rgba(14, 209, 243, 0.7);
    text-decoration: none;

}

.login .copyright a:hover {
    color: rgba(130, 226, 243, 0.7);
}

.login .contato {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;

}

.login .password-wrapper>.input-group>.form-control {
    border-radius: 0 8px 8px 0 !important;
    border-left: none !important;
}

.login .password-wrapper>.input-group>.input-group-text {
    border-radius: 8px 0 0 8px !important;
}

.login .password-wrapper>.input-group {
    border-radius: 8px !important;
    overflow: hidden !important;
}

.login .versao {
    position: absolute;
    bottom: 10px;
    font-size: 10px;
    left: 98%;
    transform: translateX(-50%);
    padding: 5px 10px;
    z-index: 2;
}

.login .password-toggle {
    color: rgb(31, 53, 36);
}

/* HOME SOLICITANTE */

.home-solicitante .col-md-6 a{
    text-decoration: none !important ;
}

.home-solicitante .dashboard-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.home-solicitante .card-simple {
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.home-solicitante  .card-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #28a745;
    margin: 10px 0;
}



.home-solicitante .card-title {
    color: #6c757d;
    font-size: 1.1rem;
}

.home-solicitante .btn-panel {
    display: block;
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
}

/* Estilos para o modal de aviso */
.home-solicitante .modal-aviso .modal-header {
    background-color: #198754;
    color: white;
    border-bottom: 1px #198754;
}

.home-solicitante .modal-aviso .modal-title {
    font-weight: bold;
}

.home-solicitante .modal-aviso .modal-body {
    max-height: 400px;
    overflow-y: auto;
}

.home-solicitante .modal-aviso .aviso-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #e9ecef;
}

.home-solicitante .modal-aviso .aviso-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.home-solicitante .modal-aviso .aviso-item h5 {
    font-size: 1.15rem;
    margin-bottom: 5px;
}

.home-solicitante .modal-aviso .aviso-item p {
    margin-bottom: 0;
}

.home-solicitante .modal-aviso .aviso-footer {
    text-align: right;
    font-size: 0.85em;
    color: #6c757d;
}

.home-solicitante .btn-primary {
    background-color: #198754;
    border: none;
}

.home-solicitante .btn-primary:hover {
    background-color: rgb(23, 110, 70);
    border: none;
}

.home-solicitante .page-title {
    color: #2c3e50;
    font-weight: 600;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.home-solicitante .form-label {
    font-weight: 500;
}

.home-solicitante .btn-action {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.home-solicitante .modal-confirmacao .modal-header {
    background-color: #198754;
    color: white;
}

.home-solicitante .modal-confirmacao .bi-check-circle {
    font-size: 1.5rem;
}

.home-solicitante .modal-confirmacao .modal-body {
    font-size: 1.1rem;
}

/* Oculta os campos de indígena e responsável por padrão */
#campos-indigena,
#campos-responsavel {
    display: none;
}

.btn-primary {
    display: block;
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    font-size: 1rem;
    background-color: #198754;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #157347;
}

.page-title {
    color: #2c3e50;
    font-weight: 600;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 500;
}

.btn-action {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.modal-confirmacao .modal-header {
    background-color: #198754;
    color: white;
}

.modal-confirmacao .bi-check-circle {
    font-size: 1.5rem;
}

.modal-confirmacao .modal-body {
    font-size: 1.1rem;
}

/* Oculta os campos de indígena e responsável por padrão */
#campos-indigena,
#campos-responsavel {
    display: none;
}

.btn-primary {
    display: block;
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    font-size: 1rem;
    background-color: #198754;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #157347;
}

/* ---------------------------------------------------
   Estilos ESPECÍFICOS para a Página de Inscrição
   --------------------------------------------------- */

/* Aplica-se APENAS ao .page-title dentro do <body> com classe .page-inscricao */
.page-inscricao .page-title {
    color: #2c3e50;
    font-weight: 600;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.page-inscricao .form-label {
    font-weight: 500;
}

.page-inscricao .btn-action {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.page-inscricao .modal-confirmacao .modal-header {
    background-color: #198754;
    color: white;
}

.page-inscricao .modal-confirmacao .bi-check-circle {
    font-size: 1.5rem;
}

.page-inscricao .modal-confirmacao .modal-body {
    font-size: 1.1rem;
}

/* Os IDs não precisam do prefixo, a menos que você tenha IDs iguais em outras páginas
   que devam ser ocultados (o que é má prática). Geralmente, o ID já é único. */
.page-inscricao #campos-indigena,
.page-inscricao #campos-responsavel {
    display: none;
}

.page-inscricao .btn-primary {
    display: block;
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    font-size: 1rem;
    background-color: #198754;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-inscricao .btn-primary:hover {
    background-color: #157347;
}


/* PAGINA DE AGENDA */

:root {
    --uea-green: #198754;
    --uea-red: #dc3545;
    --uea-yellow: #ffc107;
    --uea-gray: #6c757d;
}

.agenda_sol .page-header {
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.agenda_sol .fc .fc-toolbar-title {
    font-size: 1.4rem;
    color: var(--uea-green);
    font-weight: 600;
}

.agenda_sol .fc .fc-button {
    background-color: var(--uea-green);
    border-color: var(--uea-green);
    font-size: 0.9rem;
}

.agenda_sol .fc .fc-button:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.agenda_sol .fc-event {
    border-radius: 4px;
    padding: 3px;
    margin-bottom: 2px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.agenda_sol .fc-event:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.agenda_sol .fc-event-title {
    white-space: normal;
    font-size: 0.85rem;
    padding: 2px 4px;
}

.agenda_sol .status-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 50rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.agenda_sol .status-agendada {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--uea-green);
}

.agenda_sol .status-cancelada {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--uea-red);
}

.agenda_sol .status-pendente {
    background-color: rgba(255, 193, 7, 0.1);
    color: #856404;
}

.agenda_sol .modal-consulta .modal-header {
    background-color: var(--uea-green);
    color: white;
}

.agenda_sol .modal-consulta .modal-title {
    font-weight: 600;
}

.agenda_sol .patient-info-card {
    border-left: 4px solid var(--uea-green);
    background-color: #f8f9fa;
    border-radius: 0.25rem;
    /* Adicionado para consistência */
}

.agenda_sol .btn-uea {
    background-color: var(--uea-green);
    color: white;
}

.agenda_sol .btn-uea:hover {
    background-color: #218838;
    color: white;
}

.agenda_sol .btn-uea-outline {
    border-color: var(--uea-green);
    color: var(--uea-green);
}

.agenda_sol .btn-uea-outline:hover {
    background-color: var(--uea-green);
    color: white;
}

.agenda_sol .custom-modal-width {
    max-width: 1300px;
    /* Defina a largura máxima desejada */
    width: 90%;
    /* Opcional: para ser responsivo, pode ser uma porcentagem */
}

/* Para controlar a altura do modal (se necessário, mas cuidado para não cortar o conteúdo) */
.agenda_sol .modal-dialog.custom-modal-width .modal-content {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
}

.agenda_sol .modal-dialog.custom-modal-width .modal-body {
    flex-grow: 1;
    overflow-y: auto;
    /* Adiciona scroll se o conteúdo for muito longo */
}

.agenda_sol .modal-header {
    background-color: #198754;
}

.agenda_sol .btn-primary {
    background-color: #198754;
    border: none;
}

.agenda_sol .btn-primary:hover {
    background-color: #1b6b46ff;
    border: none;
}

.agenda_sol .modal-fade {
    background-color: #198754;
}


/* ACOMPANHAR SOLICITAÇÃO */

.acompanhar_sol .status-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 50rem;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

.acompanhar_sol .status-pendente {
    color: #856404;
    background-color: #fff3cd;
}

.acompanhar_sol .status-agendada {
    color: #155724;
    background-color: #d4edda;
}

.acompanhar_sol .status-cancelada {
    color: #721c24;
    background-color: #f8d7da;
}

.acompanhar_sol .acompanhar_sol .status-realizada {
    color: #0f5132;
    background-color: #d1e7dd;
}

.acompanhar_sol .status-recusada {
    color: #856404;
    background-color: #fff3cd;
}

.acompanhar_sol .table-responsive {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
}

.acompanhar_sol .table thead th {
    background-color: #198754;
    color: white;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
}

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

.acompanhar_sol .consulta-cancelada {
    background-color: #f9f9f9;
}

.acompanhar_sol .btn-cancelar {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.acompanhar_sol .page-title {
    color: #2c3e50;
    font-weight: 600;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.acompanhar_sol .no-action {
    color: #6c757d;
    font-size: 0.85rem;
}

.acompanhar_sol .data-agendamento {
    font-weight: 500;
}

.acompanhar_sol .btn-realizada {
    background-color: #198754;
    color: white;
}

.acompanhar_sol btn-realizada:hover {
    background-color: #198754;
}

.acompanhar_sol .action-buttons {
    white-space: nowrap;
}

.acompanhar_sol .modal-body .spinner-border {
    margin-top: 50px;
    margin-bottom: 50px;
}

.acompanhar_sol .patient-info-card,
.acompanhar_sol .responsible-info-card,
.acompanhar_sol .appointment-info-card,
.acompanhar_sol .solicitant-info-card {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 5px solid;
}

.acompanhar_sol .card-header {
    background-color: #198754 !important;
}

.acompanhar_sol .patient-info-card {
    border-color: #198754;
}

.acompanhar_sol .responsible-info-card {
    border-color: #198754;
}

.acompanhar_sol .appointment-info-card {
    border-color: #198754;
}

.acompanhar_sol .solicitant-info-card {
    border-color: #198754;
}

.acompanhar_sol .patient-info-card h6,
.acompanhar_sol .responsible-info-card h6,
.acompanhar_sol .appointment-info-card h6,
.acompanhar_sol .solicitant-info-card h6 {
    margin-bottom: 0;
    color: white !important;
}

.acompanhar_sol #patientDetailsModal .modal-header {
    background-color: #198754 !important;
    color: white !important;
}

.acompanhar_sol .modal-header .btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.acompanhar_sol .view-details-btn {
    cursor: pointer;
    color: #000000ff;
    text-decoration: none;
    font-weight: bold;
}

.acompanhar_sol .view-details-btn:hover {
    color: #223622ff;
}

.acompanhar_sol #mb-0 .h6 {
    color: #0f5132;
}

/* Estilos para o novo modal de validação */
.acompanhar_sol #validarCodigoModal .modal-header {
    background-color: #198754 !important;
    /* Cor verde principal */
    color: white !important;
}

.acompanhar_sol #validarCodigoModal .btn-primary {
    background-color: #198754;
    border-color: #198754;
}

.acompanhar_sol #validarCodigoModal .btn-primary:hover {
    background-color: #157347;
    border-color: #157347;
}

.acompanhar_sol .invalid-feedback {
    display: none;
    /* Escondido por padrão, será mostrado via JS */
}






/* ===== MEDIA QUERIES PARA RESPONSIVIDADE ===== */

/* Tablets e telas menores */
@media (max-width: 1024px) {
    .login .versao {
        left: 95%;
        font-size: 9px;
    }
}

/* Tablets pequenos e celulares grandes */
@media (max-width: 768px) {
    .login .login-container {
        padding: 2rem;
        margin: 0 auto 1.5rem;
        max-width: 400px;
    }
    
    .login .logo-telessaude {
        max-width: 130px;
        margin-bottom: -25px;
        margin-top: -40px;
    }
    
    .login .logo-footer {
        height: 110px;
    }
    
    .login .versao {
        left: 90%;
        font-size: 8px;
        bottom: 5px;
    }
}

/* Celulares */
@media (max-width: 576px) {
    body.login {
        height: auto;
        min-height: 100vh;
        padding: 20px 15px;
    }
    
    .login .main-container {
        justify-content: flex-start;
        padding-top: 1rem;
    }
    
    .login .login-container {
        padding: 1.5rem;
        margin: 0 auto 1rem;
        border-radius: 12px;
    }
    
    .login .logo-telessaude {
        max-width: 110px;
        margin-bottom: -20px;
        margin-top: -30px;
    }
    
    .login h3 {
        font-size: 1.3rem;
        margin-bottom: 0.3rem;
    }
    
    .login .form-label {
        font-size: 0.9rem;
    }
    
    .login .form-control {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .login .btn-sus {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .login .logo-footer {
        height: 90px;
        margin-top: 5px;
    }
    
    .login .logo-row {
        margin-top: -1rem;
    }
    
    .login .footer-links {
        font-size: 0.8rem;
        margin-top: 1rem;
    }
    
    .login .contato {
        font-size: 1rem;
    }
    
    .login .copyright {
        font-size: 0.7rem;
    }
    
    .login .versao {
        position: relative;
        left: auto;
        transform: none;
        text-align: center;
        margin-top: 10px;
        font-size: 8px;
    }
    
    .login .password-toggle {
        right: 8px;
    }
}

/* Celulares muito pequenos */
@media (max-width: 375px) {
    body.login {
        padding: 15px 10px;
    }
    
    .login .login-container {
        padding: 1.2rem;
    }
    
    .login .logo-telessaude {
        max-width: 90px;
        margin-bottom: -15px;
        margin-top: -25px;
    }
    
    .login h3 {
        font-size: 1.2rem;
    }
    
    .login .logo-footer {
        height: 75px;
    }
    
    .login .btn-sus {
        padding: 9px 14px;
        font-size: 0.85rem;
    }
}

/* Ajustes para orientação paisagem em celulares */
@media (max-height: 600px) and (orientation: landscape) {
    body.login {
        height: auto;
        min-height: 100vh;
    }
    
    .login .main-container {
        padding: 10px 0;
    }
    
    .login .login-container {
        margin: 10px auto;
        padding: 1.5rem;
    }
    
    .login .footer-logos {
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    .logo-footer {
        width: 100vw;
    }
    
    .footer-logos {
        padding: 0.8rem;
    }
}

@media (max-width: 576px) {
    .logo-footer {
        width: 95vw;
        min-width: 250px;
    }
    
    .footer-logos {
        padding: 0.5rem;
    }
}