/* Estilos específicos para página de Financeiro */

.search-section-full {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    grid-column: 1 / -1;
}

.search-section-full h3 {
    color: #0a7a83;
    margin-bottom: 15px;
    font-size: 1.5em;
    border-bottom: 2px solid #0a7a83;
    padding-bottom: 10px;
}

.financeiro-layout {
    display: block;
    grid-column: 1 / -1;
}

.horario-trocas-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.horario-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.horario-label {
    display: block;
    font-weight: 600;
    color: #555;
    font-size: 0.9em;
    margin-bottom: 8px;
}

.horario-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    text-align: center;
}

.horario-input:focus {
    outline: none;
    border-color: #0a7a83;
    box-shadow: 0 0 0 3px rgba(10, 122, 131, 0.15);
}

.btn-salvar-horario {
    width: 100%;
}

.horario-info {
    margin-bottom: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.horario-inicio-fim {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.horario-texto {
    color: #666;
}

.horario-texto strong {
    color: #0a7a83;
    font-size: 1.1em;
}

.horario-duracao {
    text-align: center;
    font-size: 0.85em;
    color: #999;
    font-style: italic;
}

.troca-horario-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.troca-horario-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.troca-select {
    width: 100%;
    padding: 8px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    background: white;
    transition: all 0.3s ease;
}

.troca-select:focus {
    outline: none;
    border-color: #0a7a83;
    box-shadow: 0 0 0 3px rgba(10, 122, 131, 0.15);
}

.btn-salvar-troca {
    width: 100%;
    margin-top: 5px;
}

.trocas-lista {
    margin-bottom: 15px;
    max-height: 200px;
    overflow-y: auto;
}

.troca-item {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.troca-item-info {
    flex: 1;
}

.troca-item-dia {
    font-weight: 600;
    color: #856404;
    margin-bottom: 3px;
}

.troca-item-horario {
    font-size: 0.9em;
    color: #666;
}

.btn-remover-troca {
    padding: 5px 10px;
    font-size: 0.85em;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-remover-troca:hover {
    background: #c82333;
}

.btn-limpar-trocas {
    width: 100%;
    margin-top: 10px;
}

.trocas-lista-empty {
    text-align: center;
    padding: 15px;
    color: #999;
    font-style: italic;
    font-size: 0.9em;
}

.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;
}

.financeiro-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

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

.financeiro-header h3 {
    color: #0a7a83;
    font-size: 1.5em;
    border-bottom: 2px solid #0a7a83;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.aluno-info-header {
    display: flex;
    gap: 20px;
    font-size: 0.95em;
    color: #666;
    margin-top: 10px;
}

.aluno-info-header strong {
    color: #0a7a83;
}

.btn-small {
    padding: 6px 8px;
    font-size: 0.8em;
    white-space: nowrap;
    width: auto;
    min-width: auto;
    flex: 0 0 auto;
}

.resumo-financeiro {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.resumo-item {
    text-align: center;
}

.resumo-label {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 8px;
    font-weight: 600;
}

.resumo-value {
    font-size: 1.3em;
    font-weight: 700;
    color: #333;
}

.resumo-value.status-pago {
    color: #28a745;
}

.resumo-value.status-pendente {
    color: #ffc107;
}

.resumo-value.status-atrasado {
    color: #dc3545;
}

.valor-negativo {
    color: #dc3545;
}

.form-pagamento-section,
.config-mensalidade-section,
.historico-section {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.form-pagamento-section h4,
.config-mensalidade-section h4,
.historico-section h4 {
    color: #0a7a83;
    font-size: 1.2em;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.pagamento-form,
.mensalidade-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.historico-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

.pagamento-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #0a7a83;
    transition: all 0.3s ease;
}

.pagamento-card:hover {
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.pagamento-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.pagamento-mes {
    font-weight: 700;
    color: #0a7a83;
    font-size: 1.1em;
}

.pagamento-valor {
    font-weight: 700;
    color: #28a745;
    font-size: 1.2em;
}

.pagamento-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    font-size: 0.9em;
    color: #666;
}

.pagamento-info-item {
    display: flex;
    flex-direction: column;
}

.pagamento-info-label {
    font-weight: 600;
    font-size: 0.85em;
    margin-bottom: 3px;
}

.pagamento-info-value {
    color: #333;
}

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

.pagamento-status.pago {
    background: #d4edda;
    color: #155724;
}

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

.pagamento-status.atrasado {
    background: #f8d7da;
    color: #721c24;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #999;
}

.empty-state p {
    font-size: 1.1em;
}

/* Scrollbar personalizada */
.historico-list::-webkit-scrollbar {
    width: 8px;
}

.historico-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.historico-list::-webkit-scrollbar-thumb {
    background: #0a7a83;
    border-radius: 10px;
}

.historico-list::-webkit-scrollbar-thumb:hover {
    background: #0fbec6;
}

/* Responsividade */
@media (max-width: 968px) {
    .financeiro-layout {
        grid-template-columns: 1fr;
    }

    .dias-semana-section {
        position: relative;
        top: 0;
    }

    .dias-semana-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .financeiro-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .resumo-financeiro {
        grid-template-columns: 1fr;
    }

    .aluno-info-header {
        flex-direction: column;
        gap: 10px;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
    }
}
