/* ============================================================
   EVENTSURI STUDIO — GLOBAL DESIGN SYSTEM
   Brand Colors: Lime #D7F008 | Navy #0F172A | Slate #334155
   ============================================================ */

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

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  /* Brand */
  --lime:           #D7F008;
  --lime-dark:      #B8D607;
  --lime-light:     #E8F94A;
  --lime-pale:      #F5FDB0;
  --navy:           #0F172A;
  --navy-light:     #1E293B;
  --navy-lighter:   #334155;

  /* Neutrals */
  --bg:             #F8FAFC;
  --card:           #FFFFFF;
  --border:         #E2E8F0;
  --divider:        #CBD5E1;

  /* Text */
  --text-primary:   #0F172A;
  --text-secondary: #475569;
  --text-muted:     #94A3B8;
  --text-white:     #FFFFFF;

  /* Semantic */
  --success:        #22C55E;
  --warning:        #F59E0B;
  --error:          #EF4444;
  --info:           #3B82F6;

  /* Accent */
  --purple:         #7C3AED;
  --cyan:           #06B6D4;
  --orange:         #F97316;
  --pink:           #EC4899;

  /* Shadows */
  --shadow-xs:  0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-sm:  0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md:  0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg:  0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl:  0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

  /* Radius */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  14px;
  --radius-xl:  20px;
  --radius-2xl: 28px;
  --radius-full:9999px;

  /* Transitions */
  --transition: all 0.2s ease;
  --transition-slow: all 0.35s ease;

  /* Fonts */
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;

  /* Sidebar */
  --sidebar-width: 260px;
  --sidebar-collapsed: 72px;
  --topbar-height: 64px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, svg {
  max-width: 100%;
  display: block;
}

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

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

ul, ol { list-style: none; }

/* ── Typography ───────────────────────────────────────────── */
.font-display { font-family: var(--font-display); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.text-xs   { font-size: 0.75rem;   line-height: 1.5; }
.text-sm   { font-size: 0.875rem;  line-height: 1.5; }
.text-base { font-size: 1rem;      line-height: 1.6; }
.text-lg   { font-size: 1.125rem;  line-height: 1.5; }
.text-xl   { font-size: 1.25rem;   line-height: 1.4; }
.text-2xl  { font-size: 1.5rem;    line-height: 1.3; }
.text-3xl  { font-size: 1.875rem;  line-height: 1.25; }
.text-4xl  { font-size: 2.25rem;   line-height: 1.2; }
.text-5xl  { font-size: 3rem;      line-height: 1.1; }
.text-6xl  { font-size: 3.75rem;   line-height: 1.05; }

.font-light    { font-weight: 300; }
.font-normal   { font-weight: 400; }
.font-medium   { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }
.font-extrabold{ font-weight: 800; }
.font-black    { font-weight: 900; }

.text-primary   { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted     { color: var(--text-muted); }
.text-white     { color: #fff; }
.text-lime      { color: var(--lime); }
.text-navy      { color: var(--navy); }
.text-success   { color: var(--success); }
.text-error     { color: var(--error); }
.text-warning   { color: var(--warning); }
.text-info      { color: var(--info); }

/* ── Layout Utilities ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-sm {
    
  max-width: 768px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.flex          { display: flex; }
.flex-col      { flex-direction: column; }
.flex-wrap     { flex-wrap: wrap; }
.items-center  { align-items: center; }
.items-start   { align-items: flex-start; }
.items-end     { align-items: flex-end; }
.justify-center{ justify-content: center; }
.justify-between{justify-content: space-between; }

.justify-end   { justify-content: flex-end; }
.flex-1        { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.gap-1  { gap: 0.25rem; }
.gap-2  { gap: 0.5rem;  }
.gap-3  { gap: 0.75rem; }
.gap-4  { gap: 1rem;    }
.gap-5  { gap: 1.25rem; }
.gap-6  { gap: 1.5rem;  }
.gap-8  { gap: 2rem;    }
.gap-10 { gap: 2.5rem;  }
.gap-12 { gap: 3rem;    }

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

.w-full   { width: 100%; }
.h-full   { height: 100%; }
.min-h-screen { min-height: 100vh; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed    { position: fixed; }
.sticky   { position: sticky; }
.inset-0  { top:0;right:0;bottom:0;left:0; }
.z-10     { z-index: 10; }
.z-20     { z-index: 20; }
.z-50     { z-index: 50; }
.z-100    { z-index: 100; }

.overflow-hidden { overflow: hidden; }
.overflow-auto   { overflow: auto; }
.overflow-y-auto { overflow-y: auto; }

.hidden  { display: none; }
.block   { display: block; }
.inline  { display: inline; }
.inline-flex { display: inline-flex; }
.inline-block{ display: inline-block; }

/* Spacing */
.p-0  { padding: 0; }
.p-1  { padding: 0.25rem; }
.p-2  { padding: 0.5rem; }
.p-3  { padding: 0.75rem; }
.p-4  { padding: 1rem; }
.p-5  { padding: 1.25rem; }
.p-6  { padding: 1.5rem; }
.p-8  { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.p-12 { padding: 3rem; }

.px-2  { padding-left: 0.5rem;  padding-right: 0.5rem; }
.px-3  { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4  { padding-left: 1rem;    padding-right: 1rem; }
.px-5  { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6  { padding-left: 1.5rem;  padding-right: 1.5rem; }
.px-8  { padding-left: 2rem;    padding-right: 2rem; }

.py-2  { padding-top: 0.5rem;  padding-bottom: 0.5rem; }
.py-3  { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4  { padding-top: 1rem;    padding-bottom: 1rem; }
.py-5  { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6  { padding-top: 1.5rem;  padding-bottom: 1.5rem; }
.py-8  { padding-top: 2rem;    padding-bottom: 2rem; }
.py-12 { padding-top: 3rem;    padding-bottom: 3rem; }
.py-16 { padding-top: 4rem;    padding-bottom: 4rem; }
.py-20 { padding-top: 5rem;    padding-bottom: 5rem; }
.py-24 { padding-top: 6rem;    padding-bottom: 6rem; }

.mt-1  { margin-top: 0.25rem; }
.mt-2  { margin-top: 0.5rem; }
.mt-3  { margin-top: 0.75rem; }
.mt-4  { margin-top: 1rem; }
.mt-6  { margin-top: 1.5rem; }
.mt-8  { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mb-1  { margin-bottom: 0.25rem; }
.mb-2  { margin-bottom: 0.5rem; }
.mb-3  { margin-bottom: 0.75rem; }
.mb-4  { margin-bottom: 1rem; }
.mb-6  { margin-bottom: 1.5rem; }
.mb-8  { margin-bottom: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Text alignment */
.text-left   { text-align: left; }
.text-center { text-align: center; }
.text-right  { text-align: right; }

/* Border radius */
.rounded-sm   { border-radius: var(--radius-sm); }
.rounded      { border-radius: var(--radius-md); }
.rounded-lg   { border-radius: var(--radius-lg); }
.rounded-xl   { border-radius: var(--radius-xl); }
.rounded-2xl  { border-radius: var(--radius-2xl); }
.rounded-full { border-radius: var(--radius-full); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font-sans);
  line-height: 1;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-sm {
  padding: 0.4375rem 0.875rem;
  font-size: 0.8125rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn-xl {
  padding: 1rem 2rem;
  font-size: 1.0625rem;
  border-radius: var(--radius-lg);
}

/* Primary — Lime */
.btn-primary {
  background: var(--lime);
  color: var(--navy);
  border-color: var(--lime);
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.btn-primary:hover {
  background: var(--lime-dark);
  border-color: var(--lime-dark);
  box-shadow: 0 4px 12px rgba(215, 240, 8, 0.35);
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Secondary */
.btn-secondary {
  background: var(--card);
  color: var(--text-primary);
  border-color: var(--border);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover {
  background: var(--bg);
  border-color: var(--divider);
  box-shadow: var(--shadow-sm);
}

/* Dark */
.btn-dark {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.btn-dark:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
  box-shadow: 0 4px 12px rgba(15,23,42,0.3);
  transform: translateY(-1px);
}

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}
.btn-ghost:hover {
  background: var(--bg);
  color: var(--text-primary);
}

/* Danger */
.btn-danger {
  background: var(--error);
  color: #fff;
  border-color: var(--error);
}
.btn-danger:hover {
  background: #dc2626;
  box-shadow: 0 4px 12px rgba(239,68,68,0.3);
  transform: translateY(-1px);
}

/* Icon button */
.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-md);
}
.btn-icon-sm {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: var(--radius-sm);
}

/* Loading spinner on button */
.btn.loading::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 6px;
}

/* ── Form Elements ────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.form-label .required {
  color: var(--error);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.6875rem 0.875rem;
  font-size: 0.9375rem;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: var(--divider);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(215, 240, 8, 0.15);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-input-icon {
  position: relative;
}
.form-input-icon .form-input {
  padding-left: 2.625rem;
}
.form-input-icon .icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
}
.form-input-icon .icon-right {
  left: auto;
  right: 0.875rem;
  cursor: pointer;
  pointer-events: all;
}
.form-input-icon .form-input.has-right-icon {
  padding-right: 2.625rem;
}

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

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394A3B8' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-error {
  font-size: 0.8125rem;
  color: var(--error);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.form-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Checkbox */
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 1.5px solid var(--border);
  border-radius: 5px;
  background: var(--card);
  cursor: pointer;
  transition: var(--transition);
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.form-checkbox input[type="checkbox"]:checked {
  background: var(--lime);
  border-color: var(--lime);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='9' viewBox='0 0 11 9'%3E%3Cpath d='M1 4l3.5 3.5L10 1' stroke='%230F172A' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.form-checkbox input[type="checkbox"]:focus {
  box-shadow: 0 0 0 3px rgba(215, 240, 8, 0.2);
}

.form-checkbox label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1.5;
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}

.card-hover {
  transition: var(--transition);
  cursor: pointer;
}
.card-hover:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--divider);
  transform: translateY(-2px);
}

.card-body { padding: 1.5rem; }
.card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* ── Badges ───────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  white-space: nowrap;
  text-transform: capitalize;
}

.badge-green  { background: #dcfce7; color: #15803d; }
.badge-red    { background: #fee2e2; color: #dc2626; }
.badge-yellow { background: #fef9c3; color: #a16207; }
.badge-blue   { background: #dbeafe; color: #1d4ed8; }
.badge-purple { background: #ede9fe; color: #6d28d9; }
.badge-gray   { background: #f1f5f9; color: #475569; }
.badge-orange { background: #ffedd5; color: #c2410c; }
.badge-lime   { background: #ecfccb; color: #3f6212; }
.badge-navy   { background: var(--navy); color: var(--lime); }

/* Status dot */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.status-dot.green  { background: var(--success); }
.status-dot.red    { background: var(--error); }
.status-dot.yellow { background: var(--warning); }
.status-dot.gray   { background: var(--text-muted); }

/* ── Alerts ───────────────────────────────────────────────── */
.alert {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid;
  font-size: 0.9375rem;
}
.alert-success { background:#f0fdf4; border-color:#bbf7d0; color:#15803d; }
.alert-error   { background:#fef2f2; border-color:#fecaca; color:#dc2626; }
.alert-warning { background:#fffbeb; border-color:#fde68a; color:#92400e; }
.alert-info    { background:#eff6ff; border-color:#bfdbfe; color:#1e40af; }

/* ── Flash Notification ───────────────────────────────────── */
.flash-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 380px;
  width: 100%;
}
.flash-message {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  animation: slideInRight 0.3s ease;
}
.flash-message.success { border-left: 4px solid var(--success); }
.flash-message.error   { border-left: 4px solid var(--error); }
.flash-message.warning { border-left: 4px solid var(--warning); }
.flash-message.info    { border-left: 4px solid var(--info); }
.flash-message .flash-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}
.flash-message.success .flash-icon { color: var(--success); }
.flash-message.error   .flash-icon { color: var(--error); }
.flash-message.warning .flash-icon { color: var(--warning); }
.flash-message.info    .flash-icon { color: var(--info); }
.flash-message .flash-text { flex: 1; }
.flash-message .flash-title {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.flash-message .flash-body {
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.flash-close {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.flash-close:hover {
  background: var(--bg);
  color: var(--text-primary);
}

/* ── Divider ──────────────────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.8125rem;
}
.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Avatar ───────────────────────────────────────────────── */
.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  font-family: var(--font-display);
  flex-shrink: 0;
  overflow: hidden;
  background: var(--navy-light);
  color: var(--lime);
  text-transform: uppercase;
}
.avatar-xs  { width: 24px; height: 24px; font-size: 0.6875rem; }
.avatar-sm  { width: 32px; height: 32px; font-size: 0.75rem; }
.avatar-md  { width: 40px; height: 40px; font-size: 0.9375rem; }
.avatar-lg  { width: 48px; height: 48px; font-size: 1.125rem; }
.avatar-xl  { width: 64px; height: 64px; font-size: 1.5rem; }
.avatar-2xl { width: 80px; height: 80px; font-size: 1.875rem; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ── Spinner ──────────────────────────────────────────────── */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--lime);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.spinner-sm { width: 16px; height: 16px; }
.spinner-lg { width: 32px; height: 32px; border-width: 3px; }

/* ── Progress Bar ─────────────────────────────────────────── */
.progress-bar {
  height: 6px;
  background: var(--bg);
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid var(--border);
}
.progress-fill {
  height: 100%;
  background: var(--lime);
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes slideInRight {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

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

@keyframes slideInDown {
  from { transform: translateY(-20px); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

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

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes pulse-lime {
  0%, 100% { box-shadow: 0 0 0 0 rgba(215, 240, 8, 0.4); }
  50%       { box-shadow: 0 0 0 8px rgba(215, 240, 8, 0); }
}

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

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

.animate-fadeIn      { animation: fadeIn 0.4s ease; }
.animate-fadeInScale { animation: fadeInScale 0.3s ease; }
.animate-slideInUp   { animation: slideInUp 0.4s ease; }
.animate-float       { animation: float 3s ease-in-out infinite; }

/* ── Skeleton Loading ─────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg,
    var(--border) 25%,
    var(--divider) 50%,
    var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ── Tooltip ──────────────────────────────────────────────── */
[data-tooltip] {
  position: relative;
  cursor: help;
}
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.375rem 0.625rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 9999;
}
[data-tooltip]:hover::after {
  opacity: 1;
}

/* ── Auth Layout ──────────────────────────────────────────── */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  background: var(--bg);
}

.auth-panel-left {
  width: 50%;
  background: var(--navy);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 3rem;
}

.auth-panel-right {
  width: 50%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 3rem;
}

.auth-form-wrapper {
  max-width: 440px;
  width: 100%;
  margin: auto;
}

/* Auth grid pattern */
.auth-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Auth gradient orb */
.auth-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}
.auth-orb-1 {
  width: 350px;
  height: 350px;
  background: var(--lime);
  top: -100px;
  right: -100px;
}
.auth-orb-2 {
  width: 250px;
  height: 250px;
  background: var(--cyan);
  bottom: 50px;
  left: -80px;
}

/* Auth social button */
.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.6875rem 1rem;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}
.btn-social:hover {
  background: var(--bg);
  border-color: var(--divider);
  box-shadow: var(--shadow-sm);
}

/* ── Onboarding ───────────────────────────────────────────── */
.onboarding-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.onboarding-topbar {
  height: 64px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 50;
}

.onboarding-progress {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.onboarding-step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: var(--transition);
}
.onboarding-step-dot.active {
  width: 28px;
  border-radius: var(--radius-full);
  background: var(--lime);
}
.onboarding-step-dot.completed {
  background: var(--lime);
  opacity: 0.5;
}

.onboarding-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}

.onboarding-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 580px;
  padding: 2.5rem;
  animation: fadeInScale 0.35s ease;
}

.onboarding-step-number {
  width: 44px;
  height: 44px;
  background: var(--lime);
  color: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.125rem;
  font-family: var(--font-display);
  margin-bottom: 1.5rem;
}

/* Workspace type cards */
.type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.type-card {
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.type-card:hover {
  border-color: var(--lime);
  background: #fefff0;
}

.type-card.selected {
  border-color: var(--lime);
  background: #fefff0;
  box-shadow: 0 0 0 3px rgba(215, 240, 8, 0.15);
}

.type-card-icon {
  width: 44px;
  height: 44px;
  background: var(--bg);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
}

.type-card.selected .type-card-icon {
  background: var(--lime);
}

/* ── Studio Layout ────────────────────────────────────────── */
.studio-wrapper {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
}

/* Sidebar */
.studio-sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  background: var(--navy);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 100;
  transition: var(--transition-slow);
  overflow: hidden;
}

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

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

.sidebar-logo-mark {
  width: 34px;
  height: 34px;
  background: var(--lime);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.125rem;
  font-family: var(--font-display);
  color: var(--navy);
  flex-shrink: 0;
}

.sidebar-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.sidebar-logo-name {
  font-size: 0.9375rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: #fff;
  letter-spacing: -0.01em;
}
.sidebar-logo-sub {
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Workspace switcher */
.workspace-switcher {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.workspace-switcher-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.625rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}
.workspace-switcher-btn:hover {
  background: rgba(255,255,255,0.08);
}

.workspace-avatar {
  width: 28px;
  height: 28px;
  background: var(--lime);
  color: var(--navy);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
  font-family: var(--font-display);
}

.workspace-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  flex: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.workspace-chevron {
  color: rgba(255,255,255,0.4);
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Sidebar navigation */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 0.75rem;
  scrollbar-width: none;
}
.sidebar-nav::-webkit-scrollbar { display: none; }

.sidebar-nav-section {
  margin-bottom: 0.25rem;
}

.sidebar-nav-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  padding: 0.625rem 0.625rem 0.375rem;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5625rem 0.625rem;
  border-radius: var(--radius-md);
  color: rgba(255,255,255,0.55);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  position: relative;
  white-space: nowrap;
  overflow: hidden;
}

.sidebar-nav-item:hover {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.85);
}

.sidebar-nav-item.active {
  background: rgba(215, 240, 8, 0.1);
  color: var(--lime);
}

.sidebar-nav-item.active .sidebar-nav-icon {
  color: var(--lime);
}

.sidebar-nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-nav-badge {
  margin-left: auto;
  background: rgba(215, 240, 8, 0.15);
  color: var(--lime);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-full);
}

/* Sidebar footer */
.sidebar-footer {
  padding: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

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

.sidebar-user-info {
  flex: 1;
  overflow: hidden;
}
.sidebar-user-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-user-role {
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Main content */
.studio-main {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Topbar */
.studio-topbar {
  height: var(--topbar-height);
  background: var(--card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 50;
  gap: 1rem;
}

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

.topbar-search {
  position: relative;
  max-width: 320px;
  width: 100%;
}
.topbar-search input {
  padding: 0.5rem 0.875rem 0.5rem 2.25rem;
  font-size: 0.875rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  width: 100%;
  outline: none;
  color: var(--text-primary);
  transition: var(--transition);
}
.topbar-search input:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(215, 240, 8, 0.12);
  background: var(--card);
}
.topbar-search input::placeholder { color: var(--text-muted); }
.topbar-search .search-icon {
  position: absolute;
  left: 0.625rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

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

.topbar-icon-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}
.topbar-icon-btn:hover {
  background: var(--bg);
  color: var(--text-primary);
}

.topbar-notif-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  background: var(--error);
  border-radius: 50%;
  border: 2px solid var(--card);
}

/* Studio page */
.studio-page {
  flex: 1;
  padding: 2rem 2rem;
  max-width: 100%;
}

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

.page-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}

.page-subtitle {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.breadcrumb a {
  color: var(--text-muted);
  transition: color 0.15s;
}
.breadcrumb a:hover { color: var(--text-primary); }
.breadcrumb .sep {
  color: var(--border);
  font-size: 0.75rem;
}
.breadcrumb .current { color: var(--text-secondary); }

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

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: var(--transition);
}
.stat-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--divider);
}

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

.stat-value {
  font-size: 1.625rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-change {
  font-size: 0.8125rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.stat-change.up   { color: var(--success); }
.stat-change.down { color: var(--error); }
.stat-change.neutral { color: var(--text-muted); }

/* ── Tables ───────────────────────────────────────────────── */
.table-wrapper {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.table-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.table-scroll { overflow-x: auto; }

table.data-table {
  width: 100%;
  border-collapse: collapse;
}
table.data-table th {
  padding: 0.75rem 1.25rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
table.data-table td {
  padding: 0.875rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
table.data-table tbody tr:last-child td { border-bottom: none; }
table.data-table tbody tr:hover td {
  background: rgba(215, 240, 8, 0.03);
}

/* ── Modal ────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.2s ease;
}

.modal {
  background: var(--card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  animation: fadeInScale 0.25s ease;
}

.modal-lg { max-width: 720px; }
.modal-xl { max-width: 900px; }

.modal-header {
  padding: 1.5rem 1.5rem 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.modal-title {
  font-size: 1.125rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
.modal-close:hover {
  background: var(--border);
  color: var(--text-primary);
}
.modal-body  { padding: 1.5rem; }
.modal-footer {
  padding: 0 1.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* ── Empty State ──────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4rem 2rem;
}
.empty-icon {
  width: 80px;
  height: 80px;
  background: var(--bg);
  border: 2px dashed var(--border);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 2rem;
}
.empty-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.empty-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-width: 320px;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* ── Scrollbar styling ────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: var(--divider); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .studio-sidebar {
    transform: translateX(-100%);
  }
  .studio-sidebar.open {
    transform: translateX(0);
  }
  .studio-main {
    margin-left: 0;
  }
  .auth-panel-left {
    display: none;
  }
  .auth-panel-right {
    width: 100%;
    padding: 2rem 1.5rem;
  }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --topbar-height: 56px;
  }
  .studio-page { padding: 1.25rem 1rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .page-header { flex-direction: column; }
  .onboarding-card { padding: 1.75rem 1.25rem; }
  .type-grid { grid-template-columns: repeat(2, 1fr); }
  table.data-table th,
  table.data-table td { padding: 0.75rem 1rem; }
  .flash-container {
    top: 1rem;
    right: 1rem;
    left: 1rem;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .type-grid { grid-template-columns: 1fr; }
  .btn-xl { padding: 0.875rem 1.5rem; }
  h1 { font-size: 1.75rem; }
  .onboarding-content { padding: 1.5rem 1rem; }
}

/* ── Sidebar overlay (mobile) ─────────────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 99;
  backdrop-filter: blur(2px);
}
@media (max-width: 1024px) {
  .sidebar-overlay.show { display: block; }
}

/* ── Utility ──────────────────────────────────────────────── */
.truncate {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.no-select { user-select: none; }
.cursor-pointer { cursor: pointer; }
.cursor-default  { cursor: default; }
.opacity-0    { opacity: 0; }
.opacity-50   { opacity: 0.5; }
.opacity-100  { opacity: 1; }
.pointer-events-none { pointer-events: none; }

/* Border */
.border     { border: 1px solid var(--border); }
.border-top { border-top: 1px solid var(--border); }
.border-bottom { border-bottom: 1px solid var(--border); }

/* BG */
.bg-white  { background: #fff; }
.bg-bg     { background: var(--bg); }
.bg-navy   { background: var(--navy); }
.bg-lime   { background: var(--lime); }
.bg-lime-pale { background: var(--lime-pale); }

/* Width shortcuts */
.w-8   { width: 2rem;   height: 2rem; }
.w-10  { width: 2.5rem; height: 2.5rem; }
.w-12  { width: 3rem;   height: 3rem; }
.w-16  { width: 4rem;   height: 4rem; }

/* Line clamp */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   AUTH REDESIGN — Premium Split Layout
   Light theme | No emojis | No dark backgrounds on forms
   ============================================================ */

/* ── Auth Wrapper ─────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  background: #ffffff;
  font-family: var(--font-sans);
}

/* ── LEFT PANEL — Form Side ───────────────────────────────── */
.auth-left {
  width: 480px;
  min-width: 480px;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: #ffffff;
  position: relative;
  z-index: 2;
  overflow-y: auto;
  border-right: 1px solid #F1F5F9;
}

.auth-left-inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 2.5rem 3rem;
}

/* ── RIGHT PANEL — Brand Side ─────────────────────────────── */
.auth-right {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #F0F9FF 0%, #E0F2FE 40%, #BAE6FD 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Subtle grid on right panel */
.auth-right-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14,165,233,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,165,233,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* Glow circles */
.auth-right-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
}
.auth-right-glow-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(215,240,8,0.18) 0%, transparent 70%);
  top: -80px;
  right: -80px;
}
.auth-right-glow-2 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(56,189,248,0.2) 0%, transparent 70%);
  bottom: -60px;
  left: -40px;
}

/* Right panel content */
.auth-right-content {
  position: relative;
  z-index: 2;
  padding: 3rem;
  max-width: 540px;
  width: 100%;
}

/* ── Auth Logo ────────────────────────────────────────────── */
.auth-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  margin-bottom: 2.75rem;
}

.auth-logo img {
  height: 32px;
  width: auto;
  display: block;
}

.auth-logo-fallback {
  height: 34px;
  padding: 0 10px;
  background: var(--navy);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-logo-fallback span {
  font-size: 0.875rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--lime);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* ── Auth Heading ─────────────────────────────────────────── */
.auth-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.375rem;
  letter-spacing: 0.01em;
}

.auth-title {
  font-size: 1.875rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--text-primary);
  letter-spacing: -0.035em;
  line-height: 1.2;
  margin-bottom: 0.625rem;
}

.auth-subtitle {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* ── Social Buttons ───────────────────────────────────────── */
.auth-social-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.625rem;
  margin-bottom: 1.5rem;
}

.auth-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 42px;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
  font-family: var(--font-sans);
}

.auth-social-btn:hover {
  border-color: #CBD5E1;
  background: #F8FAFC;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* ── Divider ──────────────────────────────────────────────── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.5rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #F1F5F9;
}
.auth-divider span {
  font-size: 0.8125rem;
  color: #94A3B8;
  font-weight: 500;
  white-space: nowrap;
}

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

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.auth-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

.auth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.375rem;
}

.auth-input-wrap {
  position: relative;
}

.auth-input {
  width: 100%;
  height: 44px;
  padding: 0 0.875rem 0 2.625rem;
  font-size: 0.9375rem;
  font-family: var(--font-sans);
  color: #111827;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  outline: none;
  transition: all 0.18s ease;
  -webkit-appearance: none;
}

.auth-input::placeholder {
  color: #CBD5E1;
}

.auth-input:hover {
  border-color: #CBD5E1;
}

.auth-input:focus {
  border-color: #D7F008;
  box-shadow: 0 0 0 3px rgba(215, 240, 8, 0.14);
  background: #FEFFF5;
}

.auth-input.has-error {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.auth-input-icon {
  position: absolute;
  left: 0.8125rem;
  top: 50%;
  transform: translateY(-50%);
  color: #CBD5E1;
  display: flex;
  align-items: center;
  pointer-events: none;
  transition: color 0.18s;
}

.auth-input:focus + .auth-input-icon,
.auth-input-wrap:focus-within .auth-input-icon {
  color: #94A3B8;
}

.auth-input-action {
  position: absolute;
  right: 0.8125rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #CBD5E1;
  display: flex;
  align-items: center;
  padding: 0;
  transition: color 0.18s;
}
.auth-input-action:hover { color: #94A3B8; }

.auth-input.no-left-icon {
  padding-left: 0.875rem;
}

.auth-field-error {
  font-size: 0.8125rem;
  color: #EF4444;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Forgot link */
.auth-forgot {
  font-size: 0.8125rem;
  color: #64748B;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}
.auth-forgot:hover { color: #0F172A; }

/* ── Checkbox ─────────────────────────────────────────────── */
.auth-check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}
.auth-check-row input[type="checkbox"] {
  width: 17px;
  height: 17px;
  min-width: 17px;
  border: 1.5px solid #E2E8F0;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  transition: all 0.18s;
  appearance: none;
  -webkit-appearance: none;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.auth-check-row input[type="checkbox"]:checked {
  background: var(--lime);
  border-color: var(--lime-dark);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l2.5 2.5L9 1' stroke='%230F172A' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.auth-check-row input[type="checkbox"]:focus {
  box-shadow: 0 0 0 3px rgba(215, 240, 8, 0.2);
  outline: none;
}
.auth-check-label {
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.5;
}
.auth-check-label a {
  color: #0F172A;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Submit Button ────────────────────────────────────────── */
.auth-submit {
  width: 100%;
  height: 46px;
  background: #D7F008;
  color: #0F172A;
  border: none;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 700;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  letter-spacing: -0.01em;
  margin-top: 0.25rem;
}
.auth-submit:hover {
  background: #C8E006;
  box-shadow: 0 4px 16px rgba(215, 240, 8, 0.35);
  transform: translateY(-1px);
}
.auth-submit:active {
  transform: translateY(0);
  box-shadow: none;
}
.auth-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ── Footer link ──────────────────────────────────────────── */
.auth-footer-text {
  font-size: 0.875rem;
  color: #94A3B8;
  text-align: center;
  margin-top: 1.5rem;
}
.auth-footer-text a {
  color: #0F172A;
  font-weight: 600;
  text-decoration: none;
}
.auth-footer-text a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Password Strength ────────────────────────────────────── */
.pw-strength {
  margin-top: 0.5rem;
}
.pw-strength-bars {
  display: flex;
  gap: 4px;
  margin-bottom: 4px;
}
.pw-strength-bar {
  height: 3px;
  flex: 1;
  border-radius: 2px;
  background: #F1F5F9;
  transition: all 0.3s ease;
}
.pw-strength-label {
  font-size: 0.75rem;
  color: #94A3B8;
  font-weight: 500;
}

/* ── Terms notice ─────────────────────────────────────────── */
.auth-secure-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #F1F5F9;
}
.auth-secure-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: #94A3B8;
  font-weight: 500;
}

/* ── Right Panel Feature Cards ────────────────────────────── */
.auth-feature-card {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 16px;
  padding: 1.375rem 1.5rem;
  box-shadow: 0 4px 24px rgba(14,165,233,0.08);
}

.auth-feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: rgba(215,240,8,0.15);
  border: 1px solid rgba(215,240,8,0.3);
  border-radius: 100px;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #3F6212;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.auth-feature-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22C55E;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  50%       { box-shadow: 0 0 0 5px rgba(34,197,94,0); }
}

/* Floating cards */
.auth-float-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 1rem 1.25rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  position: absolute;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .auth-right { display: none; }
  .auth-left  { width: 100%; min-width: 100%; }
}

@media (max-width: 520px) {
  .auth-left-inner { padding: 1.75rem 1.5rem; }
  .auth-social-row { grid-template-columns: 1fr; }
  .auth-title { font-size: 1.625rem; }
}

/* ============================================================
   AUTH FIX — True 50/50 split + Logo + Proportional layout
   ============================================================ */

/* Override the fixed width with true 50% */
.auth-page {
  min-height: 100vh;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  background: #ffffff;
  font-family: var(--font-sans);
}

.auth-left {
  width: 100% !important;
  min-width: 0 !important;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  overflow-y: auto;
  border-right: 1px solid #F1F5F9;
}

.auth-left-inner {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 2.5rem 3rem;
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
  justify-content: center;
}

.auth-right {
  width: 100% !important;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #F0F9FF 0%, #E0F2FE 40%, #BAE6FD 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-right-content {
  position: relative;
  z-index: 2;
  padding: 3rem 2.5rem;
  width: 100%;
  max-width: 520px;
}

/* Logo image */
.auth-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-bottom: 2.5rem;
}
.auth-logo img {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Responsive */
@media (max-width: 1024px) {
  .auth-page {
    grid-template-columns: 1fr !important;
    display: flex !important;
    flex-direction: column;
  }
  .auth-right { display: none; }
  .auth-left  { width: 100% !important; }
  .auth-left-inner {
    min-height: 100vh;
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .auth-left-inner { padding: 1.5rem 1.25rem; }
  .auth-title { font-size: 1.5rem !important; }
}

/* ============================================================
   EVENTSURI STUDIO — PREMIUM TOPBAR
   ============================================================ */

.es-topbar {
  height: var(--topbar-height);
  background: #ffffff;
  border-bottom: 1px solid #F1F5F9;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.25rem 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 50;
  /* Glassmorphism subtle effect */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.95);
}

/* ── Left ──────────────────────────────────────────── */
.es-topbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.es-topbar-hamburger {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 8px;
  color: #64748B;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}
.es-topbar-hamburger:hover {
  background: #F8FAFC;
  color: #0F172A;
}

/* Breadcrumb */
.es-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
}

.es-breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
  text-decoration: none;
  border-radius: 6px;
  padding: 0.25rem 0.375rem;
  transition: all 0.15s;
}

.es-breadcrumb-link {
  color: #475569;
}
.es-breadcrumb-link:hover {
  background: #F8FAFC;
  color: #0F172A;
}

.es-breadcrumb-current {
  color: #0F172A;
  font-weight: 600;
  pointer-events: none;
}

.es-breadcrumb-ws-logo {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.es-breadcrumb-ws-avatar {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: #0F172A;
  color: #D7F008;
  font-size: 0.625rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-display);
}

.es-breadcrumb-ws-name {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.es-breadcrumb-sep {
  display: flex;
  align-items: center;
  color: #CBD5E1;
  flex-shrink: 0;
}

/* ── Center: Search ────────────────────────────────── */
.es-topbar-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 480px;
  margin: 0 auto;
}

.es-search {
  width: 100%;
}

.es-search-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  height: 38px;
  padding: 0 0.875rem;
  background: #F8FAFC;
  border: 1.5px solid #F1F5F9;
  border-radius: 10px;
  color: #94A3B8;
  cursor: pointer;
  transition: all 0.18s;
  font-family: var(--font-sans);
  text-align: left;
}
.es-search-trigger:hover {
  border-color: #E2E8F0;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.es-search-placeholder {
  flex: 1;
  font-size: 0.875rem;
  color: #94A3B8;
  text-align: left;
}

.es-search-kbd {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 0.4rem;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 5px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #94A3B8;
  font-family: var(--font-sans);
  flex-shrink: 0;
}

/* ── Right ──────────────────────────────────────────── */
.es-topbar-right {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-shrink: 0;
}

/* Create event button */
.es-topbar-create-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  height: 34px;
  padding: 0 0.875rem;
  background: #D7F008;
  color: #0F172A;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.18s;
  white-space: nowrap;
  font-family: var(--font-sans);
}
.es-topbar-create-btn:hover {
  background: #C8E006;
  box-shadow: 0 2px 8px rgba(215,240,8,0.35);
  transform: translateY(-1px);
}
.es-topbar-create-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Icon buttons */
.es-topbar-icon-btn {
  position: relative;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 8px;
  color: #64748B;
  cursor: pointer;
  transition: all 0.15s;
}
.es-topbar-icon-btn:hover {
  background: #F8FAFC;
  color: #0F172A;
}

/* Notification badge */
.es-notif-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  min-width: 16px;
  height: 16px;
  background: #EF4444;
  border-radius: 8px;
  font-size: 0.625rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  padding: 0 2px;
  font-family: var(--font-sans);
}

/* ── User menu ──────────────────────────────────────── */
.es-user-menu {
  position: relative;
}

.es-user-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 36px;
  padding: 0 0.375rem 0 0.25rem;
  background: none;
  border: 1.5px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font-sans);
}
.es-user-btn:hover,
.es-user-btn.open {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

.es-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0F172A, #334155);
  color: #D7F008;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  font-family: var(--font-display);
}
.es-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.es-user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
  min-width: 0;
}

.es-user-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.es-user-role {
  font-size: 0.6875rem;
  color: #94A3B8;
  white-space: nowrap;
  font-weight: 500;
}

.es-user-chevron {
  color: #94A3B8;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.es-user-btn.open .es-user-chevron {
  transform: rotate(180deg);
}

/* Dropdown */
.es-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  background: #ffffff;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(15,23,42,0.12), 0 2px 8px rgba(15,23,42,0.06);
  padding: 0.5rem;
  display: none;
  animation: dropdownOpen 0.18s ease;
  z-index: 200;
}
.es-user-dropdown.open {
  display: block;
}

@keyframes dropdownOpen {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.es-dropdown-header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.5rem 0.75rem;
}

.es-dropdown-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0F172A, #334155);
  color: #D7F008;
  font-size: 0.875rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  font-family: var(--font-display);
}
.es-dropdown-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.es-dropdown-user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.es-dropdown-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 165px;
}

.es-dropdown-email {
  font-size: 0.75rem;
  color: #94A3B8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 165px;
}

.es-dropdown-divider {
  height: 1px;
  background: #F1F5F9;
  margin: 0.25rem 0;
}

.es-dropdown-section-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94A3B8;
  padding: 0.375rem 0.5rem 0.25rem;
}

.es-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.625rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  transition: all 0.13s;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-sans);
}
.es-dropdown-item:hover {
  background: #F8FAFC;
  color: #0F172A;
}
.es-dropdown-item svg {
  color: #94A3B8;
  flex-shrink: 0;
  transition: color 0.13s;
}
.es-dropdown-item:hover svg {
  color: #64748B;
}

.es-dropdown-item-danger {
  color: #EF4444;
}
.es-dropdown-item-danger:hover {
  background: #FEF2F2;
  color: #DC2626;
}
.es-dropdown-item-danger svg {
  color: #EF4444;
}
.es-dropdown-item-danger:hover svg {
  color: #DC2626;
}

/* ── Search Modal ───────────────────────────────────── */
.es-search-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 6vh 1.5rem 1.5rem;
}

.es-search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}

.es-search-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 600px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(15,23,42,0.18), 0 4px 16px rgba(15,23,42,0.08);
  overflow: hidden;
  animation: searchOpen 0.2s ease;
}

@keyframes searchOpen {
  from { opacity: 0; transform: translateY(-12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.es-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1.25rem;
  border-bottom: 1px solid #F1F5F9;
  height: 60px;
  flex-shrink: 0;
}

.es-search-input {
  flex: 1;
  height: 100%;
  border: none;
  outline: none;
  font-size: 1rem;
  font-family: var(--font-sans);
  color: #0F172A;
  background: transparent;
}
.es-search-input::placeholder { color: #CBD5E1; }

.es-search-close-btn {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: #94A3B8;
}
.es-search-close-btn kbd {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 0.5rem;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748B;
  font-family: var(--font-sans);
}

.es-search-body {
  max-height: 400px;
  overflow-y: auto;
  padding: 0.5rem;
}

.es-search-section {
  margin-bottom: 0.25rem;
}

.es-search-section-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94A3B8;
  padding: 0.5rem 0.625rem 0.375rem;
}

.es-search-result-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.12s;
  cursor: pointer;
}
.es-search-result-item:hover,
.es-search-result-item.selected {
  background: #F8FAFC;
}

.es-search-result-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.es-search-icon-lime { background: #ECFCCB; color: #3F6212; }
.es-search-icon-blue { background: #DBEAFE; color: #1D4ED8; }
.es-search-icon-purple{ background: #EDE9FE; color: #6D28D9; }
.es-search-icon-gray  { background: #F1F5F9; color: #475569; }

.es-search-result-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.es-search-result-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.es-search-result-sub {
  font-size: 0.75rem;
  color: #94A3B8;
}

.es-search-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid #F1F5F9;
  background: #F8FAFC;
}

.es-search-hint {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: #94A3B8;
  font-weight: 500;
}
.es-search-hint kbd {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 0.375rem;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #64748B;
  font-family: var(--font-sans);
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .es-topbar-hamburger { display: flex; }
  .es-user-info        { display: none; }
  .es-user-chevron     { display: none; }
  .es-topbar-create-btn span { display: none; }
  .es-topbar-create-btn { padding: 0 0.625rem; }
}

@media (max-width: 768px) {
  .es-topbar { padding: 0 1rem; }
  .es-topbar-center { display: none; }
  .es-breadcrumb-ws-name { max-width: 100px; }
}

/* ============================================================
   RESPONSIVE — Mobile First Fixes
   ============================================================ */

/* Stack grid on mobile */
@media (max-width: 768px) {
  /* Settings sidebar stacks vertically */
  [style*="grid-template-columns:220px"] {
    display: flex !important;
    flex-direction: column !important;
  }

  /* Event cards full width */
  [style*="minmax(320px,1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* Stats grid 2 col on mobile */
  [style*="repeat(4,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Module cards 2 col */
  [style*="repeat(auto-fill,minmax(200px"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Page header stack */
  .page-header {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  /* Form grids stack */
  [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Table wrapper scroll */
  .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Members table — hide less important cols */
  table.data-table th:nth-child(3),
  table.data-table td:nth-child(3),
  table.data-table th:nth-child(4),
  table.data-table td:nth-child(4) {
    display: none;
  }

  /* Modal full screen on mobile */
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal {
    border-radius: 20px 20px 0 0 !important;
    max-width: 100% !important;
    max-height: 90vh;
  }

  /* Topbar create btn text hide */
  .es-topbar-create-btn span { display: none; }

  /* Search bar hide on small mobile */
  .es-topbar-center { display: none; }
}

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

  [style*="repeat(4,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .studio-page { padding: 1rem 0.875rem !important; }

  .card-body { padding: 1rem !important; }
  .card-header { padding: 0.875rem 1rem !important; }

  .page-title { font-size: 1.25rem !important; }
}

/* Ensure images in table cells don't overflow */
table img { max-width: 100%; }

/* Workspace switcher dropdown — ensure it's above content on mobile */
#wsSwitcherDropdown { z-index: 500 !important; }

/* Storage served images */
img[src^="/storage/"] {
  display: block;
  max-width: 100%;
}
