/* static/css/contingency.css */
/* Estilos para sistema de contingências */

/* ========================================
   MODAL OVERLAY
   ======================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-large {
    max-width: 800px;
}

.modal-content h3 {
    margin-top: 0;
    color: #333;
    font-size: 1.5rem;
}

.modal-content h4 {
    color: #2c5f9d;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.modal-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}


/* ========================================
   CHECKLIST
   ======================================== */

.checklist-category {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.checklist-category h4 {
    margin: 0 0 0.75rem 0;
    color: #2c5f9d;
    font-size: 1.1rem;
}

.checklist-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 4px;
}

.checklist-item:hover {
    background: white;
}

.checklist-item input[type="checkbox"] {
    margin-right: 0.75rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}


/* ========================================
   LISTA DE PROBLEMAS
   ======================================== */

.problems-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.problem-button {
    padding: 1rem;
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    text-align: left;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.problem-button:hover {
    background: #f8f9fa;
    border-color: #2c5f9d;
    transform: translateX(5px);
}


/* ========================================
   SOLUÇÃO
   ======================================== */

.solution-header {
    margin: -2rem -2rem 1.5rem -2rem;
    padding: 1.5rem 2rem;
    color: white;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.solution-header h3 {
    margin: 0;
    color: white;
    flex: 1;
}

.severity-badge, .sla-badge {
    background: rgba(255, 255, 255, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.solution-body {
    padding: 0;
}

.section {
    margin-bottom: 1.5rem;
}

.action-list, .prevention-list {
    margin: 0;
    padding-left: 1.5rem;
}

.action-list li, .prevention-list li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.action-list li {
    color: #333;
    font-weight: 500;
}

.prevention-list li {
    color: #666;
}


/* ========================================
   BOTÕES
   ======================================== */

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.btn-primary {
    background: #2c5f9d;
    color: white;
}

.btn-primary:hover {
    background: #1a3d68;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.btn-info {
    background: #17a2b8;
    color: white;
}

.btn-info:hover {
    background: #138496;
}

.btn-warning {
    background: #ffc107;
    color: #333;
}

.btn-warning:hover {
    background: #e0a800;
}


/* ========================================
   RESPONSIVO
   ======================================== */

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }
    
    .modal-large {
        max-width: 95%;
    }
    
    .solution-header {
        margin: -1.5rem -1.5rem 1rem -1.5rem;
        padding: 1rem 1.5rem;
    }
    
    .solution-header h3 {
        font-size: 1.2rem;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}
