/* Velocity DP - Dialpad Theme */

:root {
  --primary: #7C52FF;
  --primary-dark: #9600EE;
  --primary-light: rgba(124, 82, 255, 0.1);
  --dark: #090F3A;
  --bg-light: #f8f7f6;
  --bg-surface: #ffffff;
  --bg-overlay: rgba(0, 0, 0, 0.5);
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --success: #22c55e;
  --success-bg: #dcfce7;
  --success-text: #14532d;
  --success-border: #bbf7d0;
  --warning: #f59e0b;
  --warning-bg: #fef3c7;
  --warning-text: #92400e;
  --warning-border: #fde68a;
  --error: #ef4444;
  --error-bg: #fee2e2;
  --error-text: #991b1b;
  --error-border: #fecaca;
  --info-bg: #e0e7ff;
  --info-text: #3730a3;
  --info-border: #c7d2fe;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-lg: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

[data-theme="dark"] {
  --primary: #9B7DFF;
  --primary-dark: #B47AFF;
  --primary-light: rgba(155, 125, 255, 0.15);
  --dark: #f0f1f4;
  --bg-light: #0f1117;
  --bg-surface: #1a1d2e;
  --bg-overlay: rgba(0, 0, 0, 0.7);
  --white: #1a1d2e;
  --gray-50: #161926;
  --gray-100: #1e2132;
  --gray-200: #2a2d3e;
  --gray-300: #3a3d4e;
  --gray-400: #6b7280;
  --gray-500: #9ca3af;
  --gray-600: #c0c4cc;
  --gray-700: #d1d5db;
  --gray-800: #e5e7eb;
  --success: #4ade80;
  --success-bg: rgba(34, 197, 94, 0.15);
  --success-text: #4ade80;
  --success-border: rgba(34, 197, 94, 0.3);
  --warning: #fbbf24;
  --warning-bg: rgba(245, 158, 11, 0.15);
  --warning-text: #fcd34d;
  --warning-border: rgba(245, 158, 11, 0.3);
  --error: #f87171;
  --error-bg: rgba(239, 68, 68, 0.15);
  --error-text: #fca5a5;
  --error-border: rgba(239, 68, 68, 0.3);
  --info-bg: rgba(99, 102, 241, 0.15);
  --info-text: #a5b4fc;
  --info-border: rgba(99, 102, 241, 0.3);
  --shadow: 0 1px 2px 0 rgb(0 0 0 / 0.3);
  --shadow-lg: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.3);
  color-scheme: dark;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-light);
  color: var(--gray-800);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--dark);
  font-weight: 600;
  line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* Layout */
.app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header / Navbar */
.navbar {
  background: var(--bg-surface);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo img {
  height: 44px;
}

.login-logo img {
  height: 72px;
}

[data-theme="dark"] .logo img,
[data-theme="dark"] .login-logo img {
  filter: brightness(1.8) contrast(0.9);
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Profile dropdown */
.profile-dropdown-wrap {
  position: relative;
}

.profile-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.15s;
}

.profile-avatar:hover {
  border-color: var(--primary);
}

.profile-avatar-initial {
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid transparent;
  padding: 0;
}

.profile-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 260px;
  background: var(--bg-surface);
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12), 0 1px 4px rgba(0,0,0,0.08);
  border: 1px solid var(--gray-200);
  z-index: 1000;
  overflow: hidden;
}

.profile-dropdown.open {
  display: block;
}

.profile-dropdown-header {
  padding: 1rem 1rem 0.75rem;
}

.profile-dropdown-name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--dark);
}

.profile-dropdown-email {
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-dropdown-divider {
  height: 1px;
  background: var(--gray-200);
  margin: 0;
}

.profile-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.625rem 1rem;
  background: none;
  border: none;
  font-size: 0.875rem;
  color: var(--gray-700);
  cursor: pointer;
  text-align: left;
  transition: background 0.1s;
}

.profile-dropdown-item:hover {
  background: var(--gray-50);
}

.profile-dropdown-item svg {
  flex-shrink: 0;
  stroke: var(--gray-500);
}

.profile-dropdown-logout {
  color: var(--error);
}

.profile-dropdown-logout svg {
  stroke: var(--error);
}

.nav-user-info {
  text-align: right;
}

.nav-user-name {
  font-weight: 600;
  color: var(--dark);
}

.nav-user-role {
  font-size: 0.875rem;
  color: var(--gray-500);
  text-transform: capitalize;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,0.15) 50%, transparent 80%);
  transition: none;
}

.btn:hover::after {
  left: 100%;
  transition: left 0.5s ease;
}

.btn:active {
  transform: scale(0.97);
  transition-duration: 0.05s;
}

.btn-primary {
  background: linear-gradient(135deg, #7C52FF 0%, #6330E0 100%);
  color: #fff;
  box-shadow: 0 1px 3px rgba(124, 82, 255, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #8B63FF 0%, #7040F0 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(124, 82, 255, 0.4);
}

.btn-primary:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 1px 4px rgba(124, 82, 255, 0.2);
}

.btn-secondary {
  background: var(--gray-50);
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
}

.btn-secondary:hover {
  background: var(--bg-surface);
  border-color: var(--gray-300);
  color: var(--dark);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

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

.btn-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  box-shadow: 0 1px 3px rgba(245, 158, 11, 0.2);
}

.btn-warning:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}

.btn-warning:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 1px 4px rgba(245, 158, 11, 0.2);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  box-shadow: 0 1px 3px rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
  background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.35);
}

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

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.tab-group {
  display: inline-flex;
  background: var(--gray-100);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}

.tab-group .tab-btn {
  padding: 0.4rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--gray-500);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.tab-group .tab-btn:hover {
  color: var(--gray-700);
}

.tab-group .tab-btn.active {
  background: var(--bg-surface);
  color: var(--dark);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.tab-count {
  color: var(--gray-400);
  font-weight: 400;
  margin-left: 2px;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

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

.btn:disabled::after {
  display: none;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--gray-700);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: var(--bg-surface);
  color: var(--gray-800);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 82, 255, 0.1);
}

.form-input.error,
.form-select.error {
  border-color: var(--error);
}

.form-error {
  color: var(--error);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.form-hint {
  color: var(--gray-500);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

/* Cards */
.card {
  background: var(--bg-surface);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--gray-200);
}

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

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark);
}

/* Tables */
.table-container {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: top;
}

.table th {
  background: transparent;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
  vertical-align: middle;
}

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

/* Status badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.badge-success {
  background: var(--success-bg);
  color: var(--success-text);
}

.badge-warning {
  background: var(--warning-bg);
  color: var(--warning-text);
}

.badge-error {
  background: var(--error-bg);
  color: var(--error-text);
}

.badge-info {
  background: var(--info-bg);
  color: var(--info-text);
}

.badge-secondary {
  background: var(--gray-100);
  color: var(--gray-600);
}

/* Login Page */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  background: #0a0e27;
}

/* Animated mesh gradient background (Stripe-style) */
.login-mesh {
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  background:
    radial-gradient(ellipse 40% 50% at 30% 40%, rgba(124, 82, 255, 0.55) 0%, transparent 60%),
    radial-gradient(ellipse 35% 45% at 70% 25%, rgba(99, 50, 230, 0.45) 0%, transparent 55%),
    radial-gradient(ellipse 45% 40% at 55% 75%, rgba(150, 0, 238, 0.4) 0%, transparent 55%),
    radial-gradient(ellipse 30% 55% at 15% 70%, rgba(59, 33, 175, 0.5) 0%, transparent 55%),
    radial-gradient(ellipse 50% 35% at 80% 65%, rgba(168, 85, 247, 0.35) 0%, transparent 50%),
    radial-gradient(ellipse 35% 40% at 45% 15%, rgba(79, 70, 229, 0.4) 0%, transparent 50%);
  animation: meshMove 20s ease-in-out infinite alternate;
  filter: blur(60px) saturate(1.3);
  z-index: 0;
}

@keyframes meshMove {
  0% { transform: translate(0%, 0%) rotate(0deg); }
  25% { transform: translate(-3%, 2%) rotate(1deg); }
  50% { transform: translate(2%, -2%) rotate(-1deg); }
  75% { transform: translate(-1%, 3%) rotate(0.5deg); }
  100% { transform: translate(3%, -1%) rotate(-0.5deg); }
}

.login-card {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border-radius: 16px;
  padding: 2.75rem 2.5rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  border: 1.5px solid transparent;
  background-clip: padding-box;
}

.login-card::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: 17.5px;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(124, 82, 255, 0.6), rgba(150, 0, 238, 0.4), rgba(168, 85, 247, 0.5), rgba(99, 50, 230, 0.6));
  background-size: 300% 300%;
  animation: borderFloat 6s ease-in-out infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
}

@keyframes borderFloat {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Floating particles */
.login-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  color: rgba(168, 130, 255, 0.18);
  animation: particleRise linear infinite;
  will-change: transform;
}

.particle svg {
  width: 100%;
  height: 100%;
}

@keyframes particleRise {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-110vh) rotate(180deg); opacity: 0; }
}

.p1  { width: 34px; left: 3%;  bottom: -50px; animation-duration: 14s; animation-delay: 0s; }
.p2  { width: 28px; left: 12%; bottom: -50px; animation-duration: 18s; animation-delay: 2s; }
.p3  { width: 38px; left: 22%; bottom: -50px; animation-duration: 16s; animation-delay: 4s; }
.p4  { width: 30px; left: 33%; bottom: -50px; animation-duration: 20s; animation-delay: 1s; }
.p5  { width: 26px; left: 43%; bottom: -50px; animation-duration: 15s; animation-delay: 6s; }
.p6  { width: 36px; left: 55%; bottom: -50px; animation-duration: 22s; animation-delay: 3s; }
.p7  { width: 28px; left: 65%; bottom: -50px; animation-duration: 17s; animation-delay: 5s; }
.p8  { width: 32px; left: 75%; bottom: -50px; animation-duration: 19s; animation-delay: 0.5s; }
.p9  { width: 34px; left: 86%; bottom: -50px; animation-duration: 16s; animation-delay: 7s; }
.p10 { width: 26px; left: 8%;  bottom: -50px; animation-duration: 21s; animation-delay: 8s; }
.p11 { width: 30px; left: 40%; bottom: -50px; animation-duration: 18s; animation-delay: 10s; }
.p12 { width: 36px; left: 70%; bottom: -50px; animation-duration: 15s; animation-delay: 9s; }
.p13 { width: 28px; left: 95%; bottom: -50px; animation-duration: 17s; animation-delay: 1.5s; }
.p14 { width: 32px; left: 18%; bottom: -50px; animation-duration: 20s; animation-delay: 11s; }
.p15 { width: 26px; left: 50%; bottom: -50px; animation-duration: 14s; animation-delay: 3.5s; }
.p16 { width: 34px; left: 60%; bottom: -50px; animation-duration: 19s; animation-delay: 12s; }
.p17 { width: 30px; left: 28%; bottom: -50px; animation-duration: 16s; animation-delay: 7.5s; }
.p18 { width: 28px; left: 83%; bottom: -50px; animation-duration: 21s; animation-delay: 5.5s; }

@media (prefers-reduced-motion: reduce) {
  .particle { animation: none; display: none; }
}

.login-card .form-label {
  color: #111827;
  font-weight: 600;
  font-size: 0.875rem;
}

.login-card .form-input,
[data-theme="dark"] .login-card .form-input {
  color: #111827;
  border: 1.5px solid #9ca3af;
  background: #fff;
  -webkit-text-fill-color: #111827;
  color-scheme: light;
}

.login-card .form-input::placeholder,
[data-theme="dark"] .login-card .form-input::placeholder {
  color: #6b7280;
  -webkit-text-fill-color: #6b7280;
}

.login-card .form-input:focus,
[data-theme="dark"] .login-card .form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 82, 255, 0.15);
}

.login-logo {
  text-align: center;
  margin-bottom: 1.25rem;
}

.login-logo h1 {
  font-size: 2rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-logo p {
  color: var(--gray-500);
  margin-top: 0.5rem;
}

@media (prefers-reduced-motion: reduce) {
  .login-mesh { animation: none; }
}

/* Dashboard */
.dashboard {
  display: flex;
  min-height: calc(100vh - 70px);
}

.sidebar {
  width: 280px;
  background: var(--bg-surface);
  border-right: 1px solid var(--gray-200);
  padding: 2rem;
  flex-shrink: 0;
  position: relative;
}

.sidebar-nav {
  list-style: none;
}

.sidebar-nav li {
  margin-bottom: 0.5rem;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  color: var(--gray-600);
  text-decoration: none;
  transition: all 0.2s ease;
}

.sidebar-nav a:hover {
  background: var(--gray-100);
  color: var(--dark);
}

.sidebar-nav a.active {
  background: transparent;
  color: var(--primary);
  border-left: 3px solid var(--primary);
  padding-left: calc(1rem - 3px);
  font-weight: 600;
}

.main-content {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
}

/* Wizard */
.wizard-container {
  display: flex;
  min-height: calc(100vh - 140px);
}

.wizard-sidebar {
  width: 280px;
  background: var(--bg-surface);
  border-right: 1px solid var(--gray-200);
  padding: 2rem;
  flex-shrink: 0;
}

.wizard-steps {
  list-style: none;
}

.wizard-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wizard-step.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.wizard-step.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
}

.wizard-step.completed {
  background: var(--success-bg);
  color: var(--success-text);
}

.wizard-step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
}

.wizard-step.active .wizard-step-number {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.wizard-step.completed .wizard-step-number {
  background: var(--success);
  color: var(--white);
}

.wizard-step-name {
  font-weight: 500;
}

.wizard-content {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
}

/* Wizard Progress Bar */
.wizard-progress-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--gray-200);
  padding: 1.5rem 0 1rem;
}

.progress-steps {
  display: flex;
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.progress-track {
  position: absolute;
  top: 8px;
  height: 3px;
  background: var(--gray-200);
  border-radius: 2px;
  z-index: 0;
}

.progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.progress-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.progress-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 3px solid var(--gray-200);
  background: var(--bg-surface);
}

.progress-dot.completed {
  background: var(--success);
  border-color: var(--success);
  color: var(--white);
}

.progress-dot.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2);
  animation: dotPulse 2s ease-in-out infinite;
}

.progress-label {
  margin-top: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--gray-400);
  transition: color 0.3s ease;
}

.progress-step.completed .progress-label {
  color: var(--success-text);
}

.progress-step.active .progress-label {
  color: var(--primary);
  font-weight: 600;
}

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(139, 92, 246, 0); }
}

@media (max-width: 768px) {
  .wizard-progress-bar {
    padding: 1rem 0 0.5rem;
  }
  .progress-steps {
    max-width: 100%;
    padding: 0 0.5rem;
  }
  .progress-dot {
    width: 14px;
    height: 14px;
  }
  .progress-label {
    font-size: 0.6rem;
  }
}

/* Milestone Steps (Go Live, Hypercare) */
.milestone-step {
  text-align: center;
  padding: 2rem 1rem;
}

.milestone-step h3 {
  margin: 1rem 0 0.5rem;
  font-size: 1.25rem;
}

.milestone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
}

.milestone-icon.uat {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.milestone-icon.go-live {
  background: var(--success-bg);
  color: var(--success);
}

.milestone-icon.hypercare {
  background: rgba(139, 92, 246, 0.1);
  color: var(--primary);
}

.milestone-detail {
  display: inline-block;
  background: var(--gray-50);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  margin-top: 1rem;
  font-size: 0.9375rem;
}

.milestone-checklist {
  text-align: left;
  max-width: 500px;
  margin: 1.5rem auto 0;
}

.milestone-checklist h4 {
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
}

.milestone-checklist ul {
  list-style: none;
  padding: 0;
}

.milestone-checklist li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--gray-600);
  font-size: 0.875rem;
  border-bottom: 1px solid var(--gray-100);
}

.milestone-checklist li:last-child {
  border-bottom: none;
}

.milestone-checklist li::before {
  content: '•';
  position: absolute;
  left: 0.25rem;
  color: var(--primary);
  font-weight: bold;
}

/* UAT Layout */
.uat-layout {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.uat-sidebar {
  width: 300px;
  flex-shrink: 0;
}

.uat-content {
  flex: 1;
  min-width: 0;
}

.uat-number-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.uat-number-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s ease;
}

.uat-number-item:hover {
  background: var(--gray-50);
}

.uat-number-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--success);
}

.uat-number-item input[type="checkbox"]:checked + div strong {
  color: var(--success-text);
  text-decoration: line-through;
}

.uat-number-item div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.uat-number-item div strong {
  font-size: 0.9375rem;
}

.uat-number-item div .form-hint {
  font-size: 0.75rem;
  margin: 0;
}

.uat-progress-bar {
  height: 6px;
  background: var(--gray-200);
  border-radius: 3px;
  margin-top: 0.5rem;
  overflow: hidden;
}

.uat-progress-fill {
  height: 100%;
  background: var(--success);
  border-radius: 3px;
  transition: width 0.3s ease;
}

@media (max-width: 768px) {
  .uat-layout {
    flex-direction: column;
  }
  .uat-sidebar {
    width: 100%;
  }
}

/* Welcome Page */
.welcome-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 70px);
  text-align: center;
  padding: 2rem;
}

.welcome-card {
  max-width: 600px;
}

.welcome-card h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.welcome-card p {
  font-size: 1.25rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
}

/* Data Table Actions */
.table-actions {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.icon-btn {
  padding: 0.375rem;
  border-radius: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--gray-400);
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.icon-btn:hover {
  background: var(--gray-100);
  color: var(--dark);
  transform: scale(1.15);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.icon-btn:active {
  transform: scale(0.88);
  transition-duration: 0.05s;
}

.icon-btn.delete {
  color: var(--gray-400);
}

.icon-btn.delete:hover {
  background: var(--error-bg);
  color: var(--error);
  transform: scale(1.15);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.15);
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.2s ease;
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

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

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-400);
}

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

/* File Upload */
.file-upload {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.file-upload:hover {
  border-color: var(--primary);
  background: rgba(124, 82, 255, 0.05);
}

.file-upload.dragover {
  border-color: var(--primary);
  background: rgba(124, 82, 255, 0.1);
}

.file-upload input {
  display: none;
}

.file-list {
  margin-top: 1rem;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--gray-100);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
}

/* Alert messages */
.alert {
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.alert-success {
  background: var(--success-bg);
  color: var(--success-text);
  border: 1px solid var(--success-border);
}

.alert-error {
  background: var(--error-bg);
  color: var(--error-text);
  border: 1px solid var(--error-border);
}

.alert-warning {
  background: var(--warning-bg);
  color: var(--warning-text);
  border: 1px solid var(--warning-border);
}

.alert-info {
  background: var(--info-bg);
  color: var(--info-text);
  border: 1px solid var(--info-border);
}

/* LOA Section */
.loa-links {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

.loa-link-card {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.loa-link-info h4 {
  margin-bottom: 0.25rem;
}

.loa-link-info p {
  color: var(--gray-500);
  font-size: 0.875rem;
}

/* Stats Cards */
.stats-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  animation: statsSlideIn 0.4s ease-out;
}

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

.stats-bar .stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: statFadeIn 0.5s ease-out both;
}

.stats-bar .stat-item:nth-child(1) { animation-delay: 0.1s; }
.stats-bar .stat-item:nth-child(2) { animation-delay: 0.2s; }
.stats-bar .stat-item:nth-child(3) { animation-delay: 0.3s; }
.stats-bar .stat-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes statFadeIn {
  from { opacity: 0; transform: translateX(-6px); }
  to { opacity: 1; transform: translateX(0); }
}

.stats-bar .stat-item:not(:last-child) {
  padding-right: 1.5rem;
  border-right: 1px solid var(--gray-200);
}

.stats-bar .stat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px currentColor;
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px currentColor; }
  50% { opacity: 0.7; box-shadow: 0 0 10px currentColor; }
}

.stats-bar .stat-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
}

.stats-bar .stat-label {
  font-size: 0.8125rem;
  color: var(--gray-500);
  line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
  .stats-bar,
  .stats-bar .stat-item,
  .stats-bar .stat-dot { animation: none; }
}

/* Legacy grid fallback (unused, kept for compat) */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--gray-200);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
}

.stat-label {
  color: var(--gray-500);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--gray-500);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Loading Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-right: 6px;
  vertical-align: middle;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

/* Responsive */
@media (max-width: 768px) {
  .dashboard {
    flex-direction: column;
  }

  .sidebar,
  .wizard-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--gray-200);
  }

  .wizard-steps {
    display: flex;
    overflow-x: auto;
    padding-bottom: 1rem;
  }

  .wizard-step {
    flex-shrink: 0;
  }

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

  .navbar {
    padding: 1rem;
  }
}

/* Utility Classes */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }

/* Porting Date Calendar */
.porting-calendar-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2rem 0;
}

.porting-calendar-header {
  text-align: center;
  margin-bottom: 2rem;
}

.porting-calendar-header h3 {
  font-size: 1.5rem;
  color: var(--gray-800);
  margin-bottom: 0.5rem;
}

.porting-calendar-header .min-date-info {
  font-size: 1rem;
  color: var(--gray-500);
}

.porting-calendar-header .min-date-info strong {
  color: var(--primary);
}

.porting-calendar-header .time-info {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-top: 0.5rem;
}

.selected-date-display {
  text-align: center;
  margin-top: 2rem;
  padding: 1.5rem 3rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius);
  color: white;
}

.selected-date-display .label {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.selected-date-display .date {
  font-size: 1.5rem;
  font-weight: 700;
}

/* Flatpickr Calendar Customization - Full Width */
#porting-calendar {
  width: 100%;
  display: flex;
  justify-content: center;
}

#porting-calendar .flatpickr-calendar {
  box-shadow: var(--shadow-lg);
  border-radius: 16px;
  border: 1px solid var(--gray-200);
  font-size: 1.2rem;
  background: var(--bg-surface);
}

#porting-calendar .flatpickr-calendar.inline {
  width: 100%;
  max-width: 700px;
}

#porting-calendar .flatpickr-innerContainer {
  padding: 1rem;
}

#porting-calendar .flatpickr-days {
  width: 100% !important;
}

#porting-calendar .dayContainer {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  gap: 8px;
}

#porting-calendar .flatpickr-day {
  max-width: none !important;
  width: 100% !important;
  height: 80px;
  line-height: 80px;
  font-size: 1.25rem;
  font-weight: 500;
  border-radius: 12px;
  margin: 0 !important;
}

#porting-calendar .flatpickr-day.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(124, 82, 255, 0.4);
}

#porting-calendar .flatpickr-day.selected:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

#porting-calendar .flatpickr-day:hover:not(.disabled):not(.selected) {
  background: var(--gray-100);
  border-color: var(--gray-200);
}

#porting-calendar .flatpickr-day.disabled {
  color: var(--gray-300);
  background: var(--gray-50);
}

#porting-calendar .flatpickr-day.today:not(.selected) {
  border: 2px solid var(--primary);
  background: rgba(124, 82, 255, 0.1);
}

#porting-calendar .flatpickr-months {
  padding: 1.5rem 1rem;
  border-bottom: 1px solid var(--gray-200);
}

#porting-calendar .flatpickr-month {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-800);
  height: auto;
}

#porting-calendar .flatpickr-current-month {
  padding-top: 0;
}

#porting-calendar .flatpickr-monthDropdown-months {
  font-size: 1.5rem;
  font-weight: 700;
}

#porting-calendar .numInputWrapper {
  font-size: 1.5rem;
  font-weight: 700;
}

#porting-calendar .flatpickr-weekdays {
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-100);
}

#porting-calendar .flatpickr-weekday {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-500);
}

#porting-calendar .flatpickr-prev-month,
#porting-calendar .flatpickr-next-month {
  padding: 1rem;
}

#porting-calendar .flatpickr-prev-month svg,
#porting-calendar .flatpickr-next-month svg {
  width: 20px;
  height: 20px;
}

/* Time picker styling */
#porting-calendar .flatpickr-time {
  border-top: 1px solid var(--gray-200);
  padding: 1.5rem;
  max-height: none;
  height: auto;
}

#porting-calendar .flatpickr-time .numInputWrapper {
  height: 50px;
}

#porting-calendar .flatpickr-time input {
  font-size: 1.5rem;
  font-weight: 600;
}

#porting-calendar .flatpickr-time .flatpickr-time-separator {
  font-size: 1.5rem;
  font-weight: 600;
}

#porting-calendar .flatpickr-time .flatpickr-am-pm {
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0 1rem;
}

@media (max-width: 768px) {
  #porting-calendar .flatpickr-calendar.inline {
    max-width: 100%;
  }

  #porting-calendar .flatpickr-day {
    height: 50px;
    line-height: 50px;
    font-size: 1rem;
  }

  #porting-calendar .flatpickr-month {
    font-size: 1.2rem;
  }
}

/* ── Tutorial Overlay ──────────────────────────────────────────────────── */

.tutorial-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: auto;
}

.tutorial-spotlight {
  position: absolute;
  z-index: 9999;
  border-radius: 10px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(124, 82, 255, 0.5);
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.tutorial-tooltip {
  position: absolute;
  z-index: 10000;
  background: #fff;
  border-radius: 16px;
  padding: 1.75rem 2rem;
  width: 380px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
  pointer-events: auto;
  animation: tutorialFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .tutorial-tooltip {
  background: var(--bg-surface);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.tutorial-step-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.tutorial-tooltip-title {
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
  line-height: 1.3;
}

[data-theme="dark"] .tutorial-tooltip-title {
  color: var(--dark);
}

[data-theme="dark"] .tutorial-tooltip-text {
  color: var(--gray-600);
}

.tutorial-tooltip-text {
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

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

.tutorial-tooltip-dots {
  display: flex;
  gap: 8px;
}

.tutorial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-200);
  transition: all 0.25s ease;
}

[data-theme="dark"] .tutorial-dot {
  background: var(--gray-600);
}

.tutorial-dot.active {
  background: var(--primary);
  transform: scale(1.2);
}

.tutorial-dot.completed {
  background: var(--primary);
  opacity: 0.5;
}

.tutorial-tooltip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.625rem 1.25rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tutorial-tooltip-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124, 82, 255, 0.35);
}

.tutorial-skip {
  font-size: 0.8125rem;
  color: var(--gray-400);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.375rem 0;
  font-weight: 500;
  transition: color 0.15s;
}

.tutorial-skip:hover {
  color: var(--gray-600);
}

[data-theme="dark"] .tutorial-skip:hover {
  color: var(--gray-300);
}

/* Tooltip arrow */
.tutorial-tooltip::before {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  background: #fff;
  transform: rotate(45deg);
  border-radius: 3px;
}

[data-theme="dark"] .tutorial-tooltip::before {
  background: var(--bg-surface);
}

.tutorial-tooltip[data-position="bottom"]::before {
  top: -6px;
  left: 50%;
  margin-left: -7px;
  box-shadow: -1px -1px 2px rgba(0, 0, 0, 0.06);
}

.tutorial-tooltip[data-position="right"]::before {
  left: -6px;
  top: 28px;
  box-shadow: -1px 1px 2px rgba(0, 0, 0, 0.06);
}

.tutorial-tooltip[data-position="left"]::before {
  right: -6px;
  top: 28px;
  box-shadow: 1px -1px 2px rgba(0, 0, 0, 0.06);
}

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

/* Feature Flags Modal */
.ff-modal {
  max-width: 900px;
  height: 80vh;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}
.ff-modal .modal-header {
  margin-bottom: 1rem;
  flex-shrink: 0;
}
.ff-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.ff-status {
  text-align: center;
  padding: 2rem;
  color: var(--gray-500);
}
.ff-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  flex: 1;
  min-height: 0;
}
.ff-panel {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
}
.ff-panel-header {
  padding: 0.75rem;
  border-bottom: 1px solid var(--gray-200);
  flex-shrink: 0;
}
.ff-panel-header h4 {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}
.ff-count {
  font-weight: 400;
  color: var(--gray-400);
  font-size: 0.8rem;
}
.ff-search {
  padding: 0.4rem 0.6rem !important;
  font-size: 0.8rem !important;
}
.ff-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.25rem 0;
}
.ff-flag-item {
  display: flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  font-family: var(--font-mono, monospace);
  gap: 0.5rem;
}
.ff-flag-item:hover {
  background: var(--gray-100);
}
.ff-flag-checkbox {
  cursor: pointer;
}
.ff-flag-checkbox input[type="checkbox"] {
  flex-shrink: 0;
}
.ff-flag-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ff-remove-btn {
  background: none;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  font-size: 1rem;
  padding: 0 0.25rem;
  line-height: 1;
  flex-shrink: 0;
}
.ff-remove-btn:hover {
  color: var(--error);
}
.ff-panel-footer {
  padding: 0.5rem 0.75rem;
  border-top: 1px solid var(--gray-200);
  text-align: right;
  flex-shrink: 0;
}
.ff-empty {
  text-align: center;
  padding: 1rem;
  color: var(--gray-400);
  font-size: 0.8rem;
}
.ff-progress {
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  color: var(--primary);
  text-align: center;
  flex-shrink: 0;
}
