/* ==========================================================================
   FIVERR TEAM MANAGEMENT SYSTEM - FRONTEND CSS
   Modern SaaS UI Design matching Mockup
   ========================================================================== */

:root {
  --ftm-font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ftm-bg: #f8fafc;
  --ftm-card-bg: #ffffff;
  --ftm-sidebar-bg: #ffffff;
  --ftm-header-bg: #ffffff;
  --ftm-text-primary: #0f172a;
  --ftm-text-secondary: #475569;
  --ftm-text-muted: #94a3b8;
  --ftm-border: #e2e8f0;
  --ftm-border-light: #f1f5f9;
  
  --ftm-primary: #2563eb;
  --ftm-primary-hover: #1d4ed8;
  --ftm-primary-soft: #eff6ff;
  
  --ftm-nra: #3b82f6;
  --ftm-nra-bg: #eff6ff;
  --ftm-nra-border: #bfdbfe;
  
  --ftm-wip: #d97706;
  --ftm-wip-bg: #fffbeb;
  --ftm-wip-border: #fde68a;
  
  --ftm-submitted: #0284c7;
  --ftm-submitted-bg: #f0f9ff;
  --ftm-submitted-border: #bae6fd;
  
  --ftm-revision: #7c3aed;
  --ftm-revision-bg: #f5f3ff;
  --ftm-revision-border: #ddd6fe;
  
  --ftm-accepted: #059669;
  --ftm-accepted-bg: #ecfdf5;
  --ftm-accepted-border: #a7f3d0;
  
  --ftm-cancelled: #e11d48;
  --ftm-cancelled-bg: #fff1f2;
  --ftm-cancelled-border: #fecdd3;
  
  --ftm-radius-sm: 6px;
  --ftm-radius-md: 10px;
  --ftm-radius-lg: 14px;
  --ftm-radius-xl: 18px;
  
  --ftm-shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --ftm-shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --ftm-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.06), 0 2px 4px -1px rgba(0,0,0,0.03);
  --ftm-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.07), 0 4px 6px -2px rgba(0,0,0,0.03);
  --ftm-shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 10px 10px -5px rgba(0,0,0,0.03);
}

/* Reset / Base */
html, body.ftm-body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  background-color: var(--ftm-bg);
  color: var(--ftm-text-primary);
  font-family: var(--ftm-font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

/* App Container */
.ftm-app-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #f6f8fb;
}

/* Header */
.ftm-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 28px;
  background-color: var(--ftm-header-bg);
  border-bottom: 1px solid var(--ftm-border);
  height: 68px;
}

.ftm-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ftm-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.ftm-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--ftm-radius-md);
}

.ftm-brand-icon-lg {
  width: 72px;
  height: 72px;
  border-radius: var(--ftm-radius-lg);
  margin: 0 auto 16px;
}

.ftm-logo-img-lg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ftm-brand-text h1 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  color: var(--ftm-text-primary);
  line-height: 1.2;
}

.ftm-brand-subtitle {
  font-size: 12px;
  font-weight: 500;
  color: var(--ftm-text-muted);
}

.ftm-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.ftm-icon-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  color: var(--ftm-text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  position: relative;
}

.ftm-icon-btn:hover {
  background-color: var(--ftm-border-light);
  color: var(--ftm-primary);
}

.ftm-badge-count {
  position: absolute;
  top: 2px;
  right: 2px;
  background-color: #ef4444;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

.ftm-user-profile-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 4px 4px;
  border-radius: var(--ftm-radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.ftm-user-profile-btn:hover {
  background-color: var(--ftm-border-light);
  border-color: var(--ftm-border);
}

.ftm-user-meta {
  display: flex;
  flex-direction: column;
}

.ftm-user-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ftm-text-primary);
  line-height: 1.2;
}

.ftm-user-role {
  font-size: 11px;
  color: var(--ftm-text-muted);
  font-weight: 500;
}

.ftm-avatar {
  border-radius: 50%;
  object-fit: cover;
}

.ftm-avatar-sm { width: 34px; height: 34px; }
.ftm-avatar-md { width: 44px; height: 44px; }
.ftm-avatar-lg { width: 56px; height: 56px; }

/* Main Container Layout (Left Sidebar + Full Center Workspace) */
.ftm-main-container {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 68px);
  width: 100%;
  position: relative;
}

/* Left Sidebar */
.ftm-sidebar {
  background-color: var(--ftm-sidebar-bg);
  border-right: 1px solid var(--ftm-border);
  padding: 24px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ftm-nav-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ftm-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: var(--ftm-text-secondary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--ftm-radius-md);
  transition: all 0.2s ease;
}

.ftm-nav-item:hover {
  background-color: var(--ftm-border-light);
  color: var(--ftm-primary);
}

.ftm-nav-item.active {
  background-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.ftm-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ftm-fiverr-icon-badge {
  background-color: #1dbf73;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: lowercase;
}

.ftm-sidebar-footer {
  padding-top: 20px;
  border-top: 1px solid var(--ftm-border-light);
}

.ftm-logout-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: #ef4444;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--ftm-radius-md);
  transition: all 0.2s ease;
}

.ftm-logout-link:hover {
  background-color: #fef2f2;
}

/* Center Workspace */
.ftm-main-workspace {
  padding: 28px 32px;
  overflow-y: auto;
  max-width: 100%;
}

.ftm-page-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.ftm-page-title {
  margin: 0 0 4px 0;
  font-size: 24px;
  font-weight: 800;
  color: var(--ftm-text-primary);
}

.ftm-page-desc {
  margin: 0;
  font-size: 14px;
  color: var(--ftm-text-secondary);
}

/* 7 Stats Cards Row */
.ftm-stats-cards-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.ftm-stat-card {
  background: var(--ftm-card-bg);
  border: 1px solid var(--ftm-border);
  border-radius: var(--ftm-radius-lg);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--ftm-shadow-xs);
  transition: all 0.2s ease;
  cursor: pointer;
  min-height: 128px;
}

.ftm-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--ftm-shadow-md);
  border-color: #cbd5e1;
}

.ftm-stat-card.active-filter {
  border-color: var(--ftm-primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.ftm-stat-icon-wrapper {
  width: 38px;
  height: 38px;
  border-radius: var(--ftm-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.ftm-stat-content {
  display: flex;
  flex-direction: column;
}

.ftm-stat-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ftm-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ftm-stat-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--ftm-text-primary);
  margin-top: 2px;
}

.ftm-stat-link {
  font-size: 11px;
  font-weight: 600;
  color: var(--ftm-primary);
  text-decoration: none;
  margin-top: 8px;
}

/* Colors for icon wrappers */
.bg-blue-soft   { background-color: #eff6ff; color: #2563eb; }
.bg-sky-soft    { background-color: #f0f9ff; color: #0284c7; }
.bg-amber-soft  { background-color: #fffbeb; color: #d97706; }
.bg-cyan-soft   { background-color: #ecfeff; color: #0891b2; }
.bg-purple-soft { background-color: #f5f3ff; color: #7c3aed; }
.bg-emerald-soft{ background-color: #ecfdf5; color: #059669; }
.bg-rose-soft   { background-color: #fff1f2; color: #e11d48; }

/* Filter Bar Card */
.ftm-card {
  background: var(--ftm-card-bg);
  border: 1px solid var(--ftm-border);
  border-radius: var(--ftm-radius-lg);
  box-shadow: var(--ftm-shadow-xs);
  margin-bottom: 24px;
}

.ftm-filter-bar-card {
  padding: 16px 20px;
}

.ftm-filter-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 12px;
  align-items: center;
}

.ftm-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.ftm-search-icon {
  position: absolute;
  left: 12px;
  color: var(--ftm-text-muted);
  pointer-events: none;
}

.ftm-input,
.ftm-form-control {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  font-size: 13.5px;
  font-family: inherit;
  font-weight: 500;
  border: 1.5px solid var(--ftm-border);
  border-radius: var(--ftm-radius-md);
  background-color: #ffffff;
  color: var(--ftm-text-primary);
  transition: all 0.2s ease;
  outline: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.ftm-input-search {
  padding-left: 38px;
}

.ftm-input:focus,
.ftm-form-control:focus,
.ftm-select:focus,
.ftm-textarea:focus {
  border-color: var(--ftm-primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 3.5px rgba(37, 99, 235, 0.14);
}

.ftm-select-wrap {
  position: relative;
}

.ftm-select {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  font-size: 13.5px;
  font-family: inherit;
  font-weight: 500;
  border: 1.5px solid var(--ftm-border);
  border-radius: var(--ftm-radius-md);
  background-color: #ffffff;
  color: var(--ftm-text-primary);
  outline: none;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.ftm-select-sm {
  padding: 6px 10px;
  font-size: 12.5px;
  width: auto;
}

.ftm-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  font-size: 13.5px;
  font-family: inherit;
  font-weight: 500;
  border: 1.5px solid var(--ftm-border);
  border-radius: var(--ftm-radius-md);
  outline: none;
  resize: vertical;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

/* Projects Table */
.ftm-table-card {
  overflow: hidden;
}

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

.ftm-table-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.ftm-table-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ftm-table-responsive {
  width: 100%;
  overflow-x: auto;
}

.ftm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  text-align: left;
}

.ftm-table th {
  padding: 12px 18px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ftm-text-secondary);
  background-color: #fafbfc;
  border-bottom: 1px solid var(--ftm-border);
  text-transform: capitalize;
  letter-spacing: 0.02em;
}

.ftm-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--ftm-border-light);
  color: var(--ftm-text-primary);
  vertical-align: middle;
}

.ftm-table tr:hover td {
  background-color: #fbfcfe;
}

/* Table Item Components */
.ftm-profile-badge-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.ftm-profile-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: #1dbf73;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.ftm-user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ftm-user-cell-meta {
  display: flex;
  flex-direction: column;
}

.ftm-user-cell-name {
  font-weight: 600;
  line-height: 1.2;
}

.ftm-user-cell-sub {
  font-size: 11.5px;
  color: var(--ftm-text-muted);
}

/* Badges */
.ftm-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  white-space: nowrap;
  line-height: 1.2;
}

.ftm-badge-sm {
  padding: 2px 8px;
  font-size: 11px;
}

.ftm-badge-outline {
  background-color: #ffffff;
  border: 1px solid var(--ftm-border);
  color: var(--ftm-text-secondary);
}

/* Status Badges */
.badge-status-nra {
  background-color: var(--ftm-nra-bg);
  color: var(--ftm-nra);
  border: 1px solid var(--ftm-nra-border);
}

.badge-status-wip {
  background-color: var(--ftm-wip-bg);
  color: var(--ftm-wip);
  border: 1px solid var(--ftm-wip-border);
}

.badge-status-delivery_submitted {
  background-color: var(--ftm-submitted-bg);
  color: var(--ftm-submitted);
  border: 1px solid var(--ftm-submitted-border);
}

.badge-status-revision {
  background-color: var(--ftm-revision-bg);
  color: var(--ftm-revision);
  border: 1px solid var(--ftm-revision-border);
}

.badge-status-delivery_accepted {
  background-color: var(--ftm-accepted-bg);
  color: var(--ftm-accepted);
  border: 1px solid var(--ftm-accepted-border);
}

.badge-status-cancelled {
  background-color: var(--ftm-cancelled-bg);
  color: var(--ftm-cancelled);
  border: 1px solid var(--ftm-cancelled-border);
}

/* Days Remaining Badges */
.badge-days-urgent, .badge-days-overdue {
  background-color: #fef2f2;
  color: #ef4444;
  border: 1px solid #fecaca;
}

.badge-days-warning {
  background-color: #fffbeb;
  color: #d97706;
  border: 1px solid #fde68a;
}

.badge-days-normal, .badge-days-accepted, .badge-days-completed {
  background-color: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.badge-days-submitted {
  background-color: #ecfeff;
  color: #0891b2;
  border: 1px solid #a5f3fc;
}

.badge-days-cancelled {
  background-color: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
}

/* Table Actions */
.ftm-action-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.ftm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: var(--ftm-radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  font-family: inherit;
}

.ftm-btn-sm {
  padding: 6px 12px;
  font-size: 12.5px;
}

.ftm-btn-primary {
  background-color: var(--ftm-primary);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

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

.ftm-btn-secondary {
  background-color: #ffffff;
  border-color: var(--ftm-border);
  color: var(--ftm-text-secondary);
}

.ftm-btn-secondary:hover {
  background-color: var(--ftm-border-light);
  color: var(--ftm-text-primary);
}

.ftm-btn-danger {
  background-color: #fee2e2;
  color: #b91c1c;
}

.ftm-btn-danger:hover {
  background-color: #fecaca;
}

.ftm-btn-block {
  width: 100%;
}

.ftm-table-footer {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--ftm-border);
  font-size: 13px;
  color: var(--ftm-text-secondary);
}

.ftm-pagination-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ftm-page-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--ftm-radius-sm);
  border: 1px solid var(--ftm-border);
  background-color: #ffffff;
  color: var(--ftm-text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.ftm-page-btn:hover:not(:disabled) {
  background-color: var(--ftm-border-light);
  border-color: #cbd5e1;
}

.ftm-page-btn.active {
  background-color: var(--ftm-primary);
  border-color: var(--ftm-primary);
  color: #ffffff;
}

.ftm-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Right Sidebar as an Off-Canvas Slide-Over Drawer */
.ftm-right-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 360px;
  max-width: 90vw;
  height: 100vh;
  background-color: #ffffff;
  border-left: 1px solid var(--ftm-border);
  padding: 20px 20px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 150;
  overflow-y: auto;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.15);
  transition: right 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.ftm-right-sidebar.open {
  right: 0 !important;
}

.ftm-right-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ftm-border-light);
  margin-bottom: 2px;
}

.ftm-sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(3px);
  z-index: 140;
  transition: opacity 0.25s ease;
}

.ftm-stats-drawer-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: var(--ftm-radius-md);
  background-color: #eff6ff;
  border: 1.5px solid #bfdbfe;
  color: #2563eb;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-right: 4px;
}

.ftm-stats-drawer-btn:hover {
  background-color: #dbeafe;
  border-color: #93c5fd;
  color: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.15);
}

.ftm-widget-card {
  background: var(--ftm-card-bg);
  border: 1px solid var(--ftm-border);
  border-radius: var(--ftm-radius-lg);
  padding: 18px;
  box-shadow: var(--ftm-shadow-xs);
}

.ftm-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.ftm-widget-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ftm-text-primary);
}

.ftm-widget-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--ftm-primary);
  text-decoration: none;
}

/* Quick Stats List in Right Sidebar */
.ftm-quick-stats-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ftm-quick-stat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: var(--ftm-radius-sm);
  transition: background-color 0.15s;
}

.ftm-quick-stat-item:hover {
  background-color: #f1f5f9;
}

.ftm-quick-stat-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ftm-text-secondary);
  font-weight: 500;
}

.ftm-qs-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.ftm-qs-val {
  font-weight: 700;
  font-size: 14px;
}

.bg-emerald { background-color: #10b981; }
.bg-rose    { background-color: #f43f5e; }
.bg-amber   { background-color: #f59e0b; }
.bg-purple  { background-color: #8b5cf6; }
.bg-sky     { background-color: #0ea5e9; }
.bg-blue    { background-color: #3b82f6; }

.text-emerald { color: #059669; }
.text-rose    { color: #e11d48; }
.text-amber   { color: #d97706; }
.text-purple  { color: #7c3aed; }
.text-sky     { color: #0284c7; }
.text-blue    { color: #2563eb; }

/* Right Team Members List Widget */
.ftm-widget-team-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ftm-widget-member-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ftm-widget-member-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ftm-widget-member-meta {
  display: flex;
  flex-direction: column;
}

.ftm-widget-member-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ftm-text-primary);
  line-height: 1.2;
}

.ftm-widget-member-projects {
  font-size: 11.5px;
  color: var(--ftm-text-muted);
}

.ftm-tag-active {
  font-size: 11px;
  font-weight: 600;
  background-color: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  padding: 2px 8px;
  border-radius: 12px;
}

/* Right Alerts Widget */
.ftm-widget-alerts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ftm-alert-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px;
  border-radius: var(--ftm-radius-md);
  transition: background-color 0.2s;
  cursor: pointer;
}

.ftm-alert-item:hover {
  background-color: #f1f5f9;
}

.ftm-alert-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ftm-alert-content {
  display: flex;
  flex-direction: column;
}

.ftm-alert-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ftm-text-primary);
  line-height: 1.3;
}

.ftm-alert-subtitle {
  font-size: 11.5px;
  color: var(--ftm-text-muted);
}

/* Motivational Card */
.ftm-motivational-card {
  padding: 22px 18px;
  text-align: center;
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
  border: 1px solid #dbeafe;
}

.ftm-rocket-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: #dbeafe;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.ftm-motivational-card h4 {
  margin: 0 0 6px 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ftm-primary);
}

.ftm-motivational-card p {
  margin: 0;
  font-size: 12.5px;
  color: var(--ftm-text-secondary);
  line-height: 1.4;
}

/* Team Members Cards Grid */
.ftm-team-members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.ftm-member-profile-card {
  background: #ffffff;
  border: 1px solid var(--ftm-border);
  border-radius: var(--ftm-radius-lg);
  padding: 24px;
  text-align: center;
  box-shadow: var(--ftm-shadow-xs);
  transition: all 0.2s ease;
}

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

.ftm-member-avatar-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
}

.ftm-member-avatar-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.ftm-member-card-name {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 2px 0;
}

.ftm-member-card-role {
  font-size: 12px;
  color: var(--ftm-text-muted);
  margin-bottom: 16px;
}

.ftm-member-metrics-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px 8px;
  background-color: #f8fafc;
  border-radius: var(--ftm-radius-md);
  margin-bottom: 16px;
}

.ftm-metric-item {
  display: flex;
  flex-direction: column;
}

.ftm-metric-val {
  font-size: 16px;
  font-weight: 700;
  color: var(--ftm-text-primary);
}

.ftm-metric-lbl {
  font-size: 11px;
  color: var(--ftm-text-muted);
  font-weight: 500;
}

/* Fiverr Profiles Grid */
.ftm-profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.ftm-profile-card {
  background: #ffffff;
  border: 1px solid var(--ftm-border);
  border-radius: var(--ftm-radius-lg);
  padding: 22px;
  box-shadow: var(--ftm-shadow-xs);
}

.ftm-profile-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

/* Modals */
.ftm-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: ftmFadeIn 0.2s ease;
}

.ftm-modal-dialog {
  background-color: #ffffff;
  border-radius: var(--ftm-radius-xl);
  width: 100%;
  max-width: 580px;
  box-shadow: var(--ftm-shadow-xl);
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: ftmScaleUp 0.2s ease;
}

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

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

.ftm-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.ftm-modal-close-icon {
  background: transparent;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: var(--ftm-text-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--ftm-radius-sm);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ftm-modal-close-icon:hover {
  color: var(--ftm-text-primary);
  background-color: #f1f5f9;
}

.ftm-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.ftm-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--ftm-border);
  background-color: #fafbfc;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.ftm-form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.ftm-col-6 {
  flex: 1;
}

.ftm-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.ftm-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ftm-text-secondary);
}

/* User & Avatar Components */
.ftm-avatar {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: inline-block;
  background-color: #e2e8f0;
}

.ftm-avatar-sm {
  width: 26px;
  height: 26px;
  border-radius: 50%;
}

.ftm-avatar-md {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.ftm-user-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ftm-text-primary);
}

.ftm-user-inline span {
  font-weight: 600;
  color: var(--ftm-text-primary);
}

/* Details Modal Grid */
.ftm-details-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  padding: 16px;
  background-color: #f8fafc;
  border: 1px solid var(--ftm-border);
  border-radius: var(--ftm-radius-md);
  margin-bottom: 20px;
}

.ftm-detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.ftm-detail-label {
  font-size: 11.5px;
  color: var(--ftm-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.ftm-detail-value {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ftm-text-primary);
}

.ftm-status-changer-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border: 1px solid var(--ftm-border);
  border-radius: var(--ftm-radius-md);
  margin-bottom: 20px;
  background: #ffffff;
}

.ftm-quick-status-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ftm-details-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--ftm-border);
  margin-bottom: 18px;
}

.ftm-detail-tab-btn {
  background: transparent;
  border: none;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ftm-text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.ftm-detail-tab-btn.active {
  color: var(--ftm-primary);
  border-bottom-color: var(--ftm-primary);
}

/* Timeline */
.ftm-timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-left: 12px;
  position: relative;
}

.ftm-timeline::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 20px;
  width: 2px;
  background-color: var(--ftm-border);
}

.ftm-timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
}

.ftm-timeline-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 3px solid var(--ftm-primary);
  z-index: 2;
  margin-top: 2px;
}

.ftm-timeline-content {
  background-color: #f8fafc;
  border: 1px solid var(--ftm-border);
  border-radius: var(--ftm-radius-md);
  padding: 10px 14px;
  flex: 1;
}

.ftm-timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 12.5px;
}

/* Notes Feed */
.ftm-notes-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.ftm-note-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background-color: #f8fafc;
  border-radius: var(--ftm-radius-md);
  border: 1px solid var(--ftm-border);
}

/* Dropdown Menus */
.ftm-alerts-trigger-wrap, .ftm-user-menu-wrap {
  position: relative;
}

.ftm-dropdown-card {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  background: #ffffff;
  border-radius: var(--ftm-radius-lg);
  box-shadow: var(--ftm-shadow-xl);
  border: 1px solid var(--ftm-border);
  z-index: 50;
  overflow: hidden;
  animation: ftmScaleUp 0.15s ease;
}

.ftm-dropdown-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--ftm-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ftm-dropdown-header h4 {
  margin: 0;
  font-size: 14px;
}

.ftm-dropdown-alerts-body {
  max-height: 280px;
  overflow-y: auto;
  padding: 8px 12px;
}

.ftm-dropdown-user-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--ftm-border);
  background-color: #f8fafc;
}

.ftm-dropdown-list {
  list-style: none;
  margin: 0;
  padding: 6px;
}

.ftm-dropdown-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  color: var(--ftm-text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--ftm-radius-sm);
  transition: all 0.15s;
}

.ftm-dropdown-list a:hover {
  background-color: var(--ftm-border-light);
  color: var(--ftm-primary);
}

/* Toast Container */
.ftm-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 200;
}

.ftm-toast {
  padding: 12px 18px;
  background-color: #0f172a;
  color: #ffffff;
  border-radius: var(--ftm-radius-md);
  box-shadow: var(--ftm-shadow-lg);
  font-size: 13.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: ftmSlideUp 0.2s ease;
}

.ftm-toast-success { background-color: #065f46; border-left: 4px solid #34d399; }
.ftm-toast-error   { background-color: #881337; border-left: 4px solid #f43f5e; }

/* Login Screen Styles */
.ftm-login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: radial-gradient(circle at 50% 0%, #e0e7ff 0%, #f8fafc 100%);
  padding: 20px;
}

.ftm-login-container {
  width: 100%;
  max-width: 440px;
}

.ftm-login-card {
  background: #ffffff;
  border: 1px solid var(--ftm-border);
  border-radius: var(--ftm-radius-xl);
  padding: 36px 32px;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.06), 0 8px 10px -6px rgba(0,0,0,0.04);
}

.ftm-login-brand {
  text-align: center;
  margin-bottom: 28px;
}

.ftm-login-brand h2 {
  margin: 0 0 6px 0;
  font-size: 22px;
  font-weight: 800;
}

.ftm-login-brand p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ftm-text-secondary);
}

.ftm-login-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 12px;
  color: var(--ftm-text-muted);
}

.ftm-alert-danger {
  padding: 10px 14px;
  background-color: #fee2e2;
  color: #991b1b;
  border-radius: var(--ftm-radius-md);
  margin-bottom: 18px;
  font-size: 13px;
}

/* Utilities */
.hidden { display: none !important; }
.ftm-text-danger { color: #ef4444; }
.ftm-text-muted { color: var(--ftm-text-muted); }
.ftm-text-xs { font-size: 11px; }
.ftm-text-sm { font-size: 12.5px; }
.ftm-font-medium { font-weight: 500; }
.ftm-font-semibold { font-weight: 600; }
.ftm-text-right { text-align: right; }
.ftm-flex-between { display: flex; align-items: center; justify-content: space-between; }
.ftm-mobile-only { display: none; }

.ftm-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0,0,0,0.1);
  border-top-color: var(--ftm-primary);
  border-radius: 50%;
  animation: ftmSpin 0.7s linear infinite;
}

/* Animations */
@keyframes ftmSpin { to { transform: rotate(360deg); } }
@keyframes ftmFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes ftmScaleUp { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
@keyframes ftmSlideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Responsive Media Queries */
@media (max-width: 1320px) {
  .ftm-stats-cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1180px) {
  .ftm-main-container {
    grid-template-columns: 220px 1fr;
  }
}

@media (max-width: 900px) {
  .ftm-main-container {
    grid-template-columns: 1fr;
  }
  .ftm-sidebar {
    position: fixed;
    top: 68px;
    bottom: 0;
    left: -260px;
    width: 250px;
    z-index: 45;
    transition: left 0.3s ease;
    box-shadow: var(--ftm-shadow-xl);
  }
  .ftm-sidebar.open {
    left: 0;
  }
  .ftm-mobile-only {
    display: inline-flex;
  }
  .ftm-stats-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ftm-filter-grid {
    grid-template-columns: 1fr 1fr;
  }
  .ftm-search-input-wrap {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .ftm-main-workspace {
    padding: 16px;
  }
  .ftm-stats-cards-grid {
    grid-template-columns: 1fr;
  }
  .ftm-filter-grid {
    grid-template-columns: 1fr;
  }
  .ftm-search-input-wrap {
    grid-column: span 1;
  }
  .ftm-details-grid {
    grid-template-columns: 1fr 1fr;
  }
  .ftm-form-row {
    flex-direction: column;
  }
}

/* Star Rating & Review Elements */
.ftm-star-rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  margin-top: 4px;
  white-space: nowrap;
}

.ftm-no-review-pill {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
  padding: 2px 7px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 600;
  margin-top: 4px;
  white-space: nowrap;
}

.ftm-review-box,
.ftm-details-review-card {
  transition: all 0.25s ease;
  box-shadow: 0 1px 3px rgba(22, 163, 74, 0.08);
}

/* Settings Dashboard Styles */
.ftm-settings-container-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
  width: 100%;
}

.ftm-settings-box {
  background: #ffffff;
  border-radius: var(--ftm-radius-xl);
  border: 1px solid var(--ftm-border);
  padding: 28px;
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.05), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  width: 100%;
}

.ftm-settings-box-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--ftm-border-light);
}

.ftm-box-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ftm-settings-box-title {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ftm-text-primary);
  margin: 0 0 3px 0;
}

.ftm-settings-box-sub {
  font-size: 12.5px;
  color: var(--ftm-text-secondary);
  margin: 0;
}

.ftm-settings-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
}

/* Modern Form Elements */
.ftm-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
  width: 100%;
}

.ftm-form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 3px;
  line-height: 1.3;
}

.ftm-badge-readonly {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  background-color: #f1f5f9;
  color: #64748b;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ftm-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
}

/* Input Icon Wrap */
.ftm-input-icon-wrap {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.ftm-input-icon {
  position: absolute;
  left: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  pointer-events: none;
  z-index: 2;
  transition: color 0.2s ease;
}

.ftm-input-icon-wrap:focus-within .ftm-input-icon {
  color: var(--ftm-primary);
}

.ftm-form-control {
  width: 100%;
  box-sizing: border-box;
  height: 46px;
  padding: 11px 16px;
  font-size: 14px;
  font-family: inherit;
  font-weight: 500;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  background-color: #ffffff;
  color: #0f172a;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.ftm-form-control::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.ftm-form-control.ftm-has-icon {
  padding-left: 42px !important;
}

.ftm-form-control.ftm-has-toggle {
  padding-right: 48px !important;
}

.ftm-form-control:focus {
  border-color: var(--ftm-primary) !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14) !important;
}

.ftm-readonly-input {
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #475569 !important;
  font-weight: 600 !important;
  cursor: not-allowed;
}

/* Password Visibility Toggle */
.ftm-password-input-wrap {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.ftm-toggle-pwd-btn {
  position: absolute;
  right: 8px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.15s ease;
  z-index: 3;
}

.ftm-toggle-pwd-btn:hover {
  color: var(--ftm-primary);
  background-color: #eff6ff;
}

/* Avatar Upload Component */
.ftm-avatar-upload-section {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: var(--ftm-radius-lg);
  margin-bottom: 18px;
  transition: border-color 0.2s ease;
}

.ftm-avatar-upload-section:hover {
  border-color: #94a3b8;
}

.ftm-avatar-preview-wrap {
  position: relative;
  width: 76px;
  height: 76px;
  flex-shrink: 0;
}

.ftm-settings-avatar-img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.ftm-avatar-edit-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ftm-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  transition: transform 0.2s ease, background-color 0.2s ease;
  border: 2px solid #ffffff;
}

.ftm-avatar-edit-badge:hover {
  transform: scale(1.1);
  background: var(--ftm-primary-hover);
}

.ftm-avatar-upload-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ftm-avatar-btn-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ftm-avatar-hint {
  font-size: 11.5px;
  color: var(--ftm-text-muted);
  line-height: 1.4;
}

/* Avatar Presets */
.ftm-avatar-presets-wrap {
  margin-bottom: 18px;
  padding: 12px 16px;
  background: #ffffff;
  border: 1.5px solid var(--ftm-border);
  border-radius: var(--ftm-radius-md);
}

.ftm-avatar-presets-list {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ftm-preset-avatar-btn {
  background: none;
  border: 2px solid transparent;
  border-radius: 50%;
  padding: 2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.ftm-preset-avatar-btn img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f1f5f9;
  display: block;
}

.ftm-preset-avatar-btn:hover {
  transform: scale(1.15);
  border-color: var(--ftm-primary);
}

.ftm-preset-avatar-btn.active {
  border-color: var(--ftm-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
  transform: scale(1.1);
}

/* Form Feedback Boxes */
.ftm-form-feedback {
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  margin-top: 14px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: ftmFadeIn 0.2s ease;
}

.ftm-form-feedback.success {
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.ftm-form-feedback.error {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.ftm-settings-action-row {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  justify-content: flex-end;
}

/* Button Upgrades */
.ftm-btn-primary {
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%) !important;
  color: #ffffff !important;
  padding: 11px 22px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  border-radius: 10px !important;
  border: 1px solid #1d4ed8 !important;
  box-shadow: 0 2px 5px rgba(37, 99, 235, 0.25) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.ftm-btn-primary:hover {
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35) !important;
}

.ftm-btn-purple {
  background: linear-gradient(180deg, #8b5cf6 0%, #7c3aed 100%) !important;
  color: #ffffff !important;
  padding: 11px 22px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  border-radius: 10px !important;
  border: 1px solid #6d28d9 !important;
  box-shadow: 0 2px 5px rgba(124, 58, 237, 0.25) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.ftm-btn-purple:hover {
  background: linear-gradient(180deg, #7c3aed 0%, #6d28d9 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35) !important;
}

/* Settings Info Card (Bottom) */
.ftm-settings-info-card {
  background: #ffffff;
  border-radius: var(--ftm-radius-xl);
  border: 1px solid var(--ftm-border);
  padding: 26px;
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.05);
}

.ftm-settings-badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.ftm-info-stat-box {
  background: #f8fafc;
  border: 1.5px solid var(--ftm-border-light);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ftm-info-stat-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ftm-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.ftm-info-stat-val {
  margin-top: 2px;
}

.ftm-info-stat-desc {
  font-size: 12px;
  color: var(--ftm-text-muted);
}

/* Assigned Members Table Cell & Multi-Select Component */
.ftm-assigned-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 180px;
}

.ftm-assignee-stack-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ftm-assignee-avatar-stack {
  display: inline-flex;
  align-items: center;
}

.ftm-assignee-avatar-stack img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  margin-left: -10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  background-color: #f1f5f9;
}

.ftm-assignee-avatar-stack img:first-child {
  margin-left: 0;
}

.ftm-assignee-names-wrap {
  display: flex;
  flex-direction: column;
}

.ftm-assignee-primary-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ftm-text-primary);
  line-height: 1.25;
}

.ftm-assignee-role-tag {
  font-size: 11px;
  color: var(--ftm-text-muted);
}

/* Assignee Tooltip & Popover */
.ftm-assignee-tooltip-wrap {
  position: relative;
  display: inline-block;
}

.ftm-assignee-extra-badge {
  font-size: 10.5px;
  font-weight: 700;
  color: #2563eb;
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 1px 7px;
  border-radius: 10px;
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  width: fit-content;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ftm-assignee-extra-badge:hover {
  background-color: #dbeafe;
  border-color: #93c5fd;
  color: #1d4ed8;
  transform: translateY(-1px);
}

.ftm-assignee-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: #0f172a;
  color: #ffffff;
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.45), 0 8px 12px -6px rgba(0, 0, 0, 0.3);
  z-index: 999;
  width: max-content;
  min-width: 180px;
  max-width: 280px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.ftm-assignee-popover::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent #0f172a transparent;
}

.ftm-assignee-tooltip-wrap:hover .ftm-assignee-popover {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.ftm-assignee-popover.drop-up {
  top: auto;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
}

.ftm-assignee-popover.drop-up::after {
  bottom: auto;
  top: 100%;
  border-color: #0f172a transparent transparent transparent;
}

.ftm-assignee-tooltip-wrap:hover .ftm-assignee-popover.drop-up {
  transform: translateX(-50%) translateY(0);
}

.ftm-popover-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
  padding-bottom: 6px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.ftm-popover-members {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ftm-popover-member-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ftm-popover-member-item img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  background-color: #334155;
}

.ftm-popover-member-name {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.2;
}

.ftm-popover-member-role {
  font-size: 10.5px;
  color: #93c5fd;
}

.ftm-assignee-edit-btn {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 5px 8px;
  color: #475569;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.ftm-assignee-edit-btn:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.15);
}

/* Multi-Select Dropdown Component in Forms */
.ftm-multi-select-wrap {
  position: relative;
  width: 100%;
}

.ftm-multi-select-toggle {
  width: 100%;
  box-sizing: border-box;
  height: 44px;
  padding: 10px 14px;
  font-size: 13.5px;
  font-family: inherit;
  font-weight: 500;
  border: 1.5px solid var(--ftm-border);
  border-radius: var(--ftm-radius-md);
  background: #ffffff;
  color: var(--ftm-text-primary);
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.ftm-multi-select-toggle:hover {
  border-color: #cbd5e1;
}

.ftm-multi-select-toggle:focus {
  border-color: var(--ftm-primary);
  box-shadow: 0 0 0 3.5px rgba(37, 99, 235, 0.14);
}

.ftm-multi-select-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--ftm-border);
  border-radius: var(--ftm-radius-md);
  box-shadow: var(--ftm-shadow-xl);
  z-index: 80;
  max-height: 240px;
  overflow-y: auto;
  padding: 8px;
  animation: ftmScaleUp 0.15s ease;
}

/* Quick Assign Checkbox List */
.ftm-quick-assign-list,
.ftm-multi-select-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 260px;
  overflow-y: auto;
  padding: 2px;
}

.ftm-assignee-checkbox-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  user-select: none;
}

.ftm-assignee-checkbox-item:hover {
  background-color: #f8fafc;
  border-color: #e2e8f0;
}

.ftm-assignee-checkbox-item.checked {
  background-color: #eff6ff;
  border-color: #bfdbfe;
}

.ftm-assignee-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ftm-assignee-user-info img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #f1f5f9;
}

.ftm-assignee-user-info .ftm-user-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ftm-text-primary);
  line-height: 1.2;
}

.ftm-assignee-user-info .ftm-user-subtitle {
  font-size: 11px;
  color: var(--ftm-text-muted);
}

.ftm-assignee-custom-cb {
  width: 18px;
  height: 18px;
  accent-color: var(--ftm-primary);
  cursor: pointer;
}


