/* Reset e Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}


    .ai-strategy-section {
        background-color: #f0f7ff; /* Um fundo azul muito claro para diferenciar */
        border: 1px solid #cce5ff;
        border-radius: 15px;
        padding: 2.5rem;
        margin-top: 3rem;
        margin-bottom: 3rem;
    }
    .ai-strategy-section .section-title {
        font-size: 1.8rem;
        font-weight: 800;
        color: #1e3c72;
        display: flex;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    .ai-strategy-section .section-title .icon-svg {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }
    .ai-strategy-section .key-question {
        font-weight: 700;
        color: #1e3c72;
        margin-top: 1.5rem;
    }
    .ai-strategy-section p {
        line-height: 1.7;
    }
    .ai-cta-box {
        background-color: #ffffff;
        border: 2px solid #1e3c72;
        border-radius: 10px;
        padding: 1.5rem;
        margin-top: 2rem;
        text-align: center;
    }
    .ai-cta-box p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    .ai-cta-button {
        background: linear-gradient(135deg, #ffc107, #ff9800);
        color: #1e3c72;
        font-size: 1.1rem;
        font-weight: 700;
        padding: 0.8rem 2.5rem;
        border-radius: 50px;
        text-decoration: none;
        display: inline-block;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .ai-cta-button:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    }

     .disclaimer-section {
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            padding: 40px;
            margin: 0 40px 40px;
            border-radius: 20px;
            text-align: center;
            border: 2px solid #dee2e6;
        }

        .disclaimer-title {
            font-size: 1.5rem;
            font-weight: 700;
            color: #2c3e50;
            margin-bottom: 20px;
        }

        .disclaimer-text {
            font-size: 1.1rem;
            color: #6c757d;
            margin-bottom: 25px;
            line-height: 1.6;
        }

        /* =================================================================== */
        /* AJUSTES NOS BOTÕES DE AÇÃO (IMPRIMIR E COMPARTILHAR)            */
        /* =================================================================== */

        .dropdown-item i {
            font-size: 1.1rem;
            vertical-align: middle;
            margin-top: -3px; /* Alinhamento fino dos ícones */
        }


        .disclaimer-button {
            background: linear-gradient(135deg, #28a745 0%, #2ecc71 100%);
            color: white;
            border: none;
            padding: 15px 30px;
            font-size: 1.1rem;
            font-weight: 600;
            border-radius: 50px;
            box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-block;
        }

        .disclaimer-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 35px rgba(40, 167, 69, 0.4);
            color: white;
            text-decoration: none;
        }

        .accordion-body a {
            position: relative; /* Garante que o z-index funcione */
            z-index: 1;         /* Eleva o link para uma camada "clicável" */
        }

    .sa-benefits-section .accordion-body { padding: 1.5rem; }
    .key-concept, .expert-recommendation { border-left: 4px solid; padding: 1rem 1.5rem; margin-bottom: 1rem; }
    .key-concept { border-color: #0d6efd; background-color: rgba(13, 110, 253, 0.05); }
    .expert-recommendation { border-color: #198754; background-color: rgba(25, 135, 84, 0.05); }
    .key-concept h5, .expert-recommendation h5 { font-weight: bold; }
    .accordion-item:last-of-type .expert-recommendation { margin-bottom: 0; }

     .expert-quote-wrapper {
        display: flex;
        align-items: flex-start;
        gap: 1.5rem;
        background-color: #ffffff;
        padding: 1.5rem;
        border-radius: 10px;
        border-left: 5px solid #ffc107; /* Borda de destaque amarela */
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        margin-bottom: 2rem; /* Espaçamento para o conteúdo abaixo */
    }
    .expert-quote-photo {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        flex-shrink: 0;
        object-fit: cover;
    }
    .expert-quote-text {
        font-style: italic;
        font-size: 1.1rem;
        line-height: 1.7;
        color: #343a40;
        margin: 0;
    }
    .expert-quote-attribution {
        font-weight: 700;
        color: #1e3c72;
        font-style: normal;
        display: block;
        margin-top: 0.75rem;
    }
     @media (max-width: 576px) {
        .expert-quote-wrapper {
            flex-direction: column;
            align-items: center;
            text-align: center;
        }
    }

/* Tela de Introdução */
.intro-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
}

.intro-screen::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.intro-content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.intro-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.intro-subtitle {
  font-size: 1.2rem;
  color: #7f8c8d;
  margin-bottom: 2rem;
}

.feature-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  padding: 1.5rem;
  text-align: center;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.intro-metrics {
  background: rgba(248, 249, 250, 0.8);
  border-radius: 15px;
  padding: 1.5rem;
  margin: 2rem 0;
}

#start-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

#start-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Sistema Principal */
.main-system {
  background: #f8f9fa;
  min-height: 100vh;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.3rem;
}

/* Navegação das Abas */
.nav-pills .nav-link {
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin: 0 0.2rem;
  background: rgba(255, 255, 255, 0.8);
  color: #6c757d;
  border: 2px solid transparent;
}

.nav-pills .nav-link:hover {
  background: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
  border-color: rgba(13, 110, 253, 0.2);
  transform: translateY(-2px);
}

.nav-pills .nav-link.active {
  background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
  color: white;
  box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
  transform: translateY(-2px);
}

/* Cards */
.card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.card-header {
  border-bottom: none;
  border-radius: 15px 15px 0 0 !important;
  padding: 1.5rem;
  font-weight: 600;
}

.card-body {
  padding: 1.5rem;
}

.card-footer {
  background: rgba(248, 249, 250, 0.8);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
}


    .footer-enhanced {
        background-color: #f8f9fa; /* bg-light */
        border-top: 1px solid #dee2e6;
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
        font-family: 'Segoe UI', sans-serif;
    }
    .footer-logo {
        max-width: 150px;
        margin-bottom: 1rem;
    }
    .footer-text {
        color: #6c757d; /* text-muted */
        font-size: 0.875rem; /* small */
        line-height: 1.6;
    }
    .footer-text strong {
        color: #495057;
    }
    .footer-text a {
        color: #1e3c72; /* Cor primária */
        font-weight: 600;
        text-decoration: none;
    }
    .footer-text a:hover {
        text-decoration: underline;
    }
    .footer-links-col h5 {
        color: #1e3c72;
        font-weight: 700;
        margin-bottom: 1rem;
        font-size: 1.1rem;
    }
    .footer-links-col .nav-link {
        padding: 0.25rem 0;
        color: #495057;
    }
    .footer-links-col .nav-link:hover {
        color: #1e3c72;
    }
    .footer-bottom {
        border-top: 1px solid #dee2e6;
        padding-top: 1.5rem;
        margin-top: 2rem;
    }

/* Formulários */
.form-control,
.form-select {
  border-radius: 10px;
  border: 2px solid #e9ecef;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
}

.form-control:focus,
.form-select:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
  background: white;
}

.form-control.is-invalid,
.form-select.is-invalid {
  border-color: #dc3545;
}

.form-check-input {
  border-radius: 5px;
  border: 2px solid #dee2e6;
  margin-top: 0.25rem;
}

.form-check-input:checked {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

.form-check-label {
  margin-left: 0.5rem;
  font-weight: 500;
}

/* Botões */
.btn {
  border-radius: 10px;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
  background: linear-gradient(135deg, #6610f2 0%, #0d6efd 100%);
}

.btn-outline-secondary {
  border: 2px solid #6c757d;
  color: #6c757d;
  background: transparent;
}

.btn-outline-secondary:hover {
  background: #6c757d;
  color: white;
  transform: translateY(-2px);
}

.btn-success {
  background: linear-gradient(135deg, #198754 0%, #20c997 100%);
  box-shadow: 0 4px 15px rgba(25, 135, 84, 0.3);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(25, 135, 84, 0.4);
}

/* Badges */
.badge {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 20px;
}

/* Resultados */
.result-item {
  background: rgba(248, 249, 250, 0.5);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1rem;
  border-left: 4px solid #0d6efd;
}

.progress-comparison {
  margin-top: 0.5rem;
}

.progress {
  height: 8px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.05);
  margin-bottom: 0.5rem;
}

.progress-bar {
  border-radius: 10px;
  transition: width 0.6s ease;
}

/* Estados de Status */
.status-adherent {
  background-color: #d1edff !important;
  color: #0c63e4 !important;
}
.status-above {
  background-color: #d4edda !important;
  color: #155724 !important;
}
.status-below {
  background-color: #fff3cd !important;
  color: #856404 !important;
}

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

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Responsividade */
@media (max-width: 768px) {
  .intro-content {
    padding: 2rem;
    margin: 1rem;
  }

  .intro-title {
    font-size: 2rem;
  }

  .nav-pills .nav-link {
    margin: 0.2rem 0;
    text-align: center;
  }

  .card-body {
    padding: 1rem;
  }

  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 576px) {
  .intro-title {
    font-size: 1.8rem;
  }

  .intro-subtitle {
    font-size: 1rem;
  }

  .feature-card {
    padding: 1rem;
  }
}

/* Impressão */
@media print {
  .intro-screen,
  .navbar,
  .nav-pills,
  .card-footer,
  footer,
  .btn {
    display: none !important;
  }
    body::after {
    content: "Relatório gerado pela Calculadora de Benchmarking de TI | PDCA TI | Especialista: Gustavo de Castro Rafael | www.pdcati.com.br";
    display: block;
    text-align: center;
    font-size: 12px;
    margin-top: 20px;
    color: #444;
  }


  .main-system {
    background: white !important;
  }

  .card {
    box-shadow: none !important;
    border: 1px solid #dee2e6 !important;
    break-inside: avoid;
    margin-bottom: 1rem;
  }

  .tab-content > .tab-pane {
    display: block !important;
    opacity: 1 !important;
  }

  .tab-content > .tab-pane:not(.active) {
    display: none !important;
  }
}

/* Melhorias visuais adicionais */
.list-group-item {
  border: none;
  background: rgba(248, 249, 250, 0.5);
  margin-bottom: 0.5rem;
  border-radius: 8px;
  border-left: 3px solid #0d6efd;
  transition: all 0.3s ease;
}

.list-group-item:hover {
  background: rgba(13, 110, 253, 0.05);
  transform: translateX(5px);
}

.alert {
  border: none;
  border-radius: 10px;
  border-left: 4px solid;
}

.alert-info {
  background: rgba(13, 202, 240, 0.1);
  border-left-color: #0dcaf0;
  color: #055160;
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #0d6efd;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Melhorias para acessibilidade */
.form-control:focus,
.form-select:focus,
.btn:focus {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Transições suaves para mudanças de aba */
.tab-pane {
  transition: opacity 0.3s ease-in-out;
}

.tab-pane.fade:not(.show) {
  opacity: 0;
}

.tab-pane.fade.show {
  opacity: 1;
}
