/* estilo.css - Estilos gerais do sistema */

body {
    background-color: #f4f6f9;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

.section-title {
    color: #0d6efd;
    border-bottom: 2px solid #0d6efd;
    padding-bottom: 6px;
    margin-top: 20px;
    margin-bottom: 16px;
    font-weight: 600;
}

.card {
    border: none;
    border-radius: 8px;
}

.formula-box {
    background: #f8f9fa;
    border-left: 4px solid #0d6efd;
    padding: 12px 18px;
    margin: 12px 0;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    border-radius: 4px;
}

.trt-box {
    background: #fff;
    border: 1px solid #ccc;
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
    border-radius: 4px;
}

.nav-tabs .nav-link {
    color: #495057;
    font-weight: 500;
}

.nav-tabs .nav-link.active {
    color: #0d6efd;
    font-weight: 700;
    border-bottom: 3px solid #0d6efd;
}

.tab-content {
    background: white;
    border-radius: 0 0 8px 8px;
    min-height: 400px;
}

.alert-danger h4 {
    color: #842029;
    font-weight: 700;
}

label.form-label {
    font-weight: 500;
    font-size: 14px;
    color: #495057;
}

.form-control:focus, .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.15rem rgba(13,110,253,.15);
}

.is-invalid {
    border-color: #dc3545 !important;
}

table th {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
/* ============ DIAGRAMA UNIFILAR ============ */

.diagrama-container {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,.05);
}

.diagrama-svg {
    max-width: 100%;
    height: auto;
    max-height: 1100px;
    background: #fafbfc;
    border-radius: 4px;
}

.diagrama-acoes {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 10px;
    border-top: 1px solid #e9ecef;
}

.diagrama-acoes .btn {
    min-width: 140px;
}

/* Hover sutil nos componentes do SVG */
.diagrama-svg g:hover rect {
    filter: brightness(0.97);
    cursor: help;
}
