/* ==========================================================================
   FEEDRATE WORKS FOLLOW-UP MANAGER - COMPONENT STYLES
   ========================================================================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  user-select: none;
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #4f46e5);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 10px var(--primary-glow);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  box-shadow: 0 4px 16px var(--primary-glow);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border-color: var(--border-medium);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-prominent);
}

.btn-sync-all {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(99, 102, 241, 0.15));
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 0 12px var(--accent-cyan-glow);
}
.btn-sync-all:hover {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(99, 102, 241, 0.25));
  border-color: #38bdf8;
  box-shadow: 0 0 18px var(--accent-cyan-glow);
  transform: translateY(-1px);
}

.btn-success {
  background: linear-gradient(135deg, var(--success), #059669);
  color: #fff;
}
.btn-success:hover {
  box-shadow: 0 4px 14px var(--success-glow);
  transform: translateY(-1px);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger), #e11d48);
  color: #fff;
}

.btn-icon {
  padding: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-muted);
}
.btn-icon:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.btn-icon-xs {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 2px;
  display: inline-flex;
  align-items: center;
}
.btn-icon-xs:hover {
  color: #fff;
}

.btn-block {
  width: 100%;
}

.spin {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* Workspace Header Card */
.workspace-header {
  padding: 20px 24px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.workspace-title-area {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mailbox-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
}

.mailbox-avatar svg {
  width: 24px;
  height: 24px;
}

.workspace-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.workspace-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

.meta-divider {
  color: var(--border-prominent);
}

.capacity-badge {
  padding: 2px 8px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-full);
  color: var(--primary-light);
  font-weight: 600;
}

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

/* Today's Follow-up Workload Banner */
.today-workload-banner {
  background: linear-gradient(135deg, rgba(24, 34, 50, 0.8), rgba(15, 23, 42, 0.8));
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.banner-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.banner-stat-item {
  display: flex;
  flex-direction: column;
}

.banner-stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.banner-stat-value {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}

.progress-container {
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(to right, var(--primary), var(--success));
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.progress-label {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

/* Task Cards & Rows */
.task-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.task-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.task-card:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--border-medium);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.task-card.is-sent {
  opacity: 0.65;
  background: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.2);
}

.task-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.custom-checkbox {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-prominent);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.custom-checkbox:hover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
}

.custom-checkbox.checked {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.task-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.task-lead-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.task-lead-email {
  font-size: 12px;
  color: var(--text-muted);
}

.task-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
}

.stage-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stage-badge.fu1 {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.stage-badge.fu2 {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.stage-badge.fu3 {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
}
.status-badge.active {
  background: rgba(6, 182, 212, 0.12);
  color: #22d3ee;
}
.status-badge.qualified {
  background: var(--success-bg);
  color: var(--success);
}
.status-badge.discarded {
  background: var(--danger-bg);
  color: var(--danger);
}
.status-badge.replied {
  background: var(--warning-bg);
  color: var(--warning);
}

.task-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Three Dot Actions Menu */
.actions-menu-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.menu-trigger {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.menu-trigger:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: var(--border-medium);
}

/* Floating Portal Action Menu (Never clipped by table containers or cards) */
.floating-action-menu {
  position: fixed;
  z-index: 1000000;
  min-width: 270px;
  background: #151d2c;
  background: linear-gradient(180deg, #192438 0%, #0f1624 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(99, 102, 241, 0.35);
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  white-space: nowrap;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  animation: menuPopIn 0.12s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: calc(100vh - 30px);
  overflow-y: auto;
}

.floating-action-menu.hidden {
  display: none !important;
}

@keyframes menuPopIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.dropdown-menu {
  display: none !important; /* Replaced by global floating-action-menu */
}

.menu-header {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #94a3b8;
  padding: 6px 10px 2px;
  user-select: none;
}

.menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 4px 0;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: #f8fafc;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
  width: 100%;
}

.menu-item svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: #cbd5e1;
  transition: color var(--transition-fast);
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.menu-item:hover svg {
  color: #ffffff;
}

.menu-item.stage-opt {
  color: #e0e7ff;
}
.menu-item.stage-opt svg {
  color: #818cf8;
}
.menu-item.stage-opt:hover {
  background: rgba(99, 102, 241, 0.25);
  color: #ffffff;
}
.menu-item.stage-opt:hover svg {
  color: #c7d2fe;
}
.menu-item.stage-opt.active-stage {
  background: rgba(99, 102, 241, 0.22);
  color: #a5b4fc;
  font-weight: 600;
}

.menu-item.success {
  color: #a7f3d0;
}
.menu-item.success svg {
  color: #34d399;
}
.menu-item.success:hover {
  background: rgba(16, 185, 129, 0.22);
  color: #ffffff;
}
.menu-item.success:hover svg {
  color: #ffffff;
}

.menu-item.warning {
  color: #fde68a;
}
.menu-item.warning svg {
  color: #fbbf24;
}
.menu-item.warning:hover {
  background: rgba(245, 158, 11, 0.22);
  color: #ffffff;
}
.menu-item.warning:hover svg {
  color: #ffffff;
}

.menu-item.info {
  color: #bae6fd;
}
.menu-item.info svg {
  color: #38bdf8;
}
.menu-item.info:hover {
  background: rgba(56, 189, 248, 0.22);
  color: #ffffff;
}
.menu-item.info:hover svg {
  color: #ffffff;
}

.menu-item.danger {
  color: #fca5a5;
}
.menu-item.danger svg {
  color: #f87171;
}
.menu-item.danger:hover {
  background: rgba(244, 63, 94, 0.25);
  color: #ffffff;
}
.menu-item.danger:hover svg {
  color: #ffffff;
}

/* Password eye button & helper badge */
.btn-toggle-eye {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
}

.btn-toggle-eye:hover {
  color: #ffffff;
}

.space-warning-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fde68a;
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  font-size: 11px;
  margin-top: 6px;
}

.space-warning-badge button {
  background: rgba(245, 158, 11, 0.3);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fff;
  border-radius: 3px;
  padding: 1px 6px;
  font-size: 10px;
  cursor: pointer;
}

/* Leads Table View */
.table-container {
  overflow-x: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

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

.data-table th {
  padding: 12px 16px;
  background: rgba(12, 16, 23, 0.5);
  color: var(--text-dim);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Needs Reconciliation Alert Box */
.reconciliation-card {
  padding: 16px 20px;
  background: rgba(245, 158, 11, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.rec-left {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.rec-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--warning-bg);
  color: var(--warning);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rec-reason {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.rec-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Modals */
.modal-overlay, .drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 9, 14, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-dialog {
  max-width: 520px;
  width: 100%;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

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

.modal-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
}
.modal-close:hover {
  color: #fff;
}

/* Form Styles */
.form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

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

.input-wrap input,
.input-wrap select,
.input-wrap textarea {
  width: 100%;
  padding: 10px 14px 10px 38px;
  background: var(--bg-glass-input);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font-main);
  font-size: 13px;
  outline: none;
  transition: border-color var(--transition-fast);
}

.input-wrap.no-icon input,
.input-wrap.no-icon select {
  padding-left: 14px;
}

.input-wrap input:focus,
.input-wrap select:focus,
.input-wrap textarea:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.input-icon {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--text-dim);
  pointer-events: none;
}

/* Slide-out Drawer */
.history-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 580px;
  background: var(--bg-dark);
  border-left: 1px solid var(--border-subtle);
  padding: 28px;
  overflow-y: auto;
  z-index: 1001;
  display: flex;
  flex-direction: column;
}

.timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  margin-top: 20px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 17px;
  width: 2px;
  background: var(--border-subtle);
}

.timeline-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  position: relative;
}

.timeline-node {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 2px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  flex-shrink: 0;
  z-index: 1;
}

.timeline-node.sent {
  border-color: var(--success);
  color: var(--success);
  background: var(--success-bg);
}

.timeline-node.reply {
  border-color: var(--warning);
  color: var(--warning);
  background: var(--warning-bg);
}

.timeline-content {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}

.timeline-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.timeline-date {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
}

.timeline-snippet {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  white-space: pre-wrap;
}

/* Calendar Schedule Grid */
.calendar-wrapper {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.calendar-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.calendar-weekday {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  padding: 8px 0;
  text-transform: uppercase;
}

.calendar-day-cell {
  min-height: 100px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.calendar-day-cell:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--border-medium);
}

.calendar-day-cell.is-today {
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.calendar-day-cell.is-other-month {
  opacity: 0.35;
}

.calendar-day-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.calendar-day-cell.is-today .calendar-day-num {
  color: var(--primary-light);
}

.day-total-badge {
  margin-top: 4px;
  padding: 2px 6px;
  background: rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-light);
  align-self: flex-start;
}

.day-stage-pills {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 6px;
}

.stage-pill {
  font-size: 10px;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 600;
}

.stage-pill.fu1 { background: rgba(99, 102, 241, 0.2); color: #818cf8; }
.stage-pill.fu2 { background: rgba(168, 85, 247, 0.2); color: #c084fc; }
.stage-pill.fu3 { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }

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

.toast {
  min-width: 280px;
  max-width: 400px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideIn 0.2s ease;
}

.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--danger); }
.toast.info { border-color: var(--primary); }

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

/* Authentication Screen */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: #07090e;
  background-image: 
    radial-gradient(circle at 50% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 60%),
    linear-gradient(to bottom, #07090e, #0c1017);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-card {
  max-width: 400px;
  width: 100%;
  padding: 36px 32px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-lg);
}

.auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.brand-icon {
  width: 14px;
  height: 14px;
  color: var(--primary-light);
}

.brand-sub {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary-light);
}

.auth-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}

.auth-desc {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
}

.auth-error {
  padding: 10px 14px;
  background: var(--danger-bg);
  border: 1px solid rgba(244, 63, 94, 0.3);
  border-radius: var(--radius-md);
  color: #fecdd3;
  font-size: 12px;
  margin-bottom: 16px;
}

/* ==========================================================================
   HTML LEADS & FOLLOW-UP TEMPLATE STYLES
   ========================================================================== */

/* Copy Buttons & Feedback */
.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.btn-copy-ok {
  background: rgba(16, 185, 129, 0.2) !important;
  border-color: rgba(16, 185, 129, 0.6) !important;
  color: #34d399 !important;
  transform: scale(1.03);
}

.btn-copy-fail {
  background: rgba(244, 63, 94, 0.2) !important;
  border-color: rgba(244, 63, 94, 0.6) !important;
  color: #fda4af !important;
}

/* Quick Copy Button on Task Cards */
.btn-task-copy-fu {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(6, 182, 212, 0.15));
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #c7d2fe;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all var(--transition-fast);
}
.btn-task-copy-fu:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(6, 182, 212, 0.3));
  border-color: var(--primary-light);
  color: #fff;
  transform: translateY(-1px);
}

.btn-copy-all-fu {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-medium);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: var(--radius-sm);
}
.btn-copy-all-fu:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Company and Metadata styling on Task Cards */
.company-pill {
  display: inline-block;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: var(--radius-full);
  margin-left: 6px;
  vertical-align: middle;
}

.task-web-link {
  color: var(--accent-cyan);
  text-decoration: none;
  font-size: 11px;
  transition: color var(--transition-fast);
}
.task-web-link:hover {
  text-decoration: underline;
  color: #67e8f9;
}

/* HTML File Dropzone */
.html-dropzone {
  border: 2px dashed rgba(99, 102, 241, 0.35);
  background: rgba(18, 24, 36, 0.6);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}
.html-dropzone:hover, .html-dropzone.dragover {
  border-color: var(--primary-light);
  background: rgba(99, 102, 241, 0.1);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.dropzone-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  color: var(--primary-light);
  opacity: 0.9;
}

.dropzone-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.dropzone-subtitle {
  font-size: 12px;
  color: var(--text-dim);
}

/* Comparison Metric Cards */
.comparison-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.comp-metric-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  text-align: center;
}

.comp-metric-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.comp-metric-value {
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-display);
  color: #fff;
}

.comp-metric-card.matched {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.06);
}
.comp-metric-card.matched .comp-metric-value {
  color: #34d399;
}

.comp-metric-card.other {
  border-color: rgba(6, 182, 212, 0.3);
  background: rgba(6, 182, 212, 0.06);
}
.comp-metric-card.other .comp-metric-value {
  color: #38bdf8;
}

.comp-metric-card.unmatched {
  border-color: rgba(245, 158, 11, 0.25);
  background: rgba(245, 158, 11, 0.05);
}
.comp-metric-card.unmatched .comp-metric-value {
  color: #fbbf24;
}

/* Follow-up Sequence Drawer and Modal Display */
.followup-script-box {
  background: #0d121c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 16px;
  position: relative;
  transition: border-color var(--transition-fast);
}
.followup-script-box:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.followup-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.followup-box-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.followup-box-content {
  font-size: 13px;
  line-height: 1.55;
  color: #e2e8f0;
  white-space: pre-wrap;
  word-break: break-word;
}

.copy-all-banner {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(6, 182, 212, 0.1));
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   CALENDAR WORKLOAD & STAGE-SPECIFIC COPY STYLES
   ========================================================================== */

.calendar-day-cell {
  cursor: pointer;
  position: relative;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.calendar-day-cell:hover {
  border-color: rgba(99, 102, 241, 0.5) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.calendar-day-cell.is-selected-workload-date {
  border-color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.08) !important;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
}

.cal-open-hint {
  margin-top: 6px;
  font-size: 10px;
  font-weight: 600;
  color: #38bdf8;
  opacity: 0.85;
  display: flex;
  align-items: center;
  gap: 3px;
  transition: opacity 0.2s;
}

.calendar-day-cell:hover .cal-open-hint {
  opacity: 1;
  color: #7dd3fc;
  text-decoration: underline;
}

/* Workload Date Navigation Controls */
.workload-quick-date-picker {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.workload-quick-date-picker:hover,
.workload-quick-date-picker:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.3);
}

.today-glow-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #34d399;
  text-transform: uppercase;
}

/* Stage-specific Copy Button Accents */
.btn-copy-respective-fu {
  font-weight: 600;
  transition: all 0.18s ease;
}

.btn-copy-respective-fu.stage-fu1 {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(79, 70, 229, 0.3));
  border: 1px solid rgba(99, 102, 241, 0.5);
  color: #c7d2fe;
}
.btn-copy-respective-fu.stage-fu1:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.35), rgba(79, 70, 229, 0.45));
  border-color: #818cf8;
  color: #fff;
  transform: translateY(-1px);
}

.btn-copy-respective-fu.stage-fu2 {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(217, 119, 6, 0.28));
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fde68a;
}
.btn-copy-respective-fu.stage-fu2:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(217, 119, 6, 0.4));
  border-color: #fbbf24;
  color: #fff;
  transform: translateY(-1px);
}

.btn-copy-respective-fu.stage-fu3 {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.18), rgba(147, 51, 234, 0.28));
  border: 1px solid rgba(168, 85, 247, 0.5);
  color: #e9d5ff;
}
.btn-copy-respective-fu.stage-fu3:hover {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(147, 51, 234, 0.4));
  border-color: #c084fc;
  color: #fff;
  transform: translateY(-1px);
}

/* ==========================================================================
   SINGLE-USER OTP AUTHENTICATION & DEVICE MEMORY STYLES
   ========================================================================== */

.auth-prompt-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.otp-instruction-sub {
  font-size: 12.5px;
  color: #94a3b8;
  margin: -4px 0 12px 0;
  line-height: 1.45;
}

.otp-input-container {
  display: flex;
  justify-content: center;
  margin: 8px 0;
}

.otp-code-input {
  width: 100% !important;
  text-align: center;
  font-family: 'Outfit', 'Inter', monospace !important;
  font-size: 32px !important;
  font-weight: 800 !important;
  letter-spacing: 12px !important;
  color: #38bdf8 !important;
  padding: 12px 16px !important;
  background: rgba(15, 23, 42, 0.9) !important;
  border: 2px solid rgba(56, 189, 248, 0.4) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.15);
  transition: all 0.2s ease !important;
}

.otp-code-input:focus {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.35) !important;
  outline: none !important;
}

.device-memory-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-sm);
  color: #34d399;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 16px;
}

.device-memory-badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: #34d399;
}

.auth-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.btn-text-link {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 6px;
  transition: color 0.15s ease;
  font-family: inherit;
}

.btn-text-link:hover {
  color: #38bdf8;
  text-decoration: underline;
}

.auth-sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: 12px;
}

/* Blocked Access Screen */
.auth-blocked-view {
  text-align: center;
  padding: 24px 12px;
}

.blocked-badge-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.15);
  border: 2px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px auto;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

.blocked-badge-icon svg {
  width: 30px;
  height: 30px;
}

.blocked-heading {
  font-size: 20px;
  font-weight: 700;
  color: #fca5a5;
  margin: 0 0 8px 0;
}

.blocked-message {
  font-size: 13.5px;
  color: #cbd5e1;
  line-height: 1.5;
  max-width: 320px;
  margin: 0 auto;
}



