/* ==========================================================================
   2312 Capital Secure Virtual Data Room - styles.css
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: #0F172A;
  background-color: #FFFFFF;
  font-weight: 400;
  font-size: 1.0625rem;
}

/* ==========================================================================
   Utility / Layout
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  background-color: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1.25rem 0;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ==========================================================================
   Logo
   ========================================================================== */
.logo {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 5rem;
  font-weight: 700;
  color: #0a5495;
  letter-spacing: -0.025em;
  line-height: 1;
  height: 100px;
}

.logo img {
  display: block;
  height: 90px;
  width: auto;
  flex-shrink: 0;
  margin-top: 5px;
}

.logo .vdr-text {
  padding-top: 5px;
  line-height: 1;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: #2563EB;
  color: white;
}

.btn-primary:hover {
  background-color: #1D4ED8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  background-color: #d0e6fc;
  text-align: center;
  padding: 8rem 0 6rem;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: #1E293B;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: #475569;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-note {
  font-size: 1.05rem;
  color: #64748B;
  margin-top: 1.5rem;
}

/* ==========================================================================
   Documents List - PERFECT 3-COLUMN ALIGNMENT + Select All Header
   ========================================================================== */

.documents-list {
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid #E2E8F0;
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: #FFFFFF;
}

/* Header row for Select All */
.document-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background-color: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  font-weight: 600;
  color: #1E293B;
}

.document-header .document-info {
  flex: 1;
  text-align: left;
}

.document-header .file-checkbox-container {
  flex-shrink: 0;
}

/* Document rows */
.document-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #E2E8F0;
  transition: background-color 0.2s ease;
  gap: 1.5rem;
}

.document-row:last-child {
  border-bottom: none;
}

.document-row:hover {
  background-color: #F8FAFC;
}

/* Column 1: File Name + Info - LEFT ALIGNED */
.document-info {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.document-info h3 {
  font-weight: 600;
  color: #1E293B;
  margin-bottom: 0.25rem;
  font-size: 1.05rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.document-info p {
  color: #64748B;
  font-size: 0.95rem;
  margin: 0;
}

/* Column 2: Download Button - RIGHT ALIGNED */
.document-row .btn {
  flex-shrink: 0;
  min-width: 140px;
  text-align: center;
  white-space: nowrap;
}

/* Column 3: Checkbox - FAR RIGHT */
.file-checkbox-container {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.file-checkbox {
  width: 22px;
  height: 22px;
  accent-color: #2563EB;
  cursor: pointer;
  flex-shrink: 0;
}

/* Download Button States */
.document-row .btn-downloading {
  background-color: #64748B !important;
  color: #E2E8F0 !important;
  cursor: not-allowed !important;
  pointer-events: none;
}

.document-row .btn-downloaded {
  background-color: #10B981 !important;
  color: white !important;
  opacity: 0.85;
}

.document-row .btn-downloaded:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.document-row .btn-download-failed {
  background-color: #EF4444 !important;
  color: white !important;
}

/* ==========================================================================
   Collapsible Sections
   ========================================================================== */
.vdr-collapsible {
  width: 100%;
  background: none;
  border: 1px solid #E2E8F0;
  border-radius: 0.5rem;
  padding: 1.25rem 1.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1E293B;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s ease;
}

.vdr-collapsible:hover {
  background: #F8FAFC;
}

.vdr-collapsible .toggle-icon {
  font-size: 1.4rem;
  transition: transform 0.2s ease;
}

.collapsed-content {
  padding-top: 0.5rem;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   Health Report & Client Info
   ========================================================================== */
.health-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #e2e8f0;
  border-top: 3px solid #2563eb;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.uap-container { 
  max-width: 800px; 
  margin: 20px auto; 
  padding: 20px; 
  background: #f9f9f9; 
  border-radius: 8px; 
  box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
}

.uap-table { 
  width: 100%; 
  border-collapse: collapse; 
}

.uap-table th, 
.uap-table td { 
  padding: 12px; 
  text-align: left; 
  border-bottom: 1px solid #ddd; 
}

.uap-table th { 
  background: #eee; 
  font-weight: bold; 
}

.uap-table tr:hover { 
  background: #f5f5f5; 
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: #0F172A;
  color: #CBD5E1;
  padding: 4rem 0 2rem;
  text-align: center;
  margin-top: 4rem;
}

.footer p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.disclaimer {
  font-size: 0.875rem;
  opacity: 0.8;
  max-width: 800px;
  margin: 1.5rem auto 0;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 768px) {
  .hero {
    padding: 6rem 0 4rem;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .logo {
    font-size: 3.8rem;
    height: 85px;
  }

  .logo img {
    height: 78px;
  }

  .logo .vdr-text {
    padding-top: 10px;
  }

  .section-info {
    padding: 4rem 0;
  }

  .section-info h2 {
    font-size: 2rem;
  }

  .document-row,
  .document-header {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .document-row .btn {
    min-width: 120px;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 2.8rem;
    height: 70px;
  }

  .logo img {
    height: 60px;
  }

  .logo .vdr-text {
    padding-top: 6px;
  }
}