/* Estilos da página Carga Horária */

.search-section-full.carga-horaria-card .section-header,
.carga-horaria-card .section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.search-section-full {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    border: 1px solid #e8e8e8;
}

.search-section-full h3,
.carga-horaria-card 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: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
}

.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;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.resultado-item {
    padding: 12px 15px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.resultado-item:hover {
    background: #f8f9ff;
}

.resultado-item:last-child {
    border-bottom: none;
}

.carga-horaria-layout {
    margin-top: 20px;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.exercicios-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.dias-semana-section {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
}

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

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

.carga-horaria-header-card {
    background: linear-gradient(135deg, #0a7a83 0%, #0d9ba8 100%);
    padding: 20px 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(10, 122, 131, 0.3);
    flex-wrap: wrap;
    gap: 15px;
}

.carga-horaria-header-info {
    flex: 1;
    min-width: 200px;
}

.carga-horaria-header-title {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.carga-horaria-header-title h3 {
    color: white;
    font-size: 1.2em;
    font-weight: 600;
    margin: 0;
    padding: 0;
    border: none;
}

.carga-horaria-aluno-nome-header {
    color: white;
    font-size: 1.4em;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

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

.btn-trocar-aluno {
    background: white;
    color: #0a7a83;
    border: 2px solid white;
    padding: 10px 20px;
    font-size: 0.95em;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-trocar-aluno:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-trocar-aluno span {
    font-size: 1.1em;
}

.dias-semana-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dias-semana-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.dia-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.dia-checkbox:hover {
    border-color: #0a7a83;
    background: #f8f9ff;
}

.dia-checkbox input[type="checkbox"] {
    display: none;
}

.dia-checkbox span {
    font-weight: 600;
    color: #666;
    font-size: 0.95em;
}

.dia-checkbox input[type="checkbox"]:checked + span,
.dia-checkbox input[type="checkbox"]:checked ~ span {
    color: #0a7a83;
    font-weight: 700;
}

.dia-checkbox.checked {
    background: linear-gradient(135deg, #0a7a83 0%, #0fbec6 100%);
    border-color: #0a7a83;
}

.dia-checkbox.checked span {
    color: white;
    font-weight: 700;
}

.vezes-semana-info {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

.vezes-label {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
}

.vezes-value {
    font-size: 2em;
    font-weight: 700;
    color: #0a7a83;
}

.btn-salvar-dias {
    width: 100%;
    background: linear-gradient(135deg, #0a7a83 0%, #0d9ba8 100%);
    border: none;
    padding: 12px 20px;
    font-size: 1em;
    font-weight: 600;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(10, 122, 131, 0.3);
}

.btn-salvar-dias:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(10, 122, 131, 0.4);
}

.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%;
    background: linear-gradient(135deg, #0a7a83 0%, #0d9ba8 100%);
    border: none;
    padding: 12px 20px;
    font-size: 1em;
    font-weight: 600;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(10, 122, 131, 0.3);
}

.btn-salvar-horario:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(10, 122, 131, 0.4);
}

.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 .form-group {
    margin-bottom: 10px;
}

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

.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;
    background: linear-gradient(135deg, #0a7a83 0%, #0d9ba8 100%);
    border: none;
    padding: 12px 20px;
    font-size: 1em;
    font-weight: 600;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(10, 122, 131, 0.3);
}

.btn-salvar-troca:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(10, 122, 131, 0.4);
}

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

@media (max-width: 768px) {
    .carga-horaria-header-card {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
    }

    .carga-horaria-header-info {
        width: 100%;
    }

    .carga-horaria-header-actions {
        width: 100%;
        justify-content: stretch;
    }

    .btn-trocar-aluno {
        width: 100%;
        justify-content: center;
    }

    .exercicios-grid {
        grid-template-columns: 1fr;
    }
    .horario-trocas-section {
        position: static;
    }
}
