/**
 * CSS para Modernização das Seções - Consistência com Wizard
 * Aplicação da Opção 1: Modernização Suave
 * 
 * ESCOPO: Aplicado apenas em páginas com a classe .quotes-page
 * Para evitar conflitos com outras páginas (satisfaction_surveys, etc.)
 */

/* ========================================
   FIELDSETS MODERNOS (ESCOPO LIMITADO)
   ======================================== */

.quotes-page fieldset.border.card {
    border: none !important;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    overflow: hidden;
    background: #fff;
    transition: all 0.3s ease;
}

.quotes-page fieldset.border.card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

/* LEGENDS MODERNAS */
.quotes-page fieldset legend {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px 20px;
    margin: 0;
    width: 100%;
    border-radius: 0;
    font-weight: 600;
    font-size: 16px;
    color: #495057;
    border-bottom: 3px solid #dee2e6;
    display: flex;
    align-items: center;
}

.quotes-page fieldset legend i {
    color: #0d6efd;
    font-size: 18px;
}

/* CARD BODY INTERNO */
.modern-card-body {
    padding: 25px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

/* ========================================
   INPUTS E SELECTS MODERNOS
   ======================================== */

.modern-input-group {
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.modern-input-group .input-group-text {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-color: #dee2e6;
    font-weight: 600;
    color: #495057;
    min-width: 150px;
    font-size: 0.85rem;
}

.modern-input-group .form-control,
.modern-input-group .form-select {
    border-color: #dee2e6;
    transition: all 0.3s ease;
}

.modern-input-group .form-control:focus,
.modern-input-group .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    transform: translateY(-1px);
}

/* ========================================
   BOTÕES MODERNOS
   ======================================== */

.modern-btn-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #e9ecef;
}

.modern-btn {
    border-radius: 8px;
    padding: 8px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.modern-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.modern-btn i {
    margin-right: 5px;
}

/* ========================================
   SEÇÕES COM ÍCONES
   ======================================== */

.section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 8px;
    background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
    color: white;
    margin-right: 12px;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
}

.section-title {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 16px;
    color: #495057;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

/* ========================================
   TABS MODERNOS (COMMERCIAL)
   ======================================== */

.quotes-page .nav-pills.modern-tabs {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.quotes-page .nav-pills.modern-tabs .nav-link {
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s ease;
    margin: 0 5px;
}

.quotes-page .nav-pills.modern-tabs .nav-link:hover {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    transform: translateY(-2px);
}

.quotes-page .nav-pills.modern-tabs .nav-link.active {
    background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.quotes-page .nav-pills.modern-tabs .nav-link i {
    margin-right: 8px;
}

/* ========================================
   GRID LAYOUT MODERNO
   ======================================== */

.modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.modern-grid-item {
    background: white;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.modern-grid-item:hover {
    border-color: #0d6efd;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
}

/* ========================================
   LABELS MODERNOS
   ======================================== */

.modern-label {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: #495057;
    margin-bottom: 8px;
}

.modern-label i {
    margin-right: 8px;
    color: #0d6efd;
}

.modern-label .badge {
    margin-left: 8px;
}

/* ========================================
   READONLY INPUTS
   ======================================== */

.quotes-page .form-control[readonly] {
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
    border-color: #ced4da;
    color: #495057;
    font-weight: 500;
}

/* ========================================
   RESPONSIVIDADE
   ======================================== */

@media (max-width: 768px) {
    .quotes-page fieldset legend {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .quotes-page .modern-card-body {
        padding: 15px;
    }
    
    .quotes-page .modern-input-group .input-group-text {
        min-width: 120px;
        font-size: 0.8rem;
    }
    
    .quotes-page .modern-grid {
        grid-template-columns: 1fr;
    }
    
    .quotes-page .nav-pills.modern-tabs {
        padding: 8px;
    }
    
    .quotes-page .nav-pills.modern-tabs .nav-link {
        padding: 10px 15px;
        font-size: 14px;
        margin: 3px;
    }
}

@media (max-width: 576px) {
    .quotes-page fieldset legend {
        padding: 10px;
        font-size: 13px;
    }
    
    .quotes-page fieldset legend i {
        font-size: 16px;
    }
    
    .modern-btn-group {
        flex-direction: column;
    }
    
    .modern-btn {
        width: 100%;
    }
}

/* ========================================
   ANIMAÇÕES
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quotes-page fieldset.border.card {
    animation: fadeInUp 0.5s ease-out;
}

/* DELAY PROGRESSIVO PARA CADA SEÇÃO */
.quotes-page fieldset.border.card:nth-of-type(1) { animation-delay: 0.1s; }
.quotes-page fieldset.border.card:nth-of-type(2) { animation-delay: 0.2s; }
.quotes-page fieldset.border.card:nth-of-type(3) { animation-delay: 0.3s; }
.quotes-page fieldset.border.card:nth-of-type(4) { animation-delay: 0.4s; }
.quotes-page fieldset.border.card:nth-of-type(5) { animation-delay: 0.5s; }

/* ========================================
   MELHORIAS NOS ALERTAS
   ======================================== */

.alert.modern-alert {
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 15px 20px;
}

.alert.modern-alert i {
    font-size: 1.2rem;
    margin-right: 10px;
}

/* ========================================
   TOOLBAR MODERNIZADO
   ======================================== */

.toolbar {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.toolbar .btn {
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.toolbar .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

