/* 
 * NLP Research Group Portal - Ivy Scholar Design System
 * Premium light-centric academic interface. Soft, minimalist, responsive, and responsive.
 */

@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');

:root {
  /* HSL Color Palette */
  --bg-primary: #f8fafc;        /* Soft Off-White (Slate-50) */
  --bg-secondary: #ffffff;      /* Pure White */
  --bg-sidebar: #f1f5f9;        /* Soft Light Gray (Slate-100) */
  
  --text-primary: #0f172a;      /* Deep Slate (Slate-900) */
  --text-secondary: #475569;    /* Medium Gray (Slate-600) */
  --text-muted: #94a3b8;        /* Light Gray (Slate-400) */
  
  /* Primary Indigo Accents */
  --accent: #4f46e5;            /* Royal Indigo */
  --accent-hover: #4338ca;      /* Darker Indigo */
  --accent-light: #e0e7ff;       /* Indigo-50 */
  --accent-glow: rgba(79, 70, 229, 0.15);
  
  /* Status Colors */
  --color-success: #10b981;     /* Emerald Green */
  --color-success-bg: #ecfdf5;  
  --color-warning: #f59e0b;     /* Amber Yellow */
  --color-warning-bg: #fffbeb;
  --color-danger: #ef4444;      /* Coral Red */
  --color-danger-bg: #fef2f2;
  --color-info: #06b6d4;        /* Cyan Blue */
  --color-info-bg: #ecfeff;
  
  /* Borders & Shadows */
  --border-color: #e2e8f0;      /* Slate-200 */
  --border-focus: #cbd5e1;      /* Slate-300 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  
  /* Premium Micro Box-shadows */
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -2px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.03), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  
  /* Layout Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Global */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Main Container Layout */
#app-container {
  display: flex;
  width: 100vw;
  min-height: 100vh;
}

/* Floating Navigation Sidebar */
aside.sidebar {
  width: 260px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 4px;
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent), #6366f1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
}

.brand-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

nav.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 36px;
  flex-grow: 1;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
}

.nav-link:hover {
  background-color: rgba(0, 0, 0, 0.03);
  color: var(--text-primary);
}

.nav-link.active {
  background-color: var(--accent-light);
  color: var(--accent);
  font-weight: 600;
}

.nav-link svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
  transition: var(--transition-fast);
}

.sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

/* User Quick Badge */
.user-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 4px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background-color: var(--border-color);
  border: 2px solid white;
  box-shadow: var(--shadow-sm);
}

.user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.user-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.user-role-tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: capitalize;
}

/* Main Workspace */
main.workspace {
  margin-left: 260px;
  padding: 40px;
  flex-grow: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: relative;
}

/* Views (Conditional Rendering) */
.view-panel {
  display: none;
  flex-direction: column;
  gap: 32px;
  animation: fadeIn var(--transition-normal);
}

.view-panel.active {
  display: flex;
}

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

/* Typography Rules */
h1.view-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.view-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: 4px;
  font-weight: 400;
}

/* Cards & Layout Panels */
.card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--accent);
  color: white;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
}

.btn-secondary {
  background-color: var(--bg-secondary);
  border-color: var(--border-color);
  color: var(--text-secondary);
}

.btn-secondary:hover {
  background-color: var(--bg-sidebar);
  color: var(--text-primary);
}

.btn-danger {
  background-color: var(--color-danger-bg);
  border-color: rgba(239, 68, 68, 0.1);
  color: var(--color-danger);
}

.btn-danger:hover {
  background-color: var(--color-danger);
  color: white;
}

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

/* Dashboard Metrics Row */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.metric-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.metric-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.metric-card.active .metric-icon { background-color: var(--accent-light); color: var(--accent); }
.metric-card.success .metric-icon { background-color: var(--color-success-bg); color: var(--color-success); }
.metric-card.warning .metric-icon { background-color: var(--color-warning-bg); color: var(--color-warning); }
.metric-card.danger .metric-icon { background-color: var(--color-danger-bg); color: var(--color-danger); }

.metric-value {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.metric-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Two Column Workspace Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}

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

/* Weekly checklist layout */
.checklist-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
}

.checklist-item:hover {
  background-color: var(--bg-secondary);
  border-color: var(--border-focus);
}

.checklist-item.active {
  background-color: var(--color-success-bg);
  border-color: rgba(16, 185, 129, 0.2);
}

.checklist-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: var(--transition-fast);
  flex-shrink: 0;
  margin-top: 1px;
}

.checklist-item.active .checklist-checkbox {
  background-color: var(--color-success);
  border-color: var(--color-success);
}

.checklist-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.checklist-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
}

.checklist-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Interactive Project Grid */
.project-controls {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.search-wrapper {
  position: relative;
  flex-grow: 1;
}

.search-input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  font-size: 0.9rem;
  background-color: var(--bg-secondary);
  transition: var(--transition-fast);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-icon-svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.filter-select {
  padding: 10px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  outline: none;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.project-card {
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-active { background-color: var(--color-success-bg); color: var(--color-success); }
.badge-recruiting { background-color: var(--accent-light); color: var(--accent); }
.badge-paused { background-color: var(--color-warning-bg); color: var(--color-warning); }
.badge-idea { background-color: var(--color-info-bg); color: var(--color-info); }
.badge-closed { background-color: var(--bg-sidebar); color: var(--text-secondary); }

.project-desc-trunc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.project-tag {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 4px 8px;
  font-size: 0.72rem;
  border-radius: 50px;
  color: var(--text-secondary);
  font-weight: 500;
}

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

.members-avatar-stack {
  display: flex;
  align-items: center;
}

.avatar-stack-item {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid white;
  margin-left: -8px;
  background-color: var(--border-color);
  object-fit: cover;
}

.avatar-stack-item:first-child {
  margin-left: 0;
}

.avatar-stack-overflow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid white;
  background-color: var(--bg-sidebar);
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -8px;
}

/* Comments & Collaboration */
.comments-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 8px;
}

.comment-card {
  display: flex;
  gap: 16px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: var(--radius-md);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
}

.comment-author {
  font-size: 0.9rem;
  font-weight: 600;
}

.comment-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.comment-body {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 6px;
}

.comment-sharing {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.sharing-internal { color: var(--text-muted); }
.sharing-members { color: var(--accent); }
.sharing-list { color: var(--color-warning); }

.comment-input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.comment-textarea {
  width: 100%;
  min-height: 80px;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  resize: vertical;
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-fast);
}

.comment-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.comment-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.sharing-selectors {
  display: flex;
  gap: 16px;
}

.sharing-option-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
}

/* User Directory Tables */
.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--bg-secondary);
}

table.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th {
  background-color: var(--bg-sidebar);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
}

.admin-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.88rem;
  color: var(--text-primary);
}

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

.admin-table tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.01);
}

/* Input Fields & Forms */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  font-size: 0.9rem;
  background-color: var(--bg-secondary);
  outline: none;
  transition: var(--transition-fast);
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Project Detail View Layout */
.project-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

@media (max-width: 900px) {
  .project-detail-layout {
    grid-template-columns: 1fr;
  }
}

.project-links-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.project-link-item:hover {
  background-color: var(--bg-sidebar);
  color: var(--text-primary);
  border-color: var(--border-focus);
}

.project-link-item svg {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
}

/* Floating Switcher Role Console */
.role-simulator-badge {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--text-primary);
  color: white;
  border-radius: 50px;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

.role-simulator-btn {
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  cursor: pointer;
  font-weight: 700;
  transition: var(--transition-fast);
}

.role-simulator-btn:hover {
  background-color: white;
  color: var(--text-primary);
}

/* Auth Portal Overlay Page */
#auth-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-primary);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  width: 420px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.auth-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.auth-logo {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent), #6366f1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.4rem;
}

.auth-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: var(--bg-sidebar);
  padding: 4px;
  border-radius: var(--radius-md);
}

.auth-tab {
  background: none;
  border: none;
  padding: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 6px;
  text-align: center;
  transition: var(--transition-fast);
}

.auth-tab.active {
  background-color: var(--bg-secondary);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.auth-error-banner {
  background-color: var(--color-danger-bg);
  border: 1px solid rgba(239, 68, 68, 0.15);
  color: var(--color-danger);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.4;
  display: none;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.3);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-content {
  width: 100%;
  max-width: 540px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  animation: modalSlideUp var(--transition-normal);
  overflow: hidden;
}

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

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

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

.modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 70vh;
  overflow-y: auto;
}

.modal-footer {
  padding: 16px 24px;
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Compact project description paragraph styling */
.project-description-text {
  line-height: 1.45;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
  white-space: pre-line;
}

.project-description-text p {
  margin-bottom: 8px; /* Short space between paragraphs */
}

/* Dynamic Collaborator Tags styling */
.collaborator-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--accent-light);
  color: var(--accent);
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 50px;
  font-weight: 500;
  border: 1px solid rgba(79, 70, 229, 0.15);
  animation: fadeIn var(--transition-fast);
}

.collaborator-remove-btn {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2px;
}

.collaborator-remove-btn:hover {
  color: var(--color-danger);
}

/* ==================== PHASE 2 ROSTER DIRECTORY ==================== */
.roster-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.roster-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.roster-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: var(--shadow-md);
  object-fit: cover;
  background-color: var(--bg-sidebar);
  margin-bottom: 12px;
}

.roster-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.roster-role {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* ==================== SVG SENTIMENT GRAPHING ==================== */
.chart-line {
  stroke: var(--accent);
  stroke-width: 3.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0px 3px 4px rgba(79, 70, 229, 0.15));
}

.chart-area-fill {
  fill: url(#chart-gradient);
  opacity: 0.15;
}

.chart-node {
  fill: var(--accent);
  stroke: white;
  stroke-width: 2.5;
  cursor: pointer;
  transition: transform 0.15s ease, r 0.15s ease;
}

.chart-node:hover {
  r: 7.5;
  fill: var(--accent-hover);
}

.chart-grid-line {
  stroke: var(--border-color);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.chart-axis-text {
  font-size: 0.72rem;
  fill: var(--text-secondary);
  font-weight: 500;
  font-family: 'Inter', sans-serif;
}

.chart-tooltip-rect {
  fill: var(--text-primary);
  rx: 4;
  ry: 4;
  opacity: 0.95;
}

.chart-tooltip-text {
  font-size: 0.68rem;
  font-weight: 600;
  fill: white;
  font-family: 'Inter', sans-serif;
}

/* ==================== INTERACTIVE STAR RATING ==================== */
.star-rating-container {
  display: flex;
  gap: 6px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

.star-node {
  transition: color 0.15s ease, transform 0.15s ease;
  user-select: none;
}

.star-node:hover {
  transform: scale(1.22);
}

.star-node.selected {
  color: #f59e0b; /* Golden Amber */
}

/* ==================== PEER REVIEW COMMENTS HIGHLIGHT ==================== */
.sharing-peer {
  color: var(--color-info);
  font-weight: 600;
}

.comment-card.peer-feedback-highlight {
  border-left: 4px solid var(--color-info);
  background-color: var(--color-info-bg);
}

/* ==================== PORTFOLIO CLICKABLE HYPERLINKS ==================== */
.roster-name-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  transition: color var(--transition-fast), border-bottom var(--transition-fast);
  border-bottom: 1.5px dashed transparent;
}

.roster-name-link:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent-hover);
}

/* ==================== PORTAL OVERLAY ANIMATION ==================== */
#app-container {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 500;
  transform: translateX(100%);
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  display: none;
}

#app-container.portal-overlay-active {
  transform: translateX(0);
  display: flex !important;
}

/* ==================== GOOGLE SIGN-IN BUTTON ==================== */
.btn-google-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 20px;
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.btn-google-auth:hover {
  border-color: #4285F4;
  box-shadow: 0 2px 12px rgba(66, 133, 244, 0.15);
}

/* ==================== LANDING PAGE STYLES ==================== */
#landing-page {
  min-height: 100vh;
  width: 100%;
  background: var(--bg-primary);
  overflow-x: hidden;
}

.landing-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 400;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.landing-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.landing-brand-img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.landing-brand-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.landing-brand-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.03em;
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-grow: 1;
  justify-content: center;
}

.landing-nav-link {
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
  text-decoration: none;
}

.landing-nav-link:hover {
  color: var(--accent);
  background: var(--accent-light);
}

.landing-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.landing-hero {
  min-height: 100vh;
  padding-top: 80px;
  display: flex;
  align-items: center;
  gap: 64px;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
  position: relative;
}

.landing-hero-bg-pattern {
  position: absolute;
  top: 80px;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse at 70% 40%, rgba(79, 70, 229, 0.06) 0%, transparent 65%);
  pointer-events: none;
}

.landing-hero-content {
  flex: 1;
  min-width: 0;
  padding: 60px 0;
}

.landing-hero-badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.landing-hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.landing-hero-highlight {
  background: linear-gradient(135deg, var(--accent) 0%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.landing-hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 36px;
}

.landing-hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.landing-cta-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  padding: 13px 26px;
  font-weight: 600;
}

.landing-cta-btn-outline {
  font-size: 0.95rem;
  padding: 13px 26px;
  font-weight: 600;
  border: 1.5px solid var(--border-color);
  background: white;
  color: var(--text-primary);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.landing-cta-btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.landing-stats {
  display: flex;
  align-items: center;
  gap: 0;
}

.landing-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px;
}

.landing-stat:first-child {
  padding-left: 0;
}

.landing-stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.landing-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
}

.landing-stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border-color);
}

.landing-hero-visual {
  width: 380px;
  flex-shrink: 0;
  position: relative;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-hero-card {
  position: absolute;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-md);
  min-width: 220px;
}

.landing-card-float-1 {
  top: 20px;
  right: 0;
  animation: floatCard1 4s ease-in-out infinite;
}

.landing-card-float-2 {
  top: 140px;
  left: 0;
  animation: floatCard2 4.5s ease-in-out infinite;
}

.landing-card-float-3 {
  bottom: 30px;
  right: 20px;
  animation: floatCard1 5s ease-in-out infinite reverse;
}

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

@keyframes floatCard2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.landing-section {
  background: var(--bg-sidebar);
  padding: 80px 32px;
}

.landing-section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.landing-section-header {
  text-align: center;
  margin-bottom: 56px;
}

.landing-section-badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: 100px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.landing-section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.landing-section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}

.landing-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.landing-feature-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

.landing-feature-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.landing-feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.landing-feature-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.landing-feature-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.landing-cta-section {
  padding: 80px 32px;
  background: linear-gradient(135deg, var(--accent) 0%, #6366f1 100%);
  text-align: center;
}

.landing-cta-inner {
  max-width: 700px;
  margin: 0 auto;
}

.landing-cta-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.landing-cta-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.65;
}

.landing-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 48px 32px;
  text-align: center;
}

.landing-footer-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.landing-footer-link {
  font-size: 1rem;
  color: var(--text-secondary);
  cursor: pointer;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.landing-footer-link:hover {
  color: var(--accent);
}
