/* Estilos específicos para página de Anamnese */

.search-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.search-section h3 {
    color: #0a7a83;
    margin-bottom: 15px;
    font-size: 1.5em;
    border-bottom: 2px solid #0a7a83;
    padding-bottom: 10px;
}

.search-aluno-box {
    position: relative;
}

.search-aluno-box input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
}

.search-aluno-box input:focus {
    outline: none;
    border-color: #0a7a83;
    box-shadow: 0 0 0 3px rgba(10, 122, 131, 0.15);
}

.resultados-busca {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.resultados-busca.show {
    display: block;
}

.resultado-item {
    padding: 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.resultado-item:hover {
    background: #f8f9fa;
}

.resultado-item:last-child {
    border-bottom: none;
}

.resultado-nome {
    font-weight: 600;
    color: #0a7a83;
    margin-bottom: 5px;
}

.resultado-info {
    font-size: 0.85em;
    color: #666;
}

.anamnese-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.anamnese-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.anamnese-header .btn-secondary {
    padding: 6px 8px;
    font-size: 0.8em;
    white-space: nowrap;
    width: auto;
    min-width: auto;
    flex: 0 0 auto;
}

.anamnese-header h3 {
    color: #0a7a83;
    font-size: 1.5em;
    border-bottom: 2px solid #0a7a83;
    padding-bottom: 10px;
    flex: 1;
}

.anamnese-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-section-title {
    font-size: 1.2em;
    font-weight: 700;
    color: #0a7a83;
    margin-top: 15px;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #e0e0e0;
}

.anamnese-form textarea {
    padding: 8px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    resize: vertical;
    transition: all 0.3s ease;
}

.anamnese-form textarea:focus {
    outline: none;
    border-color: #0a7a83;
    box-shadow: 0 0 0 3px rgba(10, 122, 131, 0.15);
}

.anamnese-form select {
    padding: 8px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    background: white;
    transition: all 0.3s ease;
}

.anamnese-form select:focus {
    outline: none;
    border-color: #0a7a83;
    box-shadow: 0 0 0 3px rgba(10, 122, 131, 0.15);
}

.anamnese-form input[readonly] {
    background: #f0f0f0;
    cursor: not-allowed;
}

.anamneses-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px;
}

.anamnese-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid #0a7a83;
}

.anamnese-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.anamnese-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.anamnese-aluno-nome {
    font-size: 1.3em;
    font-weight: 700;
    color: #0a7a83;
}

.anamnese-data {
    font-size: 0.9em;
    color: #666;
}

.anamnese-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    font-size: 0.95em;
}

.anamnese-info-item {
    display: flex;
    flex-direction: column;
}

.anamnese-info-label {
    font-weight: 600;
    color: #666;
    font-size: 0.85em;
    margin-bottom: 3px;
}

.anamnese-info-value {
    color: #333;
    word-wrap: break-word;
}

.anamnese-info-value.full-width {
    grid-column: 1 / -1;
}

/* Responsividade */
@media (max-width: 968px) {
    .anamnese-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .anamnese-info {
        grid-template-columns: 1fr;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
    }
}

