/* Medical Staff Peer Review Portal - St. Joseph Medical Center Texas | ClinOps365
   Protected under Texas Health & Safety Code § 161.032 & Texas Occupations Code § 160.007
   Secured with Cloudflare Edge Security & DRM Copy Protection */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --peer-navy-dark: #041f23;
  --peer-navy: #0f3d3e;
  --peer-navy-light: #134e4a;
  --peer-teal: #0d9488;
  --peer-teal-dark: #0f766e;
  --peer-teal-light: #ccfbf1;
  --peer-teal-subtle: #f0fdfa;
  --peer-cyan: #0284c7;
  --peer-gold: #f59e0b;
  --peer-gold-dark: #d97706;
  --peer-gold-light: #fef3c7;
  --peer-emerald: #059669;
  --peer-emerald-light: #d1fae5;
  --peer-rose: #be123c;
  --peer-rose-dark: #9f1239;
  --peer-rose-light: #ffe4e6;
  --peer-burgundy: #881337;
  --peer-slate-50: #f8fafc;
  --peer-slate-100: #f1f5f9;
  --peer-slate-200: #e2e8f0;
  --peer-slate-300: #cbd5e1;
  --peer-slate-400: #94a3b8;
  --peer-slate-600: #475569;
  --peer-slate-700: #334155;
  --peer-slate-800: #1e293b;
  --peer-slate-900: #0f172a;

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 14px -2px rgba(15, 61, 62, 0.1), 0 2px 6px -1px rgba(15, 61, 62, 0.05);
  --shadow-lg: 0 12px 30px -4px rgba(15, 61, 62, 0.16), 0 4px 12px -2px rgba(15, 61, 62, 0.08);
  --shadow-xl: 0 24px 48px -12px rgba(4, 31, 35, 0.3);
}

/* Reset and Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: #f1f5f9;
  color: var(--peer-slate-900);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* ANTI-COPY & DRM RESTRICTIONS */
.drm-protected,
.confidential-content,
.doc-canvas-wrapper,
.document-reader-body {
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  -webkit-touch-callout: none !important;
}

/* PRINT BLOCKING */
@media print {
  body * {
    display: none !important;
    visibility: hidden !important;
  }
  body::before {
    content: "CRITICAL LEGAL NOTICE: UNAUTHORIZED PRINTING, DUPLICATION, OR EXPORTATION OF CONFIDENTIAL MEDICAL PEER REVIEW COMMITTEE PROCEEDINGS IS STRICTLY PROHIBITED UNDER TEXAS HEALTH & SAFETY CODE § 161.032, TEXAS OCCUPATIONS CODE § 160.007, AND HOSPITAL POLICY.";
    display: block !important;
    visibility: visible !important;
    position: fixed;
    top: 30%;
    left: 10%;
    right: 10%;
    text-align: center;
    font-size: 16pt;
    font-weight: bold;
    color: #991b1b;
    border: 3px solid #991b1b;
    padding: 30px;
    background: #fff;
  }
}

/* TOP GOVERNANCE STRIP */
.top-gov-bar {
  background: var(--peer-navy-dark);
  color: #94a3b8;
  font-size: 0.76rem;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative;
  z-index: 100;
  flex-wrap: wrap;
  gap: 8px;
}

.gov-status {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.gov-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.gov-pill.cf-secure {
  background: rgba(13, 148, 136, 0.2);
  color: #5eead4;
  border: 1px solid rgba(13, 148, 136, 0.4);
}

.gov-pill.privilege {
  background: rgba(225, 29, 72, 0.18);
  color: #fda4af;
  border: 1px solid rgba(225, 29, 72, 0.35);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #2dd4bf;
  box-shadow: 0 0 8px #2dd4bf;
  animation: pulseBeacon 2s infinite ease-in-out;
}

@keyframes pulseBeacon {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* MAIN HEADER */
.board-header {
  background: linear-gradient(135deg, #041f23 0%, #0f3d3e 60%, #134e4a 100%);
  color: #ffffff;
  padding: 16px 24px;
  border-bottom: 3px solid var(--peer-teal);
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 90;
}

.board-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-emblem {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.brand-emblem svg {
  width: 24px;
  height: 24px;
  fill: #ffffff;
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-sub {
  font-size: 0.75rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #99f6e4;
  font-weight: 600;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-badge {
  background: linear-gradient(135deg, #0d9488, #0f766e);
  color: #f0fdfa;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 3px 8px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.25);
}

.session-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.session-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

.user-avatar-initials {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--peer-teal);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  border: 2px solid rgba(255,255,255,0.4);
}

.session-info {
  display: flex;
  flex-direction: column;
}

.session-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.session-role {
  font-size: 0.7rem;
  color: #5eead4;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1.3;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
}

.btn-primary {
  background: var(--peer-teal);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(13, 148, 136, 0.3);
}

.btn-primary:hover {
  background: var(--peer-teal-dark);
  box-shadow: 0 4px 10px rgba(13, 148, 136, 0.4);
}

.btn-secondary {
  background: #ffffff;
  color: var(--peer-slate-800);
  border-color: var(--peer-slate-300);
}

.btn-secondary:hover {
  background: var(--peer-slate-100);
  border-color: var(--peer-slate-400);
}

/* AUTHENTICATION GATE */
.board-auth-gate {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: radial-gradient(circle at 50% 20%, #134e4a 0%, #0f3d3e 40%, #041f23 100%);
}

.board-auth-card {
  width: 100%;
  max-width: 520px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.board-auth-header {
  background: linear-gradient(135deg, #041f23 0%, #0f3d3e 100%);
  color: #ffffff;
  padding: 30px;
  text-align: center;
  border-bottom: 3px solid var(--peer-teal);
}

.board-auth-header .brand-emblem {
  margin: 0 auto 12px auto;
  width: 52px;
  height: 52px;
}

.board-auth-header .brand-emblem svg {
  width: 28px;
  height: 28px;
}

.auth-hospital-title {
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #5eead4;
  font-weight: 700;
  margin-bottom: 4px;
}

.auth-portal-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}

.auth-portal-desc {
  font-size: 0.85rem;
  color: #cbd5e1;
  max-width: 400px;
  margin: 0 auto;
}

.board-auth-body {
  padding: 30px;
}

.auth-statutory-alert {
  background: #fff1f2;
  border-left: 4px solid #be123c;
  border-radius: 4px;
  padding: 12px 14px;
  font-size: 0.78rem;
  color: #881337;
  line-height: 1.5;
  margin-bottom: 22px;
}

.auth-statutory-alert strong {
  display: block;
  font-size: 0.82rem;
  margin-bottom: 4px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-family: var(--font-body);
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: #0f172a;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--peer-teal);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.auth-pwd-container {
  position: relative;
}

.auth-toggle-pwd-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.auth-submit-btn {
  width: 100%;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #0d9488, #0f766e);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.35);
  transition: all 0.2s ease;
}

.auth-submit-btn:hover {
  background: linear-gradient(135deg, #0f766e, #115e59);
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.45);
}

.auth-divider {
  position: relative;
  text-align: center;
  margin: 22px 0;
}

.auth-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e2e8f0;
}

.auth-divider span {
  position: relative;
  background: #ffffff;
  padding: 0 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.auth-magic-notice {
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.8rem;
  color: #115e59;
  line-height: 1.5;
  margin-bottom: 20px;
}

.demo-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.15s ease;
}

.demo-chip-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.auth-demo-shortcuts {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

.demo-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* WELCOME BANNER */
.welcome-banner {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%);
  border-bottom: 1px solid var(--peer-slate-200);
  padding: 24px 24px;
}

.welcome-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.welcome-lead h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--peer-navy);
  margin-bottom: 6px;
}

.welcome-lead p {
  font-size: 0.9rem;
  color: #475569;
  max-width: 1000px;
  line-height: 1.6;
  margin-bottom: 14px;
}

.meeting-meta-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid #cbd5e1;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  box-shadow: var(--shadow-sm);
}

.meta-chip.gold {
  background: #fef3c7;
  border-color: #fde68a;
  color: #92400e;
}

.meta-chip.teal {
  background: #ccfbf1;
  border-color: #99f6e4;
  color: #0f766e;
}

.meta-chip.rose {
  background: #ffe4e6;
  border-color: #fecdd3;
  color: #9f1239;
}

/* ADMIN COMMAND BAR */
.admin-command-bar {
  background: #041f23;
  color: #ffffff;
  padding: 14px 24px;
  border-bottom: 2px solid var(--peer-teal);
  box-shadow: var(--shadow-md);
}

.admin-bar-header {
  max-width: 1400px;
  margin: 0 auto 12px auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-badge-pulse {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #f0fdfa;
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #2dd4bf;
  box-shadow: 0 0 10px #2dd4bf;
}

.admin-role-tag {
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #5eead4;
  font-weight: 600;
}

.admin-quick-actions {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.admin-action-btn.primary {
  background: var(--peer-teal);
  color: #ffffff;
}

.admin-action-btn.primary:hover {
  background: var(--peer-teal-dark);
}

.admin-action-btn.secondary {
  background: #1e293b;
  color: #f1f5f9;
  border-color: #334155;
}

.admin-action-btn.secondary:hover {
  background: #334155;
}

.admin-action-btn.success {
  background: #059669;
  color: #ffffff;
}

.admin-action-btn.success:hover {
  background: #047857;
}

.admin-action-btn.outline {
  background: transparent;
  color: #5eead4;
  border-color: #14b8a6;
}

.admin-action-btn.outline:hover {
  background: rgba(20, 184, 166, 0.15);
}

/* NAVIGATION TABS */
.board-nav-tabs-wrapper {
  background: #ffffff;
  border-bottom: 1px solid var(--peer-slate-200);
  position: sticky;
  top: 0;
  z-index: 80;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.board-nav-tabs {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  overflow-x: auto;
  padding: 0 24px;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: #64748b;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: var(--peer-navy);
  background: rgba(13, 148, 136, 0.03);
}

.tab-btn.active {
  color: var(--peer-navy);
  border-bottom-color: var(--peer-teal);
  background: rgba(13, 148, 136, 0.05);
}

.tab-count {
  background: #e2e8f0;
  color: #475569;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.tab-btn.active .tab-count {
  background: var(--peer-teal-light);
  color: var(--peer-teal-dark);
}

.admin-tab-btn {
  margin-left: auto;
  color: #0f766e;
}

.admin-live-pill {
  background: #ccfbf1;
  color: #0f766e;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

/* MAIN CONTAINER & TAB PANELS */
.board-main-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px 24px 60px 24px;
  width: 100%;
  flex-grow: 1;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.2s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-intro-card {
  background: #ffffff;
  border: 1px solid var(--peer-slate-200);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.section-intro-text h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--peer-navy);
  margin-bottom: 4px;
}

.section-intro-text p {
  font-size: 0.88rem;
  color: #64748b;
  margin: 0;
}

.stat-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.stat-pill {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}

/* DOCUMENT GRID & CARDS */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 20px;
}

.doc-card {
  background: #ffffff;
  border: 1px solid var(--peer-slate-200);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  position: relative;
}

.doc-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #99f6e4;
}

.doc-card-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}

.doc-file-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.doc-file-icon.pdf {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fee2e2;
}

.doc-file-icon.docx,
.doc-file-icon.doc {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #dbeafe;
}

.doc-file-icon svg {
  width: 24px;
  height: 24px;
}

.doc-meta-top {
  flex-grow: 1;
}

.doc-category-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--peer-teal-light);
  color: var(--peer-teal-dark);
  margin-bottom: 4px;
}

.doc-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--peer-navy);
  line-height: 1.35;
}

.doc-summary {
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 14px;
  flex-grow: 1;
}

.doc-specs-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.74rem;
  color: #64748b;
  margin-bottom: 16px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.doc-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.doc-view-btn {
  flex-grow: 1;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--peer-teal);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s ease;
}

.doc-view-btn:hover {
  background: var(--peer-teal-dark);
}

/* ADMIN CARDS & TABLES */
.admin-card {
  background: #ffffff;
  border: 1px solid var(--peer-slate-200);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.admin-card-header {
  padding: 18px 24px;
  background: #f8fafc;
  border-bottom: 1px solid var(--peer-slate-200);
}

.admin-card-title {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--peer-navy);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.data-table-container {
  overflow-x: auto;
  width: 100%;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: left;
}

.data-table th {
  background: #f1f5f9;
  color: #475569;
  font-weight: 700;
  padding: 12px 18px;
  border-bottom: 1px solid var(--peer-slate-200);
  white-space: nowrap;
}

.data-table td {
  padding: 12px 18px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
}

.data-table tr:hover td {
  background: #f8fafc;
}

.data-table .action-btn-group {
  display: flex;
  gap: 6px;
}

/* MODALS */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 31, 35, 0.75);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.modal-card.modal-lg {
  max-width: 780px;
}

.modal-header {
  padding: 18px 24px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--peer-navy);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  max-height: calc(90vh - 140px);
}

.modal-footer {
  padding: 16px 24px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 30px 20px;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 18px;
}

.dropzone:hover, .dropzone.dragover {
  border-color: var(--peer-teal);
  background: #f0fdfa;
}

.dropzone-icon {
  width: 40px;
  height: 40px;
  color: var(--peer-teal);
  margin-bottom: 10px;
}

.dropzone-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: #1e293b;
  margin-bottom: 4px;
}

.dropzone-hint {
  font-size: 0.78rem;
  color: #64748b;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* DRM SECURE DOCUMENT READER MODAL */
.doc-reader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 31, 35, 0.92);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 16px;
}

.doc-reader-overlay.active {
  display: flex;
}

.doc-reader-modal {
  background: #ffffff;
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 1080px;
  height: 94vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transition: max-width 0.2s ease;
}

.doc-reader-modal.full-width {
  max-width: 98vw;
  height: 98vh;
}

.doc-reader-header {
  padding: 12px 20px;
  background: #041f23;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 2px solid var(--peer-teal);
}

.reader-title-area {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.reader-title-area svg {
  color: #2dd4bf;
  flex-shrink: 0;
}

.reader-doc-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #ffffff;
}

.reader-badge-confidential {
  font-size: 0.7rem;
  color: #fda4af;
  display: block;
}

.reader-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.reader-zoom-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.1);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.reader-tool-btn {
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
}

.reader-tool-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.reader-zoom-label {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: #5eead4;
  min-width: 42px;
  text-align: center;
}

.reader-controls-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
}

.reader-close-btn {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reader-close-btn:hover {
  color: #ffffff;
}

.doc-reader-body {
  flex-grow: 1;
  background: #525659;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  justify-content: center;
  position: relative;
}

.document-canvas-container {
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  position: relative;
  max-width: 900px;
  width: 100%;
  min-height: 1000px;
  padding: 40px;
  overflow: hidden;
}

/* FORENSIC WATERMARK OVERLAY */
.drm-watermark-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 10;
}

.drm-watermark-text {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 800;
  color: rgba(159, 18, 57, 0.08);
  transform: rotate(-30deg);
  text-align: center;
  line-height: 2.8;
  white-space: pre-wrap;
  width: 150%;
}

.doc-reader-footer {
  padding: 10px 20px;
  background: #041f23;
  color: #94a3b8;
  font-size: 0.74rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  gap: 10px;
}

.drm-footer-shield {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #2dd4bf;
  font-weight: 600;
}

/* STATUTORY FOOTER */
.board-footer {
  background: #041f23;
  color: #94a3b8;
  padding: 40px 24px 30px 24px;
  border-top: 3px solid var(--peer-teal);
  margin-top: auto;
}

.board-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.statutory-notice-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid #be123c;
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-bottom: 24px;
}

.statutory-notice-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fda4af;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.statutory-notice-text {
  font-size: 0.8rem;
  line-height: 1.6;
  color: #cbd5e1;
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .docs-grid {
    grid-template-columns: 1fr;
  }
  .board-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .session-controls {
    width: 100%;
    justify-content: space-between;
  }
}
