/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* Color Variables & System Tokens */
:root {
  /* Core Theme Colors */
  --primary: #d4af37;           /* Premium Metallic Gold */
  --primary-dark: #b48c28;
  --primary-glow: rgba(212, 175, 55, 0.12);
  
  --accent: #00bfff;            /* Bright Neon Blue */
  --accent-dark: #0080ff;
  --accent-glow: rgba(0, 191, 255, 0.12);
  
  --bg-primary: #030712;        /* Deep Black (zinc-950) */
  --bg-secondary: #090d16;      /* Slate Black (slate-950) */
  --bg-tertiary: #111827;       /* Card/Panel Nests */
  
  --card-bg: rgba(15, 23, 42, 0.45); /* Glassmorphism Card (semi-transparent slate) */
  --card-border: rgba(255, 255, 255, 0.06);
  --card-border-glow: rgba(212, 175, 55, 0.18);
  
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dark: #64748b;
  
  /* Backward Compatibility Mapping */
  --accent-blue: var(--accent);
  --accent-purple: var(--accent-dark);
  --accent-indigo: var(--primary);
  --accent-magenta: #e0115f;
  
  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.12);
  --warning: #f59e0b;
  --warning-glow: rgba(245, 158, 11, 0.12);
  --danger: #ef4444;
  --danger-glow: rgba(239, 68, 68, 0.12);
  
  --font-title: 'Outfit', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-neon: 0 8px 32px 0 rgba(0, 0, 0, 0.45);
  --shadow-accent: 0 0 20px rgba(212, 175, 55, 0.15);
}

/* Base resets & scrollbars */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
}

select option {
  background-color: #090d16;
  color: #f1f5f9;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-indigo);
}

/* Page Layout */
#app-container {
  display: flex;
  width: 100%;
  min-height: 100vh;
  position: relative;
}

/* Sidebar Styling */
#sidebar {
  width: 280px;
  background: rgba(9, 13, 22, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: 1px solid var(--card-border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  overflow-y: auto;
}

.logo-container {
  margin-bottom: 30px;
}

.logo-main {
  font-family: var(--font-title);
  font-size: 26px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-sub {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 600;
}

/* Role Selector Tool */
.role-switcher-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--accent-indigo);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 24px;
}

.role-switcher-card label {
  font-size: 11px;
  color: var(--accent-blue);
  text-transform: uppercase;
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}

.role-select {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.role-select:focus {
  border-color: var(--accent-indigo);
  box-shadow: var(--shadow-accent);
}

/* Sidebar Nav */
.nav-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
  gap: 12px;
}

.nav-item i {
  font-size: 18px;
  width: 20px;
  text-align: center;
}

.nav-item:hover, .nav-item.active {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.15) 0%, rgba(157, 78, 221, 0.05) 100%);
  border-left: 3px solid var(--accent-indigo);
  color: var(--text-main);
  font-weight: 600;
}

.nav-group-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-dark);
  margin: 16px 0 8px 12px;
  font-weight: 700;
}

/* User Info Panel in Sidebar */
.user-profile-summary {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-indigo), var(--accent-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
}

.user-info-text {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 14px;
  font-weight: 600;
}

.user-role-badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent-blue);
  width: fit-content;
  margin-top: 2px;
  font-weight: 700;
}

/* Main Content Area */
#main-content {
  margin-left: 280px;
  padding: 40px;
  width: calc(100% - 280px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Welcome Page Hero styles */
.hero-wrapper {
  background: radial-gradient(circle at 75% 20%, rgba(99, 102, 241, 0.12) 0%, rgba(0, 0, 0, 0) 60%);
  padding: 40px 0;
}

.welcome-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}

.welcome-hero-text {
  flex: 1;
}

.badge-intro {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #c7d2fe;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-title);
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-gradient-text {
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 600px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-indigo), var(--accent-purple));
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45), 0 0 10px rgba(157, 78, 221, 0.2);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-muted);
}

.welcome-hero-card {
  flex: 0 0 380px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 24px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-neon);
  position: relative;
  overflow: hidden;
}

.welcome-hero-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.card-badge-glow {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, var(--success), #34d399);
  color: black;
  font-weight: 800;
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 0 10px var(--success-glow);
  animation: pulse-glow 2s infinite;
}

/* Animations */
@keyframes pulse-glow {
  0% { box-shadow: 0 0 5px var(--success-glow); }
  50% { box-shadow: 0 0 15px rgba(16, 185, 129, 0.6); }
  100% { box-shadow: 0 0 5px var(--success-glow); }
}

.teaser-card-title {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  margin-top: 15px;
  margin-bottom: 8px;
}

.teaser-card-tag {
  color: var(--accent-blue);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.score-display-big {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 15px 0;
}

.score-num {
  font-family: var(--font-title);
  font-size: 42px;
  font-weight: 800;
  color: var(--success);
}

.score-lbl {
  font-size: 14px;
  color: var(--text-muted);
}

/* Card details list */
.card-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--card-border);
}

.card-detail-item {
  display: flex;
  flex-direction: column;
}

.card-detail-lbl {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dark);
}

.card-detail-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 2px;
}

/* Core Pillars & Info section */
.section-title-wrapper {
  margin-bottom: 30px;
}

.section-title {
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 6px;
}

.three-column-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.pillar-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 24px;
  transition: var(--transition-smooth);
}

.pillar-card:hover {
  border-color: var(--accent-indigo);
  transform: translateY(-4px);
  box-shadow: var(--shadow-accent);
}

.pillar-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--accent-blue);
  margin-bottom: 20px;
}

.pillar-title {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.pillar-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* General tab structure */
.tab-content {
  display: none;
  animation: fadeIn 0.4s ease-out;
}

.tab-content.active {
  display: block;
}

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

/* Forms & UI Controls */
.form-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-input, .form-textarea, .form-select {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 12px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: var(--transition-smooth);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--accent-indigo);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-accent);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

/* Upload zone */
.upload-zone {
  border: 2px dashed var(--card-border);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.01);
  transition: var(--transition-smooth);
}

.upload-zone:hover {
  border-color: var(--accent-indigo);
  background: rgba(99, 102, 241, 0.02);
}

.upload-icon {
  font-size: 32px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.upload-text {
  font-size: 13px;
  color: var(--text-muted);
}

.upload-hint {
  font-size: 11px;
  color: var(--text-dark);
  margin-top: 4px;
}

.file-list {
  margin-top: 15px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
}

.file-name {
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.file-size {
  color: var(--text-dark);
}

.file-remove {
  color: var(--danger);
  cursor: pointer;
}

/* Quiz UI Wizard */
.quiz-container {
  max-width: 800px;
  margin: 0 auto;
}

.quiz-progress-bar-wrapper {
  background: rgba(255, 255, 255, 0.05);
  height: 6px;
  border-radius: 3px;
  margin-bottom: 30px;
  overflow: hidden;
}

.quiz-progress {
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
  height: 100%;
  width: 25%;
  transition: var(--transition-smooth);
}

.quiz-step-card {
  display: none;
}

.quiz-step-card.active {
  display: block;
  animation: fadeIn 0.4s ease-out;
}

.quiz-question {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
}

.quiz-options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

.quiz-option {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.quiz-option:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-indigo);
}

.quiz-option.selected {
  background: rgba(99, 102, 241, 0.08);
  border-color: var(--accent-indigo);
  box-shadow: var(--shadow-accent);
}

.quiz-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.quiz-option.selected .quiz-radio {
  border-color: var(--accent-indigo);
  background: var(--accent-indigo);
}

.quiz-option.selected .quiz-radio::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
}

.quiz-option-text {
  font-size: 14px;
  font-weight: 500;
}

.quiz-nav-btns {
  display: flex;
  justify-content: space-between;
}

/* Assessment Results */
.result-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
}

.result-header {
  margin-bottom: 30px;
}

.result-score-ring {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(var(--bg-secondary) 60%, transparent 61%), conic-gradient(var(--success) 80%, var(--bg-tertiary) 0%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-family: var(--font-title);
  font-size: 36px;
  font-weight: 800;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

.badge-stamp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--success);
  color: var(--success);
  padding: 8px 16px;
  border-radius: 24px;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.result-explanation {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 500px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.checklist-wrapper {
  text-align: left;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 30px;
}

.checklist-title {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  gap: 8px;
}

.checklist-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
}

.checklist-item i {
  color: var(--warning);
  margin-top: 2px;
}

.checklist-item.checked i {
  color: var(--success);
}

/* Deal-flow Grid */
.deal-flow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.project-card:hover {
  border-color: var(--accent-indigo);
  transform: translateY(-4px);
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.project-name {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
}

.project-tagline {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.project-score-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--success);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}

.project-card-footer {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--card-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Data-room Gate / NDA dialog */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  width: 90%;
  max-width: 600px;
  padding: 30px;
  position: relative;
  box-shadow: var(--shadow-neon);
  animation: modalSlideUp 0.3s ease-out;
}

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

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.modal-close:hover {
  color: var(--text-main);
}

.nda-text-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 16px;
  height: 200px;
  overflow-y: auto;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-main);
  cursor: pointer;
  margin-bottom: 24px;
}

.checkbox-label input {
  margin-top: 3px;
}

/* Legal Boundary Disclaimer Bar */
#legal-disclaimer-bar {
  position: fixed;
  bottom: 0;
  right: 0;
  left: 280px;
  background: rgba(27, 20, 18, 0.9);
  border-top: 1px solid rgba(245, 158, 11, 0.3);
  padding: 12px 24px;
  font-size: 11px;
  line-height: 1.5;
  color: #fde68a;
  z-index: 90;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(12px);
}

.disclaimer-btn {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fde68a;
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
  text-transform: uppercase;
}

.disclaimer-btn:hover {
  background: rgba(245, 158, 11, 0.3);
}

/* Admin Dashboard Table */
.data-table-wrapper {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 30px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  text-align: left;
  padding: 16px 20px;
  font-weight: 600;
  border-bottom: 1px solid var(--card-border);
}

.data-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--card-border);
  color: var(--text-main);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.01);
}

.badge-status {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-status.pending {
  background: var(--warning-glow);
  color: var(--warning);
}

.badge-status.approved {
  background: var(--success-glow);
  color: var(--success);
}

.badge-status.rejected {
  background: var(--danger-glow);
  color: var(--danger);
}

/* Event Logs / Auditing */
.log-box {
  background: #000;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  font-family: 'Courier New', Courier, monospace;
  padding: 16px;
  height: 250px;
  overflow-y: auto;
  font-size: 12px;
  color: #00ff00;
}

.log-entry {
  margin-bottom: 6px;
  line-height: 1.4;
}

.log-timestamp {
  color: #888;
}

/* Analytics KPIs */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.kpi-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 20px;
}

.kpi-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.kpi-val {
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 700;
  margin-top: 8px;
}

.kpi-trend {
  font-size: 11px;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.kpi-trend.up { color: var(--success); }
.kpi-trend.down { color: var(--danger); }

/* Notifications Panel Floating banner */
#notification-center {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1010;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 350px;
}

.toast-notification {
  background: rgba(17, 20, 29, 0.95);
  border-left: 4px solid var(--accent-indigo);
  border-right: 1px solid var(--card-border);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  border-radius: 4px 8px 8px 4px;
  padding: 16px;
  color: var(--text-main);
  box-shadow: var(--shadow-neon);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  animation: toastSlideIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-notification.success { border-left-color: var(--success); }
.toast-notification.warning { border-left-color: var(--warning); }
.toast-notification.danger { border-left-color: var(--danger); }

@keyframes toastSlideIn {
  from { transform: translateX(100px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}

.toast-body {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 20px;
}

.pricing-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.pricing-card.premium {
  border-color: var(--accent-indigo);
  transform: scale(1.03);
  box-shadow: var(--shadow-accent);
}

.pricing-card-title {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.pricing-price {
  font-family: var(--font-title);
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--accent-blue);
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 30px;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

.pricing-features li i {
  color: var(--success);
}

/* Timeline component */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background: var(--bg-tertiary);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  right: -8px;
  background-color: var(--bg-secondary);
  border: 3px solid var(--accent-indigo);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.timeline-left { left: 0; }
.timeline-right {
  left: 50%;
}
.timeline-right::after {
  left: -8px;
}

.timeline-content {
  padding: 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  position: relative;
}

.timeline-content h3 {
  font-family: var(--font-title);
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--accent-blue);
}

.timeline-content p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.timeline-tag {
  font-size: 9px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 8px;
  display: inline-block;
  font-weight: 700;
  color: var(--accent-purple);
}

/* Responsive elements */
@media (max-width: 1024px) {
  #sidebar { width: 80px; padding: 16px 8px; }
  #sidebar .logo-sub, #sidebar .nav-item span, #sidebar .nav-group-title, #sidebar .user-info-text, #sidebar .role-switcher-card label { display: none; }
  #main-content { margin-left: 80px; width: calc(100% - 80px); padding: 24px; }
  #legal-disclaimer-bar { left: 80px; }
  .three-column-grid, .pricing-grid { grid-template-columns: 1fr; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .welcome-hero { flex-direction: column; }
  .welcome-hero-card { flex: unset; width: 100%; }
}

@media (max-width: 768px) {
  .form-grid-2 { grid-template-columns: 1fr; }
  .form-group.full-width { grid-column: span 1; }
  .kpi-row { grid-template-columns: 1fr; }
  .timeline::after { left: 31px; }
  .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
  .timeline-item::after { left: 23px; }
  .timeline-right { left: 0%; }
}

/* Premium Animations & Extra Classes */
@keyframes rotate-cw {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rotate-ccw {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

.rotate-clockwise {
  animation: rotate-cw 25s linear infinite;
  transform-origin: center;
}

.rotate-counterclockwise {
  animation: rotate-ccw 20s linear infinite;
  transform-origin: center;
}

.slide-up-in {
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Glassmorphism Hero Media Container */
.welcome-hero-media {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.hero-svg-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.blur-glow-backdrop {
  position: absolute;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, rgba(0, 191, 255, 0.08) 50%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.welcome-hero-card {
  position: relative;
  z-index: 2;
  transition: var(--transition-smooth);
}

.welcome-hero-card:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 40px rgba(212, 175, 55, 0.12), var(--shadow-neon);
}

/* Premium updates for existing classes */
.pillar-card, .project-card, .form-card, .kpi-card, .pricing-card {
  border-radius: 20px !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition-smooth) !important;
}

.pillar-card:hover, .project-card:hover, .pricing-card:hover {
  border-color: rgba(212, 175, 55, 0.3) !important;
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.08) !important;
  transform: translateY(-4px);
}

.pricing-card.premium {
  border-color: var(--primary) !important;
  box-shadow: 0 12px 35px rgba(212, 175, 55, 0.15) !important;
}

.progress-bar-glow {
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%) !important;
}

/* Background Glowing Elements */
.background-glows {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}

.bg-glow-top {
  top: -120px;
  right: -120px;
  width: 450px;
  height: 450px;
  background: rgba(0, 191, 255, 0.04); /* accent neon blue */
}

.bg-glow-bottom {
  bottom: -120px;
  left: -120px;
  width: 450px;
  height: 450px;
  background: rgba(212, 175, 55, 0.04); /* primary gold */
}

@keyframes pulse {
  0%, 100% { opacity: 0.65; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.animate-pulse {
  animation: pulse 6s ease-in-out infinite;
}
