/* ═══════════════════════════════════════════════════
   PGC EVALUATION SYSTEM — Main Stylesheet
   Universidad de Cundinamarca · INTELELIER
   ═══════════════════════════════════════════════════ */

:root {
  /* ── Paleta Institucional Universidad de Cundinamarca ── */
  --udec-verde-oscuro: #00482B;
  --udec-verde-institucional: #007B3E;
  --udec-verde-claro: #79C000;
  --udec-amarillo: #FBE122;
  --udec-dorado: #DAAA00;

  /* Escala de verdes (mapeo a UdeC) */
  --green-50: #E8F5EE;
  --green-100: #C5E8D4;
  --green-200: #9DD4B5;
  --green-300: #6DBF96;
  --green-400: #3DAA77;
  --green-500: #007B3E;
  --green-600: #006535;
  --green-700: #00482B;
  --green-accent: #79C000;
  --green-accent-dark: #5A9200;

  /* Neutrals */
  --gray-0: #FFFFFF;
  --gray-50: #FAFAFA;
  --gray-100: #F5F5F5;
  --gray-150: #EEEEEE;
  --gray-200: #E0E0E0;
  --gray-300: #BDBDBD;
  --gray-400: #9E9E9E;
  --gray-500: #757575;
  --gray-600: #616161;
  --gray-700: #424242;
  --gray-800: #212121;
  --gray-900: #121212;

  /* Semantic */
  --success: #2E7D32;
  --success-light: #E8F5E9;
  --warning: #F57F17;
  --warning-light: #FFF8E1;
  --danger: #C62828;
  --danger-light: #FFEBEE;
  --info: #1565C0;
  --info-light: #E3F2FD;

  /* Layout */
  --sidebar-w: 240px;
  --topbar-h: 64px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.08);
  --shadow-green: 0 4px 24px rgba(0, 72, 43, 0.28);

  /* Typography — Lato principal (UdeC), Century Gothic para títulos */
  --font-display: 'Lato', 'Century Gothic', Georgia, serif;
  --font-body: 'Lato', system-ui, sans-serif;
  --font-mono: 'DM Mono', 'Courier New', monospace;

  /* Transitions */
  --t-fast: 120ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── RESET ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
select,
textarea {
  font-family: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── UTILITY ── */
.hidden {
  display: none !important;
}

.active {
  display: block !important;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-4 {
  gap: 1rem;
}

.text-green {
  color: var(--green-700);
}

.text-muted {
  color: var(--gray-500);
}

.fw-600 {
  font-weight: 600;
}

.font-mono {
  font-family: var(--font-mono);
}

/* ════════════════════════════════════════
   AUTH SCREEN — Minimal / Precision
════════════════════════════════════════ */

/* Grain texture overlay */
.auth-screen::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

.auth-screen {
  min-height: 100vh;
  display: none;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: #0a0a0a;
}

.auth-screen.active {
  display: flex;
}

/* Single precise accent line at top */
.auth-screen::after {
  content: '';
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green-accent), transparent);
  z-index: 1;
}

.auth-bg {
  display: none;
}

/* ── CONTAINER ── */
.auth-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 400px;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* ── LOGO MARK ── */
.auth-brand {
  width: 100%;
  margin-bottom: 2.5rem;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.auth-logo-text {
  display: flex;
  flex-direction: column;
}

.auth-logo-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: -0.02em;
  line-height: 1;
}

.auth-logo-sub {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--green-accent);
  text-transform: uppercase;
  margin-top: 3px;
  opacity: 0.7;
}

/* ── CARD ── */
.auth-card {
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  animation: authFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes authFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes authShake {

  0%,
  100% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-6px);
  }

  40% {
    transform: translateX(6px);
  }

  60% {
    transform: translateX(-4px);
  }

  80% {
    transform: translateX(4px);
  }
}

.auth-card.shake {
  animation: authShake 0.4s ease;
}

/* ── HEADER ── */
.auth-card-header {
  margin-bottom: 2rem;
}

.auth-card-header h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1.1;
  font-weight: 400;
}

.auth-card-header p {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.82rem;
  margin-top: 0.375rem;
  font-weight: 400;
}

/* ── TABS — underline style ── */
.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.auth-tab {
  padding: 0.5rem 0;
  margin-right: 1.75rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.25);
  transition: color 0.2s;
  background: transparent;
  border-radius: 0;
  border-bottom: 1.5px solid transparent;
  margin-bottom: -1px;
  letter-spacing: 0.02em;
}

.auth-tab:hover {
  color: rgba(255, 255, 255, 0.55);
}

.auth-tab.active {
  color: #fff;
  border-bottom-color: var(--green-accent);
  background: transparent;
  box-shadow: none;
}

/* ── FORMS ── */
.auth-form {
  display: none;
  flex-direction: column;
  gap: 1.125rem;
}

.auth-form.active {
  display: flex;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(255, 255, 255);
}

/* ── INPUTS — borderless bottom-only ── */
.form-input {
  width: 100%;
  padding: 0.625rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  color: rgba(255, 255, 255, 0.288);
  font-size: 0.92rem;
  font-family: var(--font-body);
  transition: border-color 0.2s;
  outline: none;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.form-input:focus {
  border-bottom-color: var(--green-accent);
  background: transparent;
  box-shadow: none;
}

.form-input option {
  background: #111;
}

.form-input:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

select.form-input {
  cursor: pointer;
}

.input-with-icon {
  position: relative;
}

.input-with-icon .form-input {
  padding-right: 2rem;
}

.input-icon-btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.25);
  transition: color 0.15s;
  padding: 2px;
}

.input-icon-btn:hover {
  color: rgba(255, 255, 255, 0.6);
}

/* ── FORGOT LINK ── */
.form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.forgot-link {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.15s;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.forgot-link:hover {
  color: var(--green-accent);
}

/* ── ERROR ── */
.form-error {
  font-size: 0.78rem;
  color: #ff6b6b;
  padding: 0.5rem 0.625rem;
  background: rgba(255, 107, 107, 0.08);
  border-radius: 4px;
  border-left: 2px solid rgba(255, 107, 107, 0.5);
  animation: authFadeIn 0.2s ease;
}

.form-error.hidden {
  display: none;
}

/* ── SUBMIT BUTTON ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--green-700);
  color: var(--gray-0);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--t-base);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--green-600);
  transform: translateY(-1px);
  box-shadow: var(--shadow-green);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary.btn-full {
  width: 100%;
}

.btn-primary:disabled {
  opacity: 0.5;
  transform: none;
  cursor: not-allowed;
}

/* Auth-specific submit button */
.btn-auth {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.875rem 1.125rem;
  margin-top: 0.5rem;
  background: var(--green-700);
  color: #fff;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  border: none;
}

.btn-auth:hover {
  background: var(--green-600);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(27, 94, 32, 0.4);
}

.btn-auth:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-auth:disabled {
  opacity: 0.5;
  transform: none;
  cursor: not-allowed;
  box-shadow: none;
}

/* ── SECONDARY BUTTON ── */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: var(--gray-100);
  color: var(--gray-700);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--t-base);
  white-space: nowrap;
}

.btn-secondary:hover {
  background: var(--gray-200);
  border-color: var(--gray-300);
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: var(--danger-light);
  color: var(--danger);
  border: 1.5px solid rgba(198, 40, 40, 0.2);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--t-base);
}

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

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8rem;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  transition: all var(--t-fast);
  color: var(--gray-500);
}

.btn-icon:hover {
  background: var(--gray-100);
  color: var(--gray-700);
}

.btn-icon.green:hover {
  background: var(--green-50);
  color: var(--green-700);
}

.btn-icon.red:hover {
  background: var(--danger-light);
  color: var(--danger);
}


/* ── FOOTER ── */
.auth-footer {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.15);
  text-align: center;
  margin-top: 2.5rem;
  letter-spacing: 0.04em;
}

/* ── LIGHT MODE inputs (inside app) ── */
.panel-section .form-input,
.modal .form-input {
  background: var(--gray-50);
  border: none;
  border-bottom: 1.5px solid var(--gray-200);
  color: var(--gray-800);
  border-radius: 0;
  padding: 0.625rem 0;
}

.panel-section .form-input::placeholder,
.modal .form-input::placeholder {
  color: var(--gray-400);
}

.panel-section .form-input:focus,
.modal .form-input:focus {
  border-bottom-color: var(--green-600);
  background: transparent;
  box-shadow: none;
}

.panel-section .form-group label,
.modal .form-group label {
  color: var(--gray-600);
}

/* Explicit light override for modal */
.modal .form-input {
  background: var(--gray-50) !important;
  border: 1.5px solid var(--gray-200) !important;
  border-radius: var(--radius-md) !important;
  color: var(--gray-800) !important;
  padding: 0.625rem 0.875rem !important;
}

.modal .form-input:focus {
  border-color: var(--green-500) !important;
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1) !important;
}

/* ── FORGOT/RESET forms extra ── */
.forgot-link {
  cursor: pointer;
  background: none;
  border: none;
}

.btn-back-login {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 0.5rem;
  transition: color 0.15s;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.btn-back-login:hover {
  color: rgba(255, 255, 255, 0.7);
}

.forgot-success {
  text-align: center;
  padding: 1rem 0;
}

.forgot-success-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(105, 240, 174, 0.1);
  border: 1px solid rgba(105, 240, 174, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--green-accent);
}

.forgot-success h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.forgot-success p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* ── PASSWORD STRENGTH ── */
.str-bar {
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 4px;
}

.str-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s ease, background 0.3s;
}

.str-1 {
  background: #e53935;
}

.str-2 {
  background: #fb8c00;
}

.str-3 {
  background: #fdd835;
}

.str-4 {
  background: #7cb342;
}

.str-5 {
  background: var(--green-accent);
}

.str-label {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ════════════════════════════════════════
   APP LAYOUT
════════════════════════════════════════ */
.app {
  display: flex;
  min-height: 100vh;
  background: var(--gray-100);
}

.app.hidden {
  display: none;
}

/* ── SIDEBAR ── */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: var(--gray-900);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform var(--t-slow);
  overflow: hidden;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.sidebar-logo-text {
  display: flex;
  flex-direction: column;
}

.sidebar-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--gray-0);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.sidebar-sub {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--green-accent);
  text-transform: uppercase;
}

.sidebar-toggle-mobile {
  display: none;
  color: var(--gray-400);
  padding: 0.25rem;
  border-radius: var(--radius-sm);
}

.sidebar-nav {
  flex: 1;
  padding: 1rem 0.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.sidebar-nav::-webkit-scrollbar {
  width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.nav-section-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-600);
  padding: 0.75rem 0.75rem 0.375rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius-md);
  color: var(--gray-400);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--t-fast);
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--gray-200);
}

.nav-item.active {
  background: rgba(46, 125, 50, 0.25);
  color: var(--green-accent);
  border-left: none;
}

.nav-item.active svg {
  color: var(--green-accent);
}

.nav-item svg {
  flex-shrink: 0;
  opacity: 0.8;
}

.nav-badge {
  margin-left: auto;
  background: var(--green-700);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 99px;
  min-width: 18px;
  text-align: center;
}

.sidebar-bottom {
  padding: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  transition: background var(--t-fast);
  cursor: pointer;
}

.sidebar-user:hover {
  background: rgba(255, 255, 255, 0.05);
}

.sidebar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.sidebar-user-info {
  overflow: hidden;
}

.sidebar-user-name {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-200);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  display: block;
  font-size: 0.7rem;
  color: var(--gray-500);
}

.sidebar-logout {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  color: var(--gray-500);
  font-size: 0.8rem;
  font-weight: 500;
  transition: all var(--t-fast);
  width: 100%;
}

.sidebar-logout:hover {
  background: rgba(198, 40, 40, 0.15);
  color: #FF8A80;
}

/* ── TOPBAR ── */
.main-wrapper {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  flex: 1;
  transition: margin var(--t-slow);
}

.topbar {
  position: sticky;
  top: 0;
  height: var(--topbar-h);
  background: var(--gray-0);
  border-bottom: 1px solid var(--gray-150);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  gap: 1rem;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.topbar-menu-btn {
  display: none;
  color: var(--gray-600);
  padding: 0.375rem;
  border-radius: var(--radius-sm);
}

.topbar-menu-btn:hover {
  background: var(--gray-100);
}

.topbar-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gray-100);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 0.375rem 0.75rem;
  max-width: 280px;
  width: 100%;
  transition: all var(--t-base);
}

.topbar-search:focus-within {
  border-color: var(--green-400);
  background: var(--gray-0);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.topbar-search svg {
  color: var(--gray-400);
  flex-shrink: 0;
}

.topbar-search input {
  background: none;
  border: none;
  outline: none;
  font-size: 0.85rem;
  color: var(--gray-700);
  width: 100%;
}

.topbar-search input::placeholder {
  color: var(--gray-400);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.topbar-nav-tabs {
  display: flex;
  gap: 0.125rem;
}

.topbar-tab {
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-500);
  transition: all var(--t-fast);
  cursor: pointer;
}

.topbar-tab:hover {
  color: var(--gray-700);
  background: var(--gray-100);
}

.topbar-tab.active {
  color: var(--green-700);
  background: var(--green-50);
  font-weight: 600;
}

.topbar-notif {
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--gray-500);
  transition: all var(--t-fast);
}

.topbar-notif:hover {
  background: var(--gray-100);
  color: var(--gray-700);
}

.notif-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--green-accent-dark);
  border-radius: 50%;
  border: 2px solid var(--gray-0);
}

.topbar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  cursor: pointer;
  flex-shrink: 0;
}

/* ── MAIN CONTENT ── */
.main-content {
  flex: 1;
  padding: 2rem;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  animation: contentFade 0.25s ease;
}

@keyframes contentFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ════════════════════════════════════════
   PAGE HEADER
════════════════════════════════════════ */
.page-header {
  margin-bottom: 1.75rem;
}

.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--green-50);
  color: var(--green-700);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  border: 1px solid var(--green-100);
  margin-bottom: 0.625rem;
}

.page-title {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gray-900);
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 0.375rem;
}

.page-title span {
  color: var(--green-700);
}

.page-subtitle {
  font-size: 0.9rem;
  color: var(--gray-500);
  max-width: 540px;
}

.page-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* ════════════════════════════════════════
   CARDS & PANELS
════════════════════════════════════════ */
.card {
  background: var(--gray-0);
  border: 1px solid var(--gray-150);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t-base);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

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

.card-header-left {
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray-800);
  letter-spacing: -0.01em;
}

.card-subtitle {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 1px;
}

.card-body {
  padding: 1.25rem 1.5rem;
}

/* STAT CARDS */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--gray-0);
  border: 1px solid var(--gray-150);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--t-base);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.stat-card.green::before {
  background: linear-gradient(90deg, var(--green-700), var(--green-400));
}

.stat-card.blue::before {
  background: linear-gradient(90deg, #1565C0, #42A5F5);
}

.stat-card.orange::before {
  background: linear-gradient(90deg, #E65100, #FFB74D);
}

.stat-card.purple::before {
  background: linear-gradient(90deg, #4527A0, #9575CD);
}

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

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon.green {
  background: var(--green-50);
  color: var(--green-700);
}

.stat-icon.blue {
  background: #E3F2FD;
  color: #1565C0;
}

.stat-icon.orange {
  background: #FFF3E0;
  color: #E65100;
}

.stat-icon.purple {
  background: #EDE7F6;
  color: #4527A0;
}

.stat-info {
  flex: 1;
  min-width: 0;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.875rem;
  line-height: 1;
  color: var(--gray-900);
  letter-spacing: -0.04em;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--gray-500);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-change {
  font-size: 0.72rem;
  font-weight: 600;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.stat-change.up {
  color: var(--green-600);
}

.stat-change.down {
  color: var(--danger);
}

/* ════════════════════════════════════════
   TABLES
════════════════════════════════════════ */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table thead tr {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.data-table th {
  padding: 0.625rem 1rem;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gray-500);
  white-space: nowrap;
}

.data-table tbody tr {
  border-bottom: 1px solid var(--gray-100);
  transition: background var(--t-fast);
}

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

.data-table tbody tr:hover {
  background: var(--gray-50);
}

.data-table td {
  padding: 0.75rem 1rem;
  color: var(--gray-700);
  vertical-align: middle;
}

.data-table td strong {
  color: var(--gray-900);
  font-weight: 600;
}

/* ── TABLE ELEMENTS ── */
.td-avatar {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.td-avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.625rem;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.badge-green {
  background: var(--green-50);
  color: var(--green-700);
  border: 1px solid var(--green-100);
}

.badge-blue {
  background: #E3F2FD;
  color: #1565C0;
  border: 1px solid #BBDEFB;
}

.badge-orange {
  background: #FFF3E0;
  color: #E65100;
  border: 1px solid #FFE0B2;
}

.badge-purple {
  background: #EDE7F6;
  color: #4527A0;
  border: 1px solid #D1C4E9;
}

.badge-gray {
  background: var(--gray-100);
  color: var(--gray-600);
  border: 1px solid var(--gray-200);
}

.badge-red {
  background: var(--danger-light);
  color: var(--danger);
  border: 1px solid rgba(198, 40, 40, 0.2);
}

/* ── STAR RATING ── */
.star-rating {
  display: flex;
  gap: 2px;
  align-items: center;
}

.star-rating .star {
  width: 18px;
  height: 18px;
  color: var(--gray-300);
  cursor: pointer;
  transition: color var(--t-fast), transform var(--t-fast);
}

.star-rating .star.filled {
  color: #F9A825;
}

.star-rating .star:hover,
.star-rating .star.hover {
  color: #F9A825;
  transform: scale(1.15);
}

.star-rating-display .star {
  cursor: default;
  width: 16px;
  height: 16px;
}

/* ── SCORE BAR ── */
.score-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 120px;
}

.score-track {
  flex: 1;
  height: 6px;
  background: var(--gray-200);
  border-radius: 3px;
  overflow: hidden;
}

.score-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--green-500), var(--green-accent));
  transition: width var(--t-slow);
}

.score-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray-700);
  min-width: 24px;
}

/* ════════════════════════════════════════
   EVALUATION FORM (Step Wizard)
════════════════════════════════════════ */
.wizard-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 2rem;
  padding: 0;
}

.wizard-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  position: relative;
}

.wizard-step::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--gray-200);
  transition: background var(--t-base);
}

.wizard-step:last-child::after {
  display: none;
}

.wizard-step.completed::after {
  background: var(--green-500);
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  border: 2px solid var(--gray-200);
  background: var(--gray-0);
  color: var(--gray-500);
  transition: all var(--t-base);
  z-index: 1;
}

.wizard-step.active .step-circle {
  border-color: var(--green-700);
  background: var(--green-700);
  color: white;
  box-shadow: 0 0 0 4px rgba(27, 94, 32, 0.15);
}

.wizard-step.completed .step-circle {
  border-color: var(--green-500);
  background: var(--green-500);
  color: white;
}

.step-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray-400);
  white-space: nowrap;
  transition: color var(--t-base);
}

.wizard-step.active .step-label {
  color: var(--green-700);
}

.wizard-step.completed .step-label {
  color: var(--green-600);
}

.wizard-panel {
  display: none;
}

.wizard-panel.active {
  display: block;
  animation: contentFade 0.2s ease;
}

.panel-section {
  background: var(--gray-0);
  border: 1px solid var(--gray-150);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.panel-section-header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--gray-100);
}

.section-indicator {
  width: 4px;
  height: 20px;
  background: var(--green-700);
  border-radius: 2px;
}

.panel-section-header h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gray-900);
  letter-spacing: -0.02em;
}

/* PROJECT CARD PREVIEW */
.project-preview-card {
  background: linear-gradient(135deg, var(--green-700) 0%, var(--green-600) 100%);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  color: white;
  margin-top: 0.75rem;
  display: none;
  animation: slideUp 0.2s ease;
}

.project-preview-card.visible {
  display: block;
}

.project-preview-id {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  opacity: 0.7;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-preview-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.project-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-preview-tag {
  background: rgba(255, 255, 255, 0.15);
  padding: 0.2rem 0.625rem;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.members-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.75rem;
}

.member-chip {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.2rem 0.75rem;
  border-radius: 99px;
  font-size: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* STAR RATING INPUT (large) */
.rating-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rating-stars-large {
  display: flex;
  gap: 6px;
}

.rating-stars-large .star-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gray-200);
  background: var(--gray-50);
  color: var(--gray-300);
  transition: all var(--t-fast);
  cursor: pointer;
}

.rating-stars-large .star-btn svg {
  width: 22px;
  height: 22px;
}

.rating-stars-large .star-btn:hover,
.rating-stars-large .star-btn.hover {
  border-color: #F9A825;
  background: #FFF8E1;
  color: #F9A825;
}

.rating-stars-large .star-btn.filled {
  border-color: #F9A825;
  background: #FFF8E1;
  color: #F9A825;
}

.rating-label {
  font-size: 0.85rem;
  color: var(--gray-500);
  font-style: italic;
}

/* PHOTO UPLOAD */
.photo-upload-zone {
  border: 2px dashed var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  text-align: center;
  transition: all var(--t-base);
  cursor: pointer;
  background: var(--gray-50);
}

.photo-upload-zone:hover,
.photo-upload-zone.dragover {
  border-color: var(--green-400);
  background: var(--green-50);
}

.photo-upload-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.875rem;
}

.photo-upload-zone h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.25rem;
}

.photo-upload-zone p {
  font-size: 0.78rem;
  color: var(--gray-500);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.photo-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-thumb-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  transition: background var(--t-fast);
}

.photo-thumb-remove:hover {
  background: var(--danger);
}

.photo-add-btn {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  border: 2px dashed var(--gray-200);
  background: var(--gray-50);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  cursor: pointer;
  color: var(--gray-400);
  font-size: 0.72rem;
  font-weight: 500;
  transition: all var(--t-fast);
}

.photo-add-btn:hover {
  border-color: var(--green-400);
  color: var(--green-600);
  background: var(--green-50);
}

/* FINALIZE BUTTON */
.btn-finalize {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 2rem;
  background: var(--gray-900);
  color: white;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: all var(--t-base);
  text-transform: uppercase;
}

.btn-finalize:hover {
  background: var(--green-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-green);
}

.btn-finalize-note {
  font-size: 0.72rem;
  color: var(--gray-500);
  margin-top: 0.5rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ════════════════════════════════════════
   CHARTS (CSS-based)
════════════════════════════════════════ */
.chart-bar-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chart-bar-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chart-bar-label {
  font-size: 0.78rem;
  color: var(--gray-600);
  min-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chart-bar-track {
  flex: 1;
  height: 28px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}

.chart-bar-fill {
  height: 100%;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--green-700), var(--green-accent));
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 2rem;
}

.chart-bar-val {
  font-size: 0.72rem;
  font-weight: 700;
  color: white;
}

.chart-bar-count {
  font-size: 0.75rem;
  color: var(--gray-500);
  min-width: 32px;
  text-align: right;
}

/* ════════════════════════════════════════
   MODAL
════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.15s ease;
}

.modal-overlay.hidden {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal {
  background: var(--gray-0);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalSlide 0.2s ease;
}

.modal.modal-lg {
  max-width: 760px;
}

@keyframes modalSlide {
  from {
    opacity: 0;
    transform: translateY(-24px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

.modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--gray-900);
  letter-spacing: -0.02em;
}

.modal-close {
  color: var(--gray-400);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: all var(--t-fast);
}

.modal-close:hover {
  background: var(--gray-100);
  color: var(--gray-700);
}

.modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

/* ════════════════════════════════════════
   TOAST
════════════════════════════════════════ */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  z-index: 9999;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--gray-900);
  color: var(--gray-0);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  pointer-events: all;
  animation: toastIn 0.25s ease, toastOut 0.25s ease 2.75s forwards;
  max-width: 320px;
  border-left: 3px solid transparent;
}

.toast.success {
  border-left-color: var(--green-accent);
}

.toast.error {
  border-left-color: #FF5252;
}

.toast.info {
  border-left-color: #40C4FF;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

/* ════════════════════════════════════════
   MOBILE OVERLAY
════════════════════════════════════════ */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
}

/* ════════════════════════════════════════
   EMPTY STATES
════════════════════════════════════════ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  color: var(--gray-500);
}

.empty-state svg {
  color: var(--gray-300);
  margin-bottom: 1rem;
}

.empty-state h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.375rem;
}

.empty-state p {
  font-size: 0.85rem;
  max-width: 280px;
}

/* ════════════════════════════════════════
   MISC COMPONENTS
════════════════════════════════════════ */
.divider {
  height: 1px;
  background: var(--gray-150);
  margin: 1rem 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--gray-100);
  color: var(--gray-600);
  font-family: var(--font-mono);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

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

.flex-col {
  display: flex;
  flex-direction: column;
}

.gap-1 {
  gap: 0.25rem;
}

.gap-3 {
  gap: 0.75rem;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.text-sm {
  font-size: 0.85rem;
}

.text-xs {
  font-size: 0.75rem;
}

/* Avatar colors */
.av-green {
  background: linear-gradient(135deg, #1B5E20, #4CAF50);
}

.av-blue {
  background: linear-gradient(135deg, #1565C0, #42A5F5);
}

.av-orange {
  background: linear-gradient(135deg, #E65100, #FFA726);
}

.av-purple {
  background: linear-gradient(135deg, #4527A0, #9575CD);
}

.av-teal {
  background: linear-gradient(135deg, #00695C, #26A69A);
}

.av-red {
  background: linear-gradient(135deg, #B71C1C, #EF5350);
}

/* File import area */
.import-zone {
  border: 2px dashed var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--t-base);
  background: var(--gray-50);
}

.import-zone:hover {
  border-color: var(--green-400);
  background: var(--green-50);
}

.import-zone h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-700);
  margin: 0.5rem 0 0.25rem;
}

.import-zone p {
  font-size: 0.78rem;
  color: var(--gray-500);
}

/* Tabs component */
.tab-strip {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: 1.5rem;
}

.tab-strip-item {
  padding: 0.625rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-500);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--t-fast);
  cursor: pointer;
  white-space: nowrap;
}

.tab-strip-item:hover {
  color: var(--gray-700);
}

.tab-strip-item.active {
  color: var(--green-700);
  border-bottom-color: var(--green-700);
  font-weight: 600;
}

.tab-panel {
  display: none;
}

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

/* Filter row */
.filter-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.filter-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--gray-0);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--gray-700);
  transition: all var(--t-base);
}

.filter-input input,
.filter-input select {
  background: none;
  border: none;
  outline: none;
  font-size: 0.85rem;
  color: var(--gray-700);
  min-width: 140px;
}

.filter-input:focus-within {
  border-color: var(--green-400);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-overlay.show {
    display: block;
  }

  .sidebar-toggle-mobile {
    display: flex;
  }

  .main-wrapper {
    margin-left: 0;
  }

  .topbar-menu-btn {
    display: flex;
  }

  .topbar-nav-tabs {
    display: none;
  }

  .main-content {
    padding: 1.25rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .wizard-steps .step-label {
    display: none;
  }
}

@media (max-width: 600px) {
  .auth-container {
    padding: 1rem;
  }

  .auth-card {
    padding: 1.5rem 1.25rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .main-content {
    padding: 1rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .page-title {
    font-size: 1.625rem;
  }

  .data-table {
    font-size: 0.8rem;
  }

  .data-table th,
  .data-table td {
    padding: 0.5rem 0.75rem;
  }

  .filter-row {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-input {
    width: 100%;
  }
}

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

/* Print styles */
@media print {

  .sidebar,
  .topbar,
  .page-actions,
  .btn-primary,
  .btn-secondary {
    display: none !important;
  }

  .main-wrapper {
    margin-left: 0;
  }

  .main-content {
    padding: 0;
  }
}

/* ════════════════════════════════════════
   GOOGLE FONTS - Lato (UdeC Typography)
════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;600;700;900&display=swap');

/* ════════════════════════════════════════
   EVALUACIÓN 7 CRITERIOS — Estrellas
════════════════════════════════════════ */
.criteria-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 1.25rem 0;
}

.criterion-row {
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}

.criterion-row:hover {
  border-color: var(--green-400);
}

.criterion-row.filled {
  border-color: var(--udec-verde-institucional);
  background: var(--green-50);
}

.criterion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.625rem;
}

.criterion-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.criterion-score {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--udec-verde-institucional);
  min-width: 40px;
  text-align: right;
}

/* Star Rating */
.star-rating {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.star-rating input[type="radio"] {
  display: none;
}

.star-rating label {
  font-size: 1.6rem;
  color: var(--gray-300);
  cursor: pointer;
  transition: color var(--t-fast), transform var(--t-fast);
  line-height: 1;
  -webkit-user-select: none;
  user-select: none;
}

.star-rating label:hover {
  transform: scale(1.15);
}

/* Fill stars on hover and selection */
.star-rating:has(input:checked) label {
  color: var(--gray-300);
}

.star-rating input:checked~label {
  color: var(--gray-300) !important;
}

.star-rating label:hover,
.star-rating label:hover~label {
  color: var(--gray-300);
}

/* Forward fill - stars up to hovered/checked */
.star-rating input[value="5"]:checked~label:nth-of-type(1),
.star-rating input[value="5"]:checked~label:nth-of-type(2),
.star-rating input[value="5"]:checked~label:nth-of-type(3),
.star-rating input[value="5"]:checked~label:nth-of-type(4),
.star-rating input[value="5"]:checked~label:nth-of-type(5) {
  color: var(--udec-amarillo);
}

/* Simpler star fill approach using JS-managed class */
.star-btn {
  font-size: 1.75rem;
  color: var(--gray-300);
  cursor: pointer;
  transition: color var(--t-fast), transform var(--t-fast);
  padding: 2px;
  background: none;
  border: none;
}

.star-btn:hover {
  transform: scale(1.2);
}

.star-btn.active {
  color: var(--udec-amarillo);
}

.star-btn.hovered {
  color: var(--udec-dorado);
}

.score-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--udec-amarillo);
  color: var(--udec-verde-oscuro);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
}

.avg-score-big {
  font-size: 3rem;
  font-weight: 900;
  color: var(--udec-verde-institucional);
  line-height: 1;
}

.avg-score-label {
  font-size: 0.75rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ════════════════════════════════════════
   CÁMARA — Evidencia fotográfica
════════════════════════════════════════ */
.camera-section {
  background: var(--gray-800);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.camera-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
  background: rgba(0, 0, 0, 0.4);
}

.camera-header h4 {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.camera-body {
  position: relative;
  min-height: 260px;
  background: #000;
}

#camera-video {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

#camera-canvas {
  display: none;
}

.camera-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.75);
}

.camera-overlay-icon {
  font-size: 2.5rem;
  opacity: 0.6;
}

.camera-overlay p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  text-align: center;
  padding: 0 1rem;
}

.camera-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
}

.btn-camera {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--udec-verde-institucional);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: all var(--t-base);
  box-shadow: 0 4px 16px rgba(0, 123, 62, 0.5);
}

.btn-camera:hover {
  background: var(--udec-verde-oscuro);
  transform: scale(1.05);
}

.btn-camera.capture {
  background: #fff;
  color: var(--udec-verde-oscuro);
  width: 64px;
  height: 64px;
  font-size: 1.6rem;
}

.btn-camera.capture:hover {
  background: var(--udec-amarillo);
}

.btn-camera:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.photo-preview {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--udec-verde-claro);
}

.photo-preview img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.photo-preview-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

.camera-error {
  padding: 0.75rem 1rem;
  background: rgba(198, 40, 40, 0.1);
  border: 1px solid rgba(198, 40, 40, 0.3);
  border-radius: var(--radius-md);
  color: var(--danger);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ════════════════════════════════════════
   EQUIPOS — Team Cards
════════════════════════════════════════ */
.teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.team-card {
  background: var(--gray-0);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--t-base), border-color var(--t-base), transform var(--t-base);
}

.team-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--udec-verde-institucional);
  transform: translateY(-2px);
}

.team-card-header {
  padding: 1.25rem;
  background: linear-gradient(135deg, var(--udec-verde-oscuro), var(--udec-verde-institucional));
  position: relative;
}

.team-card-header h3 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.team-card-header .team-docente {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.team-count-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--udec-amarillo);
  color: var(--udec-verde-oscuro);
  border-radius: 20px;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.team-card-body {
  padding: 1rem 1.25rem;
}

.team-members-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 140px;
  overflow-y: auto;
}

.team-member-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.85rem;
  color: var(--gray-700);
}

.member-avatar-sm {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.team-card-footer {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--gray-150);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.team-project-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--udec-verde-institucional);
  font-weight: 600;
  background: var(--green-50);
  padding: 0.25rem 0.625rem;
  border-radius: 20px;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ════════════════════════════════════════
   PRESENTACIÓN — Visor de archivos
════════════════════════════════════════ */
.presentation-viewer {
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.presentation-viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
  background: var(--gray-0);
  border-bottom: 1px solid var(--gray-200);
}

.presentation-viewer iframe {
  width: 100%;
  height: 480px;
  border: none;
  display: block;
}

.presentation-viewer .ppt-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px;
  gap: 1rem;
  color: var(--gray-500);
}

.ppt-icon {
  font-size: 3rem;
}

.upload-zone {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--t-base);
  background: var(--gray-50);
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--udec-verde-institucional);
  background: var(--green-50);
}

.upload-zone-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.6;
}

.upload-zone p {
  color: var(--gray-600);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.upload-zone small {
  color: var(--gray-400);
  font-size: 0.78rem;
}

/* ════════════════════════════════════════
   IDENTIDAD UdeC — Header banner
════════════════════════════════════════ */
.udec-brand-bar {
  background: linear-gradient(135deg, var(--udec-verde-oscuro) 0%, var(--udec-verde-institucional) 100%);
  padding: 0.5rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.udec-brand-bar .brand-name {
  color: var(--udec-amarillo);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.udec-brand-bar .brand-subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.7rem;
}

/* Sidebar UdeC theming */
.sidebar-logo-title {
  color: var(--udec-amarillo) !important;
}

.sidebar-logo-sub {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* Nav active state con amarillo UdeC */
.sidebar-nav-item.active {
  background: rgba(251, 225, 34, 0.15) !important;
  color: var(--udec-amarillo) !important;
}

.sidebar-nav-item.active .nav-icon {
  color: var(--udec-amarillo) !important;
}

/* Topbar accent */
.topbar {
  border-bottom: 2px solid var(--udec-verde-institucional);
}

/* ════════════════════════════════════════
   CONFIGURACIÓN SMTP — Panel admin
════════════════════════════════════════ */
.config-section {
  background: var(--gray-0);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.config-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--udec-verde-oscuro);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--udec-verde-claro);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.config-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

/* ════════════════════════════════════════
   COMENTARIOS CUALITATIVOS
════════════════════════════════════════ */
.qualitative-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}

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

.qualitative-item label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--udec-verde-oscuro);
  margin-bottom: 0.4rem;
}

.qualitative-item textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-family: var(--font-body);
  resize: vertical;
  min-height: 72px;
  transition: border-color var(--t-base);
  color: var(--gray-800);
  background: var(--gray-50);
}

.qualitative-item textarea:focus {
  outline: none;
  border-color: var(--udec-verde-institucional);
  box-shadow: 0 0 0 3px rgba(0, 123, 62, 0.1);
}

/* ════════════════════════════════════════
   REPORTES — Tabla extendida
════════════════════════════════════════ */
.criteria-mini-scores {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.criteria-mini-score {
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-weight: 600;
  background: var(--green-50);
  color: var(--udec-verde-oscuro);
}

.criteria-mini-score.low {
  background: var(--danger-light);
  color: var(--danger);
}

.criteria-mini-score.mid {
  background: var(--warning-light);
  color: var(--warning);
}

.criteria-mini-score.high {
  background: var(--green-50);
  color: var(--udec-verde-oscuro);
}

.report-photo-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid var(--gray-200);
  cursor: pointer;
  transition: transform var(--t-fast);
}

.report-photo-thumb:hover {
  transform: scale(1.08);
}

/* ════════════════════════════════════════
   EVALUACIÓN RESUMEN — Resultado
════════════════════════════════════════ */
.eval-success-card {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, var(--green-50), #fff);
  border: 2px solid var(--udec-verde-claro);
  border-radius: var(--radius-xl);
}

.eval-success-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.eval-success-score {
  font-size: 4rem;
  font-weight: 900;
  color: var(--udec-verde-institucional);
  line-height: 1;
}

.eval-success-label {
  color: var(--gray-500);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.eval-stars-row {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin: 0.75rem 0;
  font-size: 1.5rem;
}

/* ════════════════════════════════════════
   PROYECTO CARD — Enhanced
════════════════════════════════════════ */
.project-card {
  background: var(--gray-0);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--t-base);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: var(--udec-verde-institucional);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.project-card-header {
  padding: 1.25rem;
  background: linear-gradient(135deg, var(--udec-verde-oscuro), var(--udec-verde-institucional));
  position: relative;
}

.project-card-id {
  font-size: 0.7rem;
  color: var(--udec-amarillo);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.project-card-title {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.project-card-body {
  padding: 1rem 1.25rem;
  flex: 1;
}

.project-card-footer {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--gray-150);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.project-state-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}

.state-activo {
  background: var(--green-50);
  color: var(--udec-verde-oscuro);
}

.state-finalizado {
  background: var(--info-light);
  color: var(--info);
}

.state-revision {
  background: var(--warning-light);
  color: var(--warning);
}

.project-rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--udec-verde-institucional);
}

.project-rating .star {
  color: var(--udec-amarillo);
}

/* ════════════════════════════════════════
   WIZARD STEPS — Evaluation flow
════════════════════════════════════════ */
.eval-wizard-step {
  display: none;
}

.eval-wizard-step.active {
  display: block;
  animation: contentFade 0.3s ease;
}

.wizard-progress {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  padding: 0 0.5rem;
}

.wizard-step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gray-200);
  color: var(--gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: all var(--t-base);
}

.wizard-step-dot.active {
  background: var(--udec-verde-institucional);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(0, 123, 62, 0.2);
}

.wizard-step-dot.done {
  background: var(--udec-verde-claro);
  color: var(--udec-verde-oscuro);
}

.wizard-step-line {
  flex: 1;
  height: 2px;
  background: var(--gray-200);
  margin: 0 0.5rem;
  transition: background var(--t-base);
}

.wizard-step-line.done {
  background: var(--udec-verde-claro);
}

/* ════════════════════════════════════════
   LOADING STATE
════════════════════════════════════════ */
.page-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  gap: 1rem;
  color: var(--gray-400);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--udec-verde-institucional);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ════════════════════════════════════════
   RESPONSIVE additions
════════════════════════════════════════ */
@media (max-width: 640px) {
  .teams-grid {
    grid-template-columns: 1fr;
  }

  .camera-body {
    min-height: 200px;
  }

  #camera-video {
    height: 200px;
  }

  .criteria-grid {
    gap: 0.875rem;
  }

  .star-btn {
    font-size: 1.5rem;
  }
}