/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0066cc;
    --primary-dark: #004499;
    --secondary-color: #f8f9fa;
    --accent-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-muted: #999999;
    --border-color: #e0e0e0;
    --shadow-light: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 16px rgba(0, 0, 0, 0.2);
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --sidebar-width: 45%;
    --gap-size: 15px;
}

#decsricao{
    font-size: 12px ;
 
}

body {
      font-family: "trebuc" !important ;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}
    #openChatButton {

      position: fixed;

      bottom: 15px;

      right: 20px;

      background-color: #007BFF;

      color: #fff;

      padding: 10px 20px;

      border-radius: 5px;

      cursor: pointer;

      z-index: 999; /* Garante que está na frente de outros elementos */

    }



    #openChatButton:hover {

      background-color: #007BFF;

    }
/* Container principal */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    top: 0;
    margin-bottom: 0px;
    padding: 0px;
    background-color:  #121212;
 
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 100%;
     height: 160px;
}

.logo-section {
    flex-shrink: 0;
}

.logo {
    height: 150px;
    width: 150px;
  
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.slider-section {
    flex: 1;
   max-width: 100%;
}

/* Sliders */
.slider-container {
    position: relative;
    width: 100%;
    height: 150px;
    
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: transparent;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    pointer-events: none;
}

.nav-btn {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active,
.dot:hover {
    background: white;
    transform: scale(1.2);
}

/* Seção Promocional */
.promotional-section {
    margin: 40px 0;
    padding: 2px;
    background: rgba(255, 255, 255, 0.979);

    /* Seção Promocional 
    box-shadow: var(--shadow-medium);*/
    filter: blur(filter(0.5px));
}

.promotional-section h2 {
    text-align: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    position: relative;
}

.promotional-section h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.promotional-section .slider-container {
    height: 300px;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 30px 20px 20px;
    text-align: center;
}

.slide-content h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.slide-content p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.4;
}

/* Layout de duas colunas */
.two-column-layout {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    gap: var(--gap-size);
    flex: 1;
    align-items: start;
}

/* Coluna Esquerda - Serviços */
.left-column {
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.services-panel {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    padding: 25px;
}

.services-panel h2 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.services-panel h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--accent-color);
}

/* Seções de serviços */
.service-section {
    margin-bottom: 25px;
}

.service-section h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding: 10px 15px;
    background: linear-gradient(135deg, var(--secondary-color), #e9ecef);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}
.service-section h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding: 10px 15px;
    background: linear-gradient(135deg, var(--secondary-color), #d60f0f);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.service-section .section-description {
    background: #f8f9fa;
    padding: 12px;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    border-left: 3px solid var(--accent-color);
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Grupos de serviços */
.service-group {
    margin-bottom: 20px;
}

.service-group h4 {
    font-size: 14px;
    color: #fffcfc;
    margin-bottom: 10px;
    padding: 8px 12px;
    background: #0066cc;
    border-radius: var(--border-radius);
    border-left: 3px solid  #28a745; 
    font-weight: 200;
}

.subcat-header {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 10px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--accent-color);
    font-weight: 600;
}

/* Itens de serviço */
.service-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px;
    background: #fafafa;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.service-item:hover {
    background: #f0f8ff;
    color: black !important;
    border-color: var(--primary-color);

}

.service-item label {
    flex: 1;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 12px;
    transition: var(--transition);
}

.service-item:hover label {
    color: var(--primary-color);
}

.service-item input {
    width: 60px;
    padding: 6px 8px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    text-align: center;
    transition: var(--transition);
    background: white;
}

.service-item input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1);
}


.points-info {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
    min-width: 50px;
    text-align: right;
  
}

/* Coluna Direita - Resultados */
.right-column {
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.results-panel {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    padding: 25px;
}

.results-panel h2 {
    font-size: 1.6rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

/* Resumo Geral */
.summary-section {
    margin-bottom: 25px;
}

.summary-card {
    background: linear-gradient(135deg, var(--accent-color), #20c997);
    color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-medium);
}

.summary-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.period-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.period-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.period-label {
    font-size: 12pt;
    opacity: 0.9;
    margin-bottom: 5px;
    font-weight: 500;
}

.period-value {
    font-size: 13pt;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Seções de resultados */
.results-section {
    margin-bottom: 25px;
}

.results-section h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding: 8px 12px;
    background: linear-gradient(135deg, var(--secondary-color), #e9ecef);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--primary-color);
}

.Desastres h3{
     border-left: 3px solid rgb(255, 72, 0) !important;
       color: var(--primary-color);
      background: linear-gradient(135deg, #f58f4b57, #d65702b2) !important;
}

.results-grid {
    display: grid;
    gap: 10px;
}

.item-quantity {
    font-size: 0.85rem;
    color: #4a5568;
    line-height: 1.35;
}

.result-item {
    display: grid;
    grid-template-columns: minmax(120px, 1.1fr) minmax(140px, 1fr) minmax(180px, 1.4fr);
    gap: 10px;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.result-item:hover {
    background: #e3f2fd;
    border-color: var(--primary-color);
}

.result-name {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.result-value {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
    text-align: center;
    min-width: 60px;
}

/* Detalhes do cálculo */
.calculation-details {
    background: #f8f9fa;
    padding: 15px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.calculation-details h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

#calculation-breakdown {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-height: 200px;
    overflow-y: auto;
}

/* Botões de ação */
.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.export-section {
    text-align: center;
    color: #f1f1f1 !important;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #003366);
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.btn-secondary {
    background: linear-gradient(135deg, #df2d16, #e23f29);
    color: white;
    box-shadow: var(--shadow-medium);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #e23f29, #e23f29);
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.btn-export {
    background: linear-gradient(135deg, #4e74c5, #234fc8);
    color: white;
    box-shadow: var(--shadow-medium);
    padding: 12px 24px;
    font-size: 1rem;
}

.btn-export:hover {
    background: linear-gradient(135deg, #2475f0, #275ed6);
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.btn-export svg {
    width: 18px;
    height: 18px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 15px;
    margin-top: 30px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-section {
    animation: fadeInUp 0.4s ease-out;
}

.results-section {
    animation: fadeInUp 0.4s ease-out;
}

/* Estados de loading */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading .btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Efeitos de hover personalizados */
.service-item input:valid {
    border-color: var(--accent-color);
}

.service-item input:invalid:not(:placeholder-shown) {
    border-color: var(--danger-color);
}

/* Responsividade */
@media (max-width: 1200px) {
    :root {
        --sidebar-width: 50%;
    }
    
    .container {
        padding: 15px;
    }
}

@media (max-width: 992px) {
    .two-column-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .left-column,
    .right-column {
        position: static;
        max-height: none;
    }
    
    .period-values {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .period-item {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .period-value {
        font-size: 1.5rem;
    }
    
    .header-content {
        flex-direction: row !important;
        gap: 2px;
        align-items: center;
        justify-content: space-between;
        text-align: left;
    }
    
    .logo-section {
        order: 2;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        width: 120px;
        min-width: 120px;
    }
    
    .logo-section {
        order: 1;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 120px;
        min-width: 120px;
    }
    .slider-section {
        order: 2;
        flex: 1;
        max-width: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }
    .service-item {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .service-item input {
        width: 100%;
        text-align: left;
    }
    
    .points-info {
        text-align: left;
        min-width: auto;
    }
    
    .result-item {
        grid-template-columns: 1fr;
        gap: 5px;
        text-align: center;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .slider-section {
        max-width: 100%;
        width: 100%;
        display: block;
        margin: 0 auto;
    }
    .slider-container {
        width: 100%;
        max-width: 100vw;
        min-width: 0;
        height: 160px;
        margin: 0 auto;
        left: 0;
        right: 0;
        display: block;
    }
    .slider-wrapper {
        width: 100%;
        max-width: 100vw;
        min-width: 0;
        height: 160px;
        display: block;
    }
    .slide img {
        width: 100%;
        max-width: 100vw;
        height: 160px;
        object-fit: cover;
        display: block;
        margin: 0 auto;
        background: transparent;
    }
    .promotional-section .slider-container {
        height: 160px;
    }
    .nav-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .header {
        padding: 0 !important;
        height: 90px !important;
        min-height: 80px !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .header-content {
        height: 89px !important;
        min-height: 80px !important;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0 !important;
        width: 100%;
        padding: 0 2px;
        box-sizing: border-box;
    }
    .logo-section {
        height: 120px !important;
        min-height: 120px !important;
        display: flex;
        align-items: center;
    }
    .logo {
        height: 85px !important;
        width: 85px !important;
    }
    .slider-section {
        height: 80px !important;
        min-height: 80px !important;
        display: flex;
        align-items: center;
    }
    .slider-container {
        height: 80px !important;
        min-height: 80px !important;
    }
    .slider-wrapper {
        height: 80px !important;
        min-height: 80px !important;
    }
    .slide img {
        height: 80px !important;
        min-height: 80px !important;
        object-fit: cover !important;
        background: transparent !important;
    }
    
    .services-panel,
    .results-panel {
        padding: 15px;
    }
    
    .service-group h4 {
        font-size: 1rem;
        padding: 6px 10px;
    }
    
    .service-item {
        padding: 8px;
    }
    
    .period-value {
        font-size: 1.3rem;
    }
    
    .logo {
        height: 50px;
    }
    
    .slider-container {
        height: 120px;
    }
    
    .promotional-section .slider-container {
        height: 200px;
    }
    
    .promotional-section {
        padding: 20px;
    }
    
    .promotional-section h2 {
        font-size: 1.5rem;
    }
    
    .slide-content h3 {
        font-size: 1.2rem;
    }
    
    .slide-content p {
        font-size: 0.9rem;
    }
}

/* Estados especiais */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-style: italic;
}

.empty-state::before {
    content: '📊';
    display: block;
    font-size: 3rem;
    margin-bottom: 10px;
}

/* Impressão */
@media print {
    .action-buttons,
    .export-section,
    .footer {
        display: none !important;
    }
    
    .container {
        max-width: none !important;
        padding: 0 !important;
    }
    
    .two-column-layout {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        
    .header-content {
        height: 80px !important;
        min-height: 80px !important;
        padding: 0 8px;
    }
    .logo {
        height: 38px !important;
        width: 40px !important;
    }
    .slider-container {
        height: 80px !important;
        min-height: 80px !important;
    }
    .slider-wrapper {
        height: 80px !important;
        min-height: 80px !important;
    }
    .slide img {
        height: 80px !important;
        min-height: 80px !important;
        object-fit: cover !important;
        background: transparent !important;
    }
        border: 1px solid #ccc !important;
        break-inside: avoid;
    }
    
    body {
        background: white !important;
    }
}
  .info-hover-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
    color: #1b1b1b;
  
  }

  .info-hover-container i {
    font-size: 20px;
    color: #29e041e1;
  }

  .info-modal {
    display: none;
    position: absolute;
    top: 28px;
    left: -80px;
    width: 240px;
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
  }

  .info-hover-container:hover .info-modal {
    display: block;
  }


  .info-modal p {
    margin: 0;
    font-size: 13px;
    color: #555;
  }