@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700&display=swap');/* ==========================================================================
   PrintAgentX - File Explorer Modern Glassmorphism Theme
   Inspired by macOS / Windows 11 Fluent Frosted Glass & Floating Cards
   ========================================================================== */

:root {
  --fe-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", "Helvetica Neue", sans-serif;
  --fe-bg-glass: rgba(255, 255, 255, 0.78);
  --fe-bg-glass-card: rgba(255, 255, 255, 0.88);
  --fe-bg-glass-card-hover: rgba(255, 255, 255, 0.98);
  --fe-border-glass: rgba(255, 255, 255, 0.8);
  --fe-border-subtle: rgba(226, 232, 240, 0.85);
  
  --fe-primary: #2563eb;
  --fe-primary-grad: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  --fe-primary-glow: rgba(37, 99, 235, 0.35);
  
  --fe-accent-cyan: #06b6d4;
  --fe-accent-emerald: #10b981;
  --fe-accent-amber: #f59e0b;
  --fe-accent-rose: #f43f5e;
  --fe-accent-purple: #8b5cf6;

  --fe-text-dark: #0f172a;
  --fe-text-body: #334155;
  --fe-text-muted: #64748b;
  --fe-text-subtle: #94a3b8;

  --fe-shadow-window: 0 30px 60px -15px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  --fe-shadow-card: 0 4px 16px -2px rgba(15, 23, 42, 0.04), 0 2px 4px -1px rgba(15, 23, 42, 0.02);
  --fe-shadow-hover: 0 12px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 8px -2px rgba(15, 23, 42, 0.04);
  --fe-shadow-pill: 0 6px 16px -3px var(--fe-primary-glow);

  --fe-radius-window: 28px;
  --fe-radius-card: 20px;
  --fe-radius-pill: 14px;
  --fe-radius-btn: 10px;
}

/* Base Container & Ambient Background */
.fe-ambient-wrapper {
  position: relative;
  width: 100%;
  padding: 10px 0 30px 0;
  font-family: var(--fe-font);
  color: var(--fe-text-body);
  box-sizing: border-box;
}

.fe-ambient-wrapper * {
  box-sizing: border-box;
}

/* The Main Glassmorphism Window */
.fe-window {
  background: var(--fe-bg-glass);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--fe-border-glass);
  border-radius: var(--fe-radius-window);
  box-shadow: var(--fe-shadow-window);
  display: flex;
  flex-direction: column;
  height: calc(100vh - 150px);
  min-height: 620px;
  max-height: 900px;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* macOS Window Header Bar */
.fe-window-header {
  height: 52px;
  background: rgba(255, 255, 255, 0.55);
  border-bottom: 1px solid var(--fe-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  user-select: none;
  flex-shrink: 0;
}

.fe-traffic-lights {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 80px;
}

.fe-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  transition: transform 0.15s ease, opacity 0.15s ease;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.fe-dot:hover {
  transform: scale(1.15);
}

.fe-dot-red {
  background: #ff5f56;
  border: 1px solid #e0443e;
}

.fe-dot-yellow {
  background: #ffbd2e;
  border: 1px solid #dea123;
}

.fe-dot-green {
  background: #27c93f;
  border: 1px solid #1aab29;
}

.fe-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
  color: var(--fe-text-dark);
  letter-spacing: -0.01em;
}

.fe-badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.fe-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
  animation: fe-pulse 2s infinite;
}

@keyframes fe-pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

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

/* Main Split Body */
.fe-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* ==========================================================================
   LEFT SIDEBAR (Navigation & Floating Cards)
   ========================================================================== */
.fe-sidebar {
  width: 290px;
  min-width: 260px;
  background: rgba(248, 250, 252, 0.45);
  border-right: 1px solid var(--fe-border-subtle);
  display: flex;
  flex-direction: column;
  padding: 16px 14px;
  gap: 14px;
  overflow-y: auto;
  flex-shrink: 0;
  user-select: none;
}

/* User / Station Profile Card (Reference top style) */
.fe-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--fe-bg-glass-card);
  border-radius: var(--fe-radius-pill);
  border: 1px solid var(--fe-border-glass);
  box-shadow: var(--fe-shadow-card);
}

.fe-avatar-wrap {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #4338ca;
  font-size: 15px;
  box-shadow: 0 2px 6px rgba(67, 56, 202, 0.2);
}

.fe-avatar-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: #10b981;
  border: 2px solid #ffffff;
  border-radius: 50%;
}

.fe-user-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.fe-user-sub {
  font-size: 11px;
  color: var(--fe-text-subtle);
  font-weight: 500;
}

.fe-user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--fe-text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Floating Card Container for Sections (Reference: "Service: 3" floating card) */
.fe-section-card {
  background: var(--fe-bg-glass-card);
  border-radius: var(--fe-radius-card);
  border: 1px solid var(--fe-border-glass);
  box-shadow: var(--fe-shadow-card);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fe-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 6px 6px 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fe-text-muted);
}

.fe-count-badge {
  background: rgba(148, 163, 184, 0.2);
  color: var(--fe-text-body);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 10px;
}

/* Nav Item Pill Button */
.fe-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--fe-radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--fe-text-body);
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  text-decoration: none;
}

.fe-nav-item:hover {
  background: rgba(255, 255, 255, 0.85);
  color: var(--fe-text-dark);
  transform: translateX(2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Active Nav Item (Reference: Vibrant Blue Pill with Shadow) */
.fe-nav-item.active {
  background: var(--fe-primary);
  background: var(--fe-primary-grad);
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: var(--fe-shadow-pill);
  transform: none;
}

.fe-nav-item.active .fe-nav-icon {
  color: #ffffff !important;
}

.fe-nav-item.active .fe-nav-extra {
  color: rgba(255, 255, 255, 0.8) !important;
}

.fe-nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.fe-nav-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fe-nav-extra {
  font-size: 11px;
  color: var(--fe-text-subtle);
  font-weight: 500;
}

/* Drive Usage Mini Progress Bar */
.fe-drive-bar-wrap {
  width: 100%;
  height: 4px;
  background: rgba(203, 213, 225, 0.4);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 4px;
}

.fe-drive-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* Sidebar Bottom Action Card (Reference: "Create new task" with big round blue +) */
.fe-cta-card {
  margin-top: auto;
  background: var(--fe-bg-glass-card);
  border-radius: var(--fe-radius-card);
  border: 1px solid var(--fe-border-glass);
  box-shadow: var(--fe-shadow-card);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.fe-cta-circle-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--fe-primary-grad);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 18px -2px var(--fe-primary-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fe-cta-circle-btn:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 22px -2px var(--fe-primary-glow);
}

.fe-cta-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--fe-text-dark);
}

.fe-cta-sub {
  font-size: 11px;
  color: var(--fe-text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   RIGHT CONTENT AREA (Explorer Pane)
   ========================================================================== */
.fe-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.4);
  overflow: hidden;
  position: relative;
}

/* Modern Header Bar: Breadcrumbs + Navigation + Actions + Search */
.fe-toolbar {
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.65);
  border-bottom: 1px solid var(--fe-border-subtle);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

.fe-toolbar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Nav Direction Buttons (Back, Forward, Up, Refresh) */
.fe-nav-btn-group {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--fe-bg-glass-card);
  padding: 3px;
  border-radius: 12px;
  border: 1px solid var(--fe-border-subtle);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.fe-icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--fe-text-body);
  transition: all 0.15s ease;
}

.fe-icon-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.9);
  color: var(--fe-text-dark);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.fe-icon-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Breadcrumb Address Bar (Pill Finder Style) */
.fe-address-pill {
  flex: 1;
  min-width: 240px;
  height: 36px;
  background: var(--fe-bg-glass-card);
  border-radius: var(--fe-radius-pill);
  border: 1px solid var(--fe-border-subtle);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  display: flex;
  align-items: center;
  padding: 0 12px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.fe-address-pill:focus-within,
.fe-address-pill.active {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
  background: #ffffff;
}

.fe-breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  overflow-x: auto;
  white-space: nowrap;
  font-size: 13px;
  scrollbar-width: none;
}

.fe-breadcrumb-list::-webkit-scrollbar {
  display: none;
}

.fe-crumb-btn {
  background: transparent;
  border: none;
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--fe-text-body);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.fe-crumb-btn:hover {
  background: rgba(59, 130, 246, 0.1);
  color: var(--fe-primary);
}

.fe-crumb-sep {
  color: var(--fe-text-subtle);
  font-size: 10px;
  user-select: none;
}

.fe-path-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-size: 12px;
  font-family: monospace;
  color: var(--fe-text-dark);
}

/* Search Bar (Capsule Pill) */
.fe-search-pill {
  width: 220px;
  height: 36px;
  background: var(--fe-bg-glass-card);
  border-radius: var(--fe-radius-pill);
  border: 1px solid var(--fe-border-subtle);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 8px;
  transition: all 0.2s ease;
}

.fe-search-pill:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
  background: #ffffff;
  width: 260px;
}

.fe-search-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-size: 12px;
  color: var(--fe-text-dark);
}

.fe-search-input::placeholder {
  color: var(--fe-text-subtle);
}

/* Action Buttons (Sao chép, Dán, Tải lên VPS, Lấy từ VPS) */
.fe-actions-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.fe-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  border-radius: var(--fe-radius-pill);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.fe-pill-btn-default {
  background: var(--fe-bg-glass-card);
  border-color: var(--fe-border-subtle);
  color: var(--fe-text-body);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.fe-pill-btn-default:hover:not(:disabled) {
  background: #ffffff;
  color: var(--fe-text-dark);
  border-color: rgba(203, 213, 225, 0.9);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.fe-pill-btn-primary {
  background: var(--fe-primary-grad);
  color: #ffffff;
  box-shadow: 0 4px 12px -2px var(--fe-primary-glow);
}

.fe-pill-btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -2px var(--fe-primary-glow);
}

.fe-pill-btn-accent {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px -2px rgba(14, 165, 233, 0.35);
}

.fe-pill-btn-accent:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -2px rgba(14, 165, 233, 0.45);
}

.fe-pill-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
}

/* View Mode Segmented Switcher (Grid vs List) */
.fe-view-switcher {
  display: flex;
  align-items: center;
  background: var(--fe-bg-glass-card);
  padding: 3px;
  border-radius: var(--fe-radius-pill);
  border: 1px solid var(--fe-border-subtle);
  margin-left: auto;
}

.fe-view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 28px;
  border-radius: 9px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--fe-text-subtle);
  transition: all 0.15s ease;
}

.fe-view-btn.active {
  background: #ffffff;
  color: var(--fe-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* ==========================================================================
   VIEW 1: GRID VIEW (Floating Cards)
   ========================================================================== */
.fe-grid-container {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
  align-content: flex-start;
}

.fe-file-card {
  min-width: 0;
  background: var(--fe-bg-glass-card);
  border-radius: var(--fe-radius-card);
  border: 1px solid var(--fe-border-glass);
  box-shadow: var(--fe-shadow-card);
  padding: 16px 14px 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.fe-file-card:hover {
  background: var(--fe-bg-glass-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--fe-shadow-hover);
  border-color: rgba(147, 197, 253, 0.7);
}

.fe-file-card.selected {
  background: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px #3b82f6, 0 12px 24px -4px rgba(59, 130, 246, 0.2);
}

.fe-card-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  background: rgba(241, 245, 249, 0.8);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease;
}

.fe-file-card:hover .fe-card-icon-wrap {
  transform: scale(1.08);
}

.fe-card-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--fe-text-dark);
  width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  margin-bottom: 4px;
}

.fe-card-meta {
  width: 100%;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 11px;
  color: var(--fe-text-muted);
}

.fe-card-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.18s ease;
}

.fe-file-card:hover .fe-card-actions {
  opacity: 1;
  transform: translateY(0);
}

.fe-mini-action-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(241, 245, 249, 0.9);
  border: 1px solid rgba(203, 213, 225, 0.6);
  color: var(--fe-text-body);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.fe-mini-action-btn:hover {
  background: #ffffff;
  color: var(--fe-primary);
  transform: scale(1.1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   VIEW 2: TABLE LIST VIEW (Detailed Modern Table)
   ========================================================================== */
.fe-table-container {
  flex: 1;
  overflow-y: auto;
  padding: 10px 18px 20px 18px;
}

.fe-table-card {
  background: var(--fe-bg-glass-card);
  border-radius: var(--fe-radius-card);
  border: 1px solid var(--fe-border-glass);
  box-shadow: var(--fe-shadow-card);
  overflow: hidden;
}

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

.fe-table thead {
  background: rgba(248, 250, 252, 0.85);
  border-bottom: 1px solid var(--fe-border-subtle);
  position: sticky;
  top: 0;
  z-index: 10;
}

.fe-table th {
  padding: 12px 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fe-text-muted);
  user-select: none;
}

.fe-table tbody tr {
  border-bottom: 1px solid rgba(241, 245, 249, 0.8);
  cursor: pointer;
  transition: all 0.15s ease;
}

.fe-table tbody tr:hover {
  background: rgba(239, 246, 255, 0.75);
}

.fe-table tbody tr.selected {
  background: rgba(219, 234, 254, 0.8);
}

.fe-table td {
  padding: 11px 14px;
  color: var(--fe-text-body);
  vertical-align: middle;
}

.fe-td-name {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--fe-text-dark);
}

/* Empty State & Loading State */
.fe-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  color: var(--fe-text-muted);
}

.fe-empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: rgba(241, 245, 249, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--fe-text-subtle);
}

/* Bottom Glass Status Bar */
.fe-status-bar {
  height: 40px;
  background: rgba(255, 255, 255, 0.7);
  border-top: 1px solid var(--fe-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  font-size: 12px;
  color: var(--fe-text-muted);
  user-select: none;
  flex-shrink: 0;
}

.fe-status-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fe-status-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fe-clipboard-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(59, 130, 246, 0.12);
  color: var(--fe-primary);
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 11px;
}

/* ==========================================================================
   MODAL OVERLAY & GLASS WINDOWS
   ========================================================================== */
.fe-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fe-fadeIn 0.2s ease-out;
}

.fe-modal-window {
  background: #ffffff;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px);
  border-radius: var(--fe-radius-window);
  border: 1px solid var(--fe-border-glass);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: fe-scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.fe-modal-header {
  padding: 16px 20px;
  background: rgba(248, 250, 252, 0.85);
  border-bottom: 1px solid var(--fe-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.fe-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(241, 245, 249, 0.9);
  color: var(--fe-text-body);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.fe-modal-close:hover {
  background: #f43f5e;
  color: #ffffff;
}

.fe-modal-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fe-modal-footer {
  padding: 14px 20px;
  background: rgba(248, 250, 252, 0.85);
  border-top: 1px solid var(--fe-border-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

/* Animations */
@keyframes fe-fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fe-scaleUp {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

/* Custom Sleek Scrollbar */
.fe-window ::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.fe-window ::-webkit-scrollbar-track {
  background: transparent;
}

.fe-window ::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.35);
  border-radius: 10px;
}

.fe-window ::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.6);
}

/* Cloud Tabs & Switcher */
.fe-modal-window-lg {
  max-width: 760px;
}

.fe-cloud-nav {
  display: flex;
  align-items: center;
  background: rgba(241, 245, 249, 0.85);
  padding: 4px;
  border-radius: 14px;
  gap: 4px;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.fe-cloud-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--fe-text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.fe-cloud-tab:hover {
  color: var(--fe-text-dark);
  background: rgba(255, 255, 255, 0.5);
}

.fe-cloud-tab.active {
  background: #ffffff;
  color: var(--fe-primary);
  box-shadow: 0 2px 8px -1px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* Source Header Pill */
.fe-source-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.fe-source-badge.success {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
}

/* Card Section */
.fe-card-section {
  background: rgba(248, 250, 252, 0.8);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
  padding: 16px;
}

/* Profile Banner */
.fe-profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 2px 6px -1px rgba(0, 0, 0, 0.04);
}

.fe-profile-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #3b82f6;
}

.fe-profile-avatar-fallback {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}


/* Auto-Gox Modern Design System */

:root {
  /* Colors */
  --bg-primary: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  
  /* Gradients */
  --grad-primary: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  --grad-secondary: linear-gradient(135deg, #0ea5e9 0%, #0369a1 100%);
  --grad-success: linear-gradient(135deg, #10b981 0%, #047857 100%);
  --grad-warning: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
  --grad-danger: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  --grad-purple: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  --grad-neutral: linear-gradient(135deg, #64748b 0%, #475569 100%);
  
  /* Priority Colors */
  --color-low: #10b981;
  --color-medium: #3b82f6;
  --color-high: #f59e0b;
  --color-urgent: #ef4444;

  /* Shadows */
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-premium: 0 20px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
  --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.15);

  /* Borders & Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', sans-serif;
  background: radial-gradient(circle at 12% 15%, rgba(224, 242, 254, 0.7) 0%, transparent 40%),
              radial-gradient(circle at 88% 25%, rgba(237, 233, 254, 0.7) 0%, transparent 35%),
              radial-gradient(circle at 50% 85%, rgba(224, 247, 250, 0.6) 0%, transparent 45%),
              #f8fafc;
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  padding-bottom: 80px;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header Styles */
header {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 700;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo svg {
  width: 32px;
  height: 32px;
  stroke: url(#blue-grad);
}

.btn-header-support {
  background-color: transparent;
  border: 1px solid #3b82f6;
  color: #2563eb;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.btn-header-support:hover {
  background-color: #eff6ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.1);
}

/* Computer Info section */
.sys-info-section {
  margin-top: 40px;
}

.section-title {
  font-size: 22px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
}

.section-title span.badge {
  font-size: 12px;
  padding: 4px 10px;
  background-color: #dbeafe;
  color: #1e40af;
  border-radius: var(--radius-full);
  font-weight: 500;
}

.sys-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.info-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--grad-primary);
}

.info-card.lan::before {
  background: var(--grad-secondary);
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-premium);
  border-color: #cbd5e1;
}

.info-card-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.info-card-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-card-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
  font-family: monospace;
}

.info-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #16a34a;
  background-color: #f0fdf4;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  position: relative;
}

.status-dot::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background-color: #22c55e;
  border-radius: 50%;
  opacity: 0.4;
  animation: pulse 1.8s infinite;
}

.btn-copy {
  background: none;
  border: 1px solid var(--border-color);
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.btn-copy:hover {
  background-color: #f1f5f9;
  color: var(--text-main);
  border-color: #cbd5e1;
}

/* Big Action Buttons & 2-Column Layout */
.installer-section {
  margin-top: 24px;
}

.task-selection-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 40px;
}

@media (max-width: 900px) {
  .task-selection-wrapper {
    grid-template-columns: 1fr;
  }
}

.task-banner-col {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.task-banner-img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.action-grid-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.action-grid-col .action-btn-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: left;
  padding: 20px 24px;
  gap: 20px;
  border-radius: var(--radius-lg);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
}

.action-grid-col .action-text-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.action-grid-col .action-icon-wrapper {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.action-btn-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* CTA Download Agent Pulsing Animation */
.download-agent-cta-section {
  margin-top: 32px;
  margin-bottom: 64px;
  padding-bottom: 24px;
}

@keyframes ctaPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6), 0 10px 25px -5px rgba(239, 68, 68, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 16px rgba(239, 68, 68, 0), 0 20px 35px -5px rgba(239, 68, 68, 0.6);
    transform: scale(1.02);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0), 0 10px 25px -5px rgba(239, 68, 68, 0.4);
    transform: scale(1);
  }
}

.download-cta-card {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  color: #ffffff;
  transition: var(--transition-smooth);
  animation: ctaPulse 1.8s infinite ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 520px;
  margin: 0 auto;
}

.download-cta-card:hover {
  transform: translateY(-4px) scale(1.03);
  animation-play-state: paused;
  box-shadow: 0 25px 45px -5px rgba(239, 68, 68, 0.7);
}

.download-cta-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.action-btn-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-premium), var(--shadow-glow);
  border-color: #93c5fd;
}

.action-btn-card.active {
  border-color: #3b82f6;
  background-color: #f8fafc;
  box-shadow: var(--shadow-premium), var(--shadow-glow);
}

.action-btn-card.active::after {
  content: '✓ Selected';
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 11px;
  background: var(--grad-primary);
  color: white;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 500;
}

.action-icon-wrapper {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: var(--transition-smooth);
}

.action-btn-card:nth-child(1) .action-icon-wrapper {
  background: var(--grad-primary);
}

.action-btn-card:nth-child(2) .action-icon-wrapper {
  background: var(--grad-secondary);
}

.action-btn-card:nth-child(3) .action-icon-wrapper {
  background: var(--grad-purple);
}

.action-btn-card:hover .action-icon-wrapper {
  transform: scale(1.1) rotate(3deg);
}

.action-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}

.action-desc {
  font-size: 14px;
  color: var(--text-muted);
}

/* Form Container and Cards */
.forms-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 48px;
}

/* For Side by side view when multiple is active */
.forms-layout-double {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 30px;
}

.form-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  display: none;
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transition: var(--transition-smooth);
}

.form-card.show {
  display: block;
}

.form-card-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.form-card-header svg {
  width: 24px;
  height: 24px;
  color: #3b82f6;
}

.form-card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
}

/* Custom form elements */
.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.form-select, .form-input, .form-textarea {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: #f8fafc;
  color: var(--text-main);
  outline: none;
  transition: var(--transition-smooth);
  width: 100%;
}

.form-select:focus, .form-input:focus, .form-textarea:focus {
  border-color: #3b82f6;
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Custom dropdown printer suggestion cards */
.printer-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-top: 8px;
  background-color: #ffffff;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.printer-item:hover {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
}

.printer-item.selected {
  background-color: #eff6ff;
  border-color: #3b82f6;
}

.printer-details {
  display: flex;
  align-items: center;
  gap: 12px;
}

.printer-icon {
  background-color: #dbeafe;
  color: #1e40af;
  padding: 8px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
}

.printer-info {
  display: flex;
  flex-direction: column;
}

.printer-model {
  font-weight: 600;
  font-size: 14px;
}

.printer-meta {
  font-size: 12px;
  color: var(--text-muted);
  font-family: monospace;
}

/* Submit Action Button */
.btn-submit-install {
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  color: white;
  background: var(--grad-primary);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  box-shadow: var(--shadow-sm);
}

.btn-submit-install:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-submit-install.install-scan {
  background: var(--grad-secondary);
}
.btn-test-auth {
  padding: 0 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-color);
  background: white;
  cursor: pointer;
  transition: var(--transition-smooth);
  height: 38px;
  margin-top: 19px;
}

.btn-test-auth:hover {
  background: var(--surface-color);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-test-auth:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.btn-submit-install.install-both {
  background: var(--grad-purple);
}

/* Config Scan Section (Toggles) */
.config-section {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  margin-bottom: 48px;
}

.toggle-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}

.toggle-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.toggle-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.toggle-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toggle-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
}

.toggle-desc {
  font-size: 13px;
  color: var(--text-muted);
}

/* iOS Toggle Switch Switch style */
.switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 30px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: .4s;
  border-radius: var(--radius-full);
}

.slider:before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

input:checked + .slider {
  background-color: #22c55e;
}

input:focus + .slider {
  box-shadow: 0 0 1px #22c55e;
}

input:checked + .slider:before {
  transform: translateX(22px);
}

/* Support Form Section */
.support-section {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

/* Custom Priority Buttons */
.priority-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 4px;
}

.priority-option {
  position: relative;
  display: flex;
}

.priority-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.priority-label {
  width: 100%;
  text-align: center;
  padding: 12px 6px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-transform: uppercase;
  color: var(--text-secondary);
}

.priority-label:hover {
  background-color: #f1f5f9;
}

/* Select states for priority */
.priority-option input:checked + .priority-label[for="prio-low"] {
  background-color: #ecfdf5;
  border-color: var(--color-low);
  color: #047857;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.priority-option input:checked + .priority-label[for="prio-medium"] {
  background-color: #eff6ff;
  border-color: var(--color-medium);
  color: #1d4ed8;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.priority-option input:checked + .priority-label[for="prio-high"] {
  background-color: #fffbeb;
  border-color: var(--color-high);
  color: #b45309;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.priority-option input:checked + .priority-label[for="prio-urgent"] {
  background-color: #fef2f2;
  border-color: var(--color-urgent);
  color: #b91c1c;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

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

.toast {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 5px solid #3b82f6;
  box-shadow: var(--shadow-lg), 0 10px 30px rgba(0,0,0,0.08);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  min-width: 320px;
  max-width: 420px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition: var(--transition-smooth);
}

.toast.success {
  border-left-color: #10b981;
}

.toast.warning {
  border-left-color: #f59e0b;
}

.toast.danger {
  border-left-color: #ef4444;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast-message {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
}

.toast-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.toast-close:hover {
  color: var(--text-main);
}

/* Animations */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.6);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 0.4;
  }
}

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

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

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

.toast.fade-out {
  animation: fadeOut 0.3s forwards;
}

/* Loading animations */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

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

/* Grid helper for forms layout when they are side by side */
.forms-row {
  margin-top: 32px;
}

/* Device Selection custom view styling */
.device-select-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 8px;
}

/* Footer style */
footer {
  margin-top: 60px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .header-wrapper {
    flex-direction: column;
    gap: 16px;
  }
  
  .sys-info-grid {
    grid-template-columns: 1fr;
  }
  
  .action-grid {
    grid-template-columns: 1fr;
  }
  
  .priority-selector {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-card {
    padding: 20px;
  }
}

/* Modal Styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.7);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 80vw;
  max-width: 80vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-premium), 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

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

.modal-title {
  font-size: 18px;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
}

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

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

.modal-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
}

/* Checkbox selection grid style */
.modal-printers-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.printer-checkbox-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-smooth);
  background-color: var(--bg-card);
  user-select: none;
}

.printer-checkbox-item:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
}

.printer-checkbox-item.selected {
  background-color: #eff6ff;
  border-color: #3b82f6;
}

.printer-checkbox-input {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #3b82f6;
}

/* Progress logs box */
.progress-status-box {
  background-color: #0f172a;
  color: #38bdf8;
  font-family: monospace;
  padding: 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  max-height: 150px;
  overflow-y: auto;
  border: 1px solid #1e293b;
}

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

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

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Process steps cards & badges */
.process-steps-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.process-step-card {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  transition: var(--transition-smooth);
}

.process-step-card.success {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.process-step-card.failed {
  border-color: #fecaca;
  background: #fef2f2;
}

.process-step-card.running {
  border-color: #bae6fd;
  background: #f0f9ff;
}

.step-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.step-title {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-main);
}

.step-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  letter-spacing: 0.2px;
}

.step-badge.success {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.step-badge.running {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #7dd3fc;
}

.step-badge.failed {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

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

/*$vite$:1*/