/* 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-lg); */
}

.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-dark);
  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);
  margin-bottom: var(--space-md);
  border-bottom: 1px solid var(--light-gray);
}

.content-section p {
  line-height: 1.7;
  color: var(--dark);
}

/* Document Cards - Enhanced Styling */
.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-card h3 {
  color: #222;
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.document-card p {
  color: #555;
  margin-bottom: 15px;
}

.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;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .main-content {
    padding: var(--space-md);
  }
  
  .content-section {
    padding: var(--space-sm);
  }
  
  .content-section h1 {
    font-size: 1.5rem;
  }
  
  .content-section h2 {
    font-size: 1.25rem;
  }
  
  .document-info {
    flex-direction: column;
    align-items: flex-start;
  }
  .document-actions {
    width: 100%;
  }
}

/* PDF Viewer */
.pdf-viewer-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  z-index: 1000;
}

.pdf-viewer-container {
  width: 90%;
  max-width: 1200px;
  height: 90vh;
  margin: 2% auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
}

.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;
}

/* .close-viewer-btn {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.close-viewer-btn:hover {
  background: var(--primary-dark);
} */

.pdf-viewer {
  flex-grow: 1;
  border: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Responsive Design */
@media (max-width: 768px) {
  .content-container {
    flex-direction: column;
  }
  
  .sidebar {
    position: static;
    width: 100%;
    margin-bottom: var(--space-lg);
  }
  
  .document-actions {
    flex-direction: column;
  }
}