/* Hero Section */
.hero {
  background-color: var(--primary-light);
  padding: var(--space-xl) 0;
  text-align: center;
  margin-bottom: var(--space-lg);
}

.hero h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: var(--space-sm);
}

/* Main Content Layout */
.main-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-md);
}

.content-container {
  display: flex;
  gap: var(--space-xl);
  align-items: flex-start;
}

/* Main Content Area */
.main-content {
  flex: 1;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-md);
}

.content-section {
  /* margin-bottom: var(--space-lg); */
  /* padding: var(--space-md); */
  border-radius: var(--radius-md);
  background: var(--white);
}

.content-section:last-child {
  margin-bottom: 0;
}

.content-section h1 {
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--primary-light);
}

.content-section h2 {
  font-size: 1.5rem;
  color: var(--primary-dark);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--light-gray);
}

.content-section p {
  margin-bottom: var(--space-md);
  line-height: 1.7;
  color: var(--dark);
}

/* Document Cards */
.document-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  margin-bottom: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #e2e8f0;
}

.document-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.document-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

.document-size {
  color: #666;
  font-size: 0.9rem;
  flex: 1;
}

.document-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* PDF Viewer Modal */
.pdf-viewer-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  z-index: 1000;
  overflow: auto;
}

.pdf-viewer-container {
  width: 90%;
  max-width: 1200px;
  height: 90vh;
  margin: 2% auto;
  background: white;
  border-radius: 8px;
  box-shadow: 0 0 25px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.pdf-viewer-toolbar {
  padding: var(--space-sm);
  background: var(--light-gray);
  border-bottom: 1px solid var(--light-gray);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.pdf-viewer {
  flex-grow: 1;
  border: none;
  border-radius: 0 0 8px 8px;
  background: #f5f5f5;
}

.close-viewer-btn {
  background: #e74c3c;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.close-viewer-btn:hover {
  background: #c0392b;
  transform: translateY(-1px);
}

/* Section Tabs */
.section-tabs {
  display: flex;
  border-bottom: 1px solid #ddd;
  margin-bottom: 20px;
}

.section-tab {
  padding: 10px 20px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
}

.section-tab:hover {
  background-color: #f5f5f5;
}

.section-tab.active {
  border-bottom-color: #3498db;
  font-weight: 600;
}

.document-section {
  display: none;
}

.document-section.active {
  display: block;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .pdf-viewer-container {
    width: 95%;
    height: 85vh;
  }
  .document-info {
    flex-direction: column;
    align-items: flex-start;
  }
  .document-actions {
    width: 100%;
  }
  .load-pdf-btn, .download-btn {
    width: 100%;
  }
  .section-tabs {
    flex-direction: column;
    border-bottom: none;
  }
  .section-tab {
    border-bottom: none;
    border-left: 3px solid transparent;
  }
  .section-tab.active {
    border-bottom: none;
    border-left-color: #3498db;
  }
}

/* Accessibility Focus Styles */
button:focus, a:focus, input:focus {
  outline: 2px solid #3498db;
  outline-offset: 2px;
}

/* Skip Link Styles */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 10px;
  background: #2c3e50;
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  z-index: 1001;
  text-decoration: none;
}
.skip-link:focus {
  left: 10px;
  top: 10px;
}
.skip-link:active {
  background: #34495e;
}