:root {
  --neo-bg: #f8fafc;
  --neo-sidebar-bg: #1e293b;
  --neo-sidebar-text: #f1f5f9;
  --neo-primary: #3b82f6;
  --neo-primary-hover: #2563eb;
  --neo-secondary: #64748b;
  --neo-border: #e2e8f0;
  --neo-card-bg: #ffffff;
  --neo-text-main: #0f172a;
  --neo-text-muted: #64748b;
  --neo-success: #10b981;
  --neo-warning: #f59e0b;
  --neo-danger: #ef4444;
  --neo-info: #0ea5e9;
  --neo-radius: 8px;
  --neo-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--neo-bg);
  color: var(--neo-text-main);
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 280px;
  background-color: var(--neo-sidebar-bg);
  color: var(--neo-sidebar-text);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.sidebar-header {
  padding: 2rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-nav {
  padding: 1.5rem 0;
  flex-grow: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 2rem;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: all 0.2s;
  font-weight: 500;
}

.nav-item:hover {
  background-color: rgba(255,255,255,0.05);
  color: white;
}

.nav-item.active {
  background-color: var(--neo-primary);
  color: white;
}

/* Main Content */
.main-content {
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.top-bar {
  background: white;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  border-bottom: 1px solid var(--neo-border);
}

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  color: var(--neo-text-muted);
  font-size: 0.875rem;
}

.page-container {
  padding: 2rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.page-header {
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.page-title h1 {
  margin: 0 0 0.5rem 0;
  font-size: 1.875rem;
  font-weight: 700;
}

.page-title p {
  margin: 0;
  color: var(--neo-text-muted);
}

/* Instructions Card */
.instruction-card {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--neo-radius);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}

.instruction-card h2 {
  margin-top: 0;
  font-size: 1.125rem;
  color: #1e40af;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.instruction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.instruction-item {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #1e3a8a;
}

.instruction-item strong {
  display: block;
  margin-bottom: 0.25rem;
}

/* Upload Sections Grid */
.upload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.section-card {
  background: var(--neo-card-bg);
  border: 1px solid var(--neo-border);
  border-radius: var(--neo-radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.section-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--neo-shadow);
}

.section-card h3 {
  margin: 0 0 1rem 0;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-info {
  font-size: 0.875rem;
  color: var(--neo-text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.action-bar {
  display: flex;
  gap: 0.75rem;
  border-top: 1px solid var(--neo-border);
  padding-top: 1.25rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: 1px solid transparent;
}

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

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

.btn-outline {
  background-color: white;
  border-color: var(--neo-border);
  color: var(--neo-text-main);
}

.btn-outline:hover {
  background-color: var(--neo-bg);
  border-color: var(--neo-secondary);
}

/* Tooltip Simulation (using title attribute but styled look) */
[data-tooltip] {
  position: relative;
}

/* Review Grid Table */
.data-table-container {
  background: white;
  border: 1px solid var(--neo-border);
  border-radius: var(--neo-radius);
  overflow: hidden;
}

.table-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--neo-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.table-header h2 {
  margin: 0;
  font-size: 1.125rem;
}

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

th {
  background-color: #fcfcfd;
  padding: 0.75rem 1.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--neo-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--neo-border);
}

td {
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--neo-border);
}

.link-num {
  color: var(--neo-primary);
  text-decoration: underline;
  font-weight: 600;
}

.badge {
  display: inline-flex;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-success { background: #dcfce7; color: #166534; }
.badge-error { background: #fee2e2; color: #991b1b; }

/* Modal Simulation (Hidden by default, shown on specific pages) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal {
  background: white;
  width: 100%;
  max-width: 500px;
  border-radius: var(--neo-radius);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  overflow: hidden;
}

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

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1.25rem 1.5rem;
  background: #f8fafc;
  border-top: 1px solid var(--neo-border);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.625rem;
  border: 1px solid var(--neo-border);
  border-radius: 6px;
  font-size: 0.875rem;
}

.file-drop {
  border: 2px dashed var(--neo-border);
  border-radius: var(--neo-radius);
  padding: 2rem;
  text-align: center;
  color: var(--neo-text-muted);
  cursor: pointer;
  transition: border-color 0.2s;
}

.file-drop:hover {
  border-color: var(--neo-primary);
}

/* Review Details Page Styles */
.inline-editor {
  background: white;
  padding: 2rem;
  min-height: 100vh;
}
.editable-cell {
  padding: 0.5rem;
  border: 1px solid transparent;
}
.editable-cell:hover {
  border-color: var(--neo-border);
  background: #f8fafc;
}

/* Specific Helper Classes to avoid inline styles */
.text-danger { color: var(--neo-danger); }
.text-muted { color: var(--neo-text-muted); }
.text-success { color: var(--neo-success); }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.p-4 { padding: 1rem; }
.p-8 { padding: 2rem; }
.w-full { width: 100%; }
.flex-col { display: flex; flex-direction: column; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.bg-warning-light { background: #fff9db; border: 1px solid #fab005; }
.bg-error-light { background: #fff1f2; }
.rounded { border-radius: 6px; }
.fs-xs { font-size: 0.75rem; }
.fs-sm { font-size: 0.8125rem; }
.fs-md { font-size: 0.875rem; }
.bold { font-weight: 600; }

.placeholder-icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  vertical-align: middle;
}
