/* ==========================================================================
   MANUAIS PAGE STYLING - BOTÃO DE ALERTA
   ========================================================================== */

/* Hero Header styling */
.man-hero {
  color: #fff;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 14px, rgba(255, 255, 255, 0) 14px 40px),
    radial-gradient(1100px 380px at 80% 110%, rgba(224, 0, 0, 0.35), transparent 70%),
    linear-gradient(180deg, #0b0b0c 0%, #1a0a0a 55%, #0b0b0c 100%);
}

.man-hero__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 20px 88px;
  text-align: center;
}

.man-hero__title {
  font-size: 42px;
  line-height: 1.15;
  font-weight: 900;
  margin: 0 0 8px;
}

.man-hero__title span {
  color: var(--red);
}

.man-hero__subtitle {
  font-size: 16px;
  color: #c7cfda;
  margin: 0;
}

/* Split content layout */
.man-split {
  background: #f8fafc;
  padding: 56px 0;
  min-height: 700px;
}

.man-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.man-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  align-items: start;
}

/* Sidebar Styling */
.man-sidebar {
  background: #ffffff;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.man-sidebar-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 10px;
}

.man-list-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Tab button styling */
.man-tab-btn {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px 20px;
  text-align: left;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: #475569;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.man-tab-btn:hover {
  transform: translateY(-2px);
  border-color: var(--red);
  color: var(--red);
}

.man-tab-btn__sub {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 400;
  transition: color 0.2s ease;
}

.man-tab-btn:hover .man-tab-btn__sub {
  color: #ef4444;
}

.man-tab-btn.is-active {
  background: var(--red);
  color: #ffffff;
  border-color: var(--red);
  box-shadow: 0 8px 20px rgba(224, 0, 0, 0.25);
  transform: translateY(-2px);
}

.man-tab-btn.is-active .man-tab-btn__sub {
  color: #fca5a5;
}

/* Preview Pane Styling */
.man-preview {
  background: #ffffff;
  padding: 32px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

.man-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 20px;
  gap: 16px;
}

.man-preview-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--black);
  margin: 0;
}

.man-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--red);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.2s ease;
  box-shadow: 0 8px 16px rgba(224, 0, 0, 0.2);
}

.man-download-btn:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(224, 0, 0, 0.3);
}

.man-download-btn svg {
  fill: currentColor;
  width: 16px;
  height: 16px;
}

/* PDF Viewer Styling */
.man-viewer-container {
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  overflow: hidden;
  position: relative;
  height: 780px;
  transition: opacity 0.3s ease;
}

.man-pdf-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Fallback Card Styling */
.man-fallback-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  height: 100%;
  box-sizing: border-box;
}

.man-fallback-icon {
  width: 80px;
  height: 80px;
  background: #fef2f2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  margin-bottom: 24px;
}

.man-fallback-icon svg {
  width: 40px;
  height: 40px;
  fill: currentColor;
}

.man-fallback-card h3 {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
}

.man-fallback-card p {
  font-size: 15px;
  color: #64748b;
  max-width: 420px;
  margin-bottom: 24px;
  line-height: 1.5;
}

/* Responsive Styles */
@media (max-width: 990px) {
  .man-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .man-sidebar {
    padding: 16px;
  }

  .man-list-group {
    flex-direction: row;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    gap: 8px;
  }

  .man-tab-btn {
    flex: 0 0 auto;
    padding: 12px 18px;
    font-size: 14px;
  }

  .man-tab-btn__sub {
    font-size: 11px;
  }

  .man-viewer-container {
    height: 640px;
  }
}

@media (max-width: 640px) {
  .man-hero__inner {
    padding: 56px 20px 64px;
  }

  .man-hero__title {
    font-size: 32px;
  }

  .man-preview {
    padding: 20px;
  }

  .man-preview-header {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .man-preview-title {
    text-align: center;
    font-size: 18px;
  }

  .man-download-btn {
    justify-content: center;
  }

  .man-viewer-container {
    height: 520px;
  }
}
