/* ===== COMPONENTES MODERNOS ADICIONAIS ===== */

/* ===== LOADING SCREEN MODERNO ===== */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #232F3E 0%, #161E2D 50%, #FF9900 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 153, 0, 0.3);
  border-top: 4px solid #FF9900;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* ===== BOTÃO SCROLL TO TOP ===== */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 20px;
  cursor: pointer;
  box-shadow: var(--shadow-medium);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-strong);
}

/* ===== PROGRESS BAR ===== */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--gradient-primary);
  z-index: 9999;
  transition: width 0.1s ease;
}

/* ===== TOOLTIP MODERNO ===== */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 200px;
  background: var(--aws-blue);
  color: white;
  text-align: center;
  border-radius: 12px;
  padding: 10px;
  position: absolute;
  z-index: 1001;
  bottom: 125%;
  left: 50%;
  margin-left: -100px;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-size: 0.9rem;
  box-shadow: var(--shadow-medium);
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: var(--aws-blue) transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* ===== MODAL MODERNO ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(35, 47, 62, 0.8);
  backdrop-filter: blur(10px);
}

.modal-content {
  background: white;
  margin: 5% auto;
  padding: 40px;
  border-radius: 20px;
  width: 90%;
  max-width: 600px;
  box-shadow: var(--shadow-strong);
  animation: modalSlideIn 0.3s ease;
  position: relative;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: var(--aws-gray);
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--aws-orange);
}

/* ===== CARDS DE ESTATÍSTICAS ===== */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin: 60px 0;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.stat-card {
  background: white;
  padding: 30px 20px;
  border-radius: 16px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 153, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--aws-orange);
  margin-bottom: 10px;
  display: block;
}

.stat-label {
  font-size: 1rem;
  color: var(--aws-gray-dark);
  font-weight: 500;
}

/* ===== BREADCRUMB MODERNO ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 0;
  font-size: 0.9rem;
  color: var(--aws-gray);
}

.breadcrumb a {
  color: var(--aws-orange);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: var(--aws-orange-dark);
}

.breadcrumb-separator {
  color: var(--aws-gray);
}

/* ===== TAGS MODERNAS ===== */
.tag-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.tag {
  background: rgba(255, 153, 0, 0.1);
  color: var(--aws-orange-dark);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(255, 153, 0, 0.2);
  transition: all 0.3s ease;
}

.tag:hover {
  background: var(--aws-orange);
  color: white;
  transform: translateY(-2px);
}

/* ===== ACCORDION MODERNO ===== */
.accordion {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  margin: 20px 0;
}

.accordion-item {
  border-bottom: 1px solid rgba(255, 153, 0, 0.1);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  background: white;
  padding: 20px;
  cursor: pointer;
  transition: background 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--aws-blue);
}

.accordion-header:hover {
  background: rgba(255, 153, 0, 0.05);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: white;
}

.accordion-content.active {
  max-height: 500px;
}

.accordion-body {
  padding: 20px;
  color: var(--aws-gray-dark);
  line-height: 1.6;
}

.accordion-icon {
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

/* ===== TIMELINE MODERNA ===== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 60px auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 3px;
  background: var(--gradient-primary);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1.5px;
  border-radius: 2px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background: var(--aws-orange);
  border-radius: 50%;
  top: 15px;
  border: 3px solid white;
  box-shadow: var(--shadow-soft);
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-item:nth-child(even)::after {
  left: -10px;
}

.timeline-content {
  padding: 20px 30px;
  background: white;
  position: relative;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 153, 0, 0.1);
}

/* ===== RESPONSIVIDADE DOS COMPONENTES ===== */
@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
  
  .modal-content {
    margin: 10% auto;
    padding: 30px 20px;
    width: 95%;
  }
  
  .stats-container {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .timeline::after {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  .timeline-item::after {
    left: 21px;
  }
  
  .timeline-item:nth-child(even) {
    left: 0%;
  }
}

/* ===== DARK MODE TOGGLE ===== */
.theme-toggle {
  position: fixed;
  top: 80px;
  right: 20px;
  width: 50px;
  height: 25px;
  background: var(--aws-gray);
  border-radius: 25px;
  cursor: pointer;
  transition: background 0.3s ease;
  z-index: 1000;
}

.theme-toggle::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 21px;
  height: 21px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.theme-toggle.active {
  background: var(--aws-orange);
}

.theme-toggle.active::before {
  transform: translateX(25px);
}

/* ===== FLOATING ACTION BUTTON ===== */
.fab {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 24px;
  cursor: pointer;
  box-shadow: var(--shadow-strong);
  transition: all 0.3s ease;
  z-index: 1000;
}

.fab:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-glow);
}

.fab:active {
  transform: scale(0.95);
}