/* ===================================
   USER MENU STYLES
   =================================== */

#userMenuContainer {
  display: flex;
  align-items: flex-start;
}

/* Overlay: top-right, above everything but non-blocking outside its own footprint */
.user-menu-overlay {
  position: fixed;
  top: 8px;
  right: 12px;
  z-index: 4000;
  pointer-events: none;
}

.user-menu-overlay .user-menu-wrapper {
  pointer-events: auto;
}

/* User Menu Wrapper */
.user-menu-wrapper {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

/* User pill stack - vertical layout for pill + clock */
.user-pill-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  position: relative;
}

/* Inline Layout Toggle Buttons (next to user pill) */
.layout-toggle-inline {
  display: flex;
  gap: 2px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.layout-toggle-inline button {
  border: none;
  background: transparent;
  padding: 3px 6px;
  font-size: 10px;
  cursor: pointer;
  border-radius: 3px;
  color: #666;
  transition: all 0.15s;
}

.layout-toggle-inline button:hover {
  background: #f0f0f0;
  color: #333;
}

.layout-toggle-inline button.active {
  background: #667eea;
  color: #fff;
}

/* Compact inline supabase badge */
.supabase-status-badge.inline-badge {
  display: inline-block;
  min-width: 110px;
  padding: 2px 8px;
  font-size: 11px;
  border-radius: 6px;
  margin-left: 8px;
}

.supabase-status-badge.inline-badge.ok { background: #28a745; border-color: #1e7e34; color: white; }
.supabase-status-badge.inline-badge.fail { background: #dc3545; border-color: #b02a37; color: white; }

.user-menu-floating {
  position: fixed;
  top: 8px;
  right: 12px;
  z-index: 4000;
}

/* User Menu Toggle Button */
.user-menu-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 6px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 500;
  color: #333;
  transition: all 0.2s;
  min-width: 120px;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.user-menu-toggle:hover {
  background: #f5f5f5;
  border-color: #bbb;
}

.user-menu-toggle.active {
  background: #f0f0f0;
  border-color: #667eea;
  color: #667eea;
}

.user-menu-toggle:focus {
  outline: none;
}

/* User Avatar */
.user-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
  flex-shrink: 0;
}

.user-email {
  flex: 1;
  text-align: left;
  font-size: 10px;
  color: #666;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-icon {
  font-size: 11px;
  color: #999;
  transition: transform 0.2s;
}

.user-menu-toggle.active .menu-icon {
  transform: rotate(180deg);
}

/* User Menu Dropdown */
.user-menu-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  width: 280px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  animation: slideDown 0.2s ease-out;
}

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

/* Menu Header */
.menu-header {
  padding: 16px;
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
}

.menu-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.menu-email {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  word-break: break-all;
}

.menu-role {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}

/* Menu Divider */
.menu-divider {
  height: 1px;
  background: #eee;
  margin: 8px 0;
}

/* Menu Items */
.menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  color: #333;
  transition: all 0.2s;
  text-align: left;
}

.menu-item:hover {
  background: #f5f5f5;
  color: #667eea;
}

.menu-item:active {
  background: #efefef;
}

.menu-item .menu-icon {
  font-size: 16px;
  min-width: 20px;
  text-align: center;
}

/* Danger Item */
.menu-item-danger {
  color: #c62828;
}

.menu-item-danger:hover {
  background: #ffebee;
  color: #d32f2f;
}

/* Responsive */
@media (max-width: 768px) {
  .user-menu-toggle {
    padding: 6px 10px;
    min-width: 160px;
    font-size: 12px;
  }

  .user-avatar {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .user-email {
    font-size: 11px;
  }

  .user-menu-dropdown {
    width: 260px;
  }

  .menu-email {
    font-size: 12px;
  }

  .menu-item {
    padding: 10px 14px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .user-menu-toggle {
    padding: 6px 8px;
    min-width: auto;
    gap: 8px;
  }

  .user-avatar {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }

  .user-email {
    display: none;
  }

  .user-menu-dropdown {
    position: fixed;
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    border-radius: 12px 12px 0 0;
    margin-top: 0;
    animation: slideUp 0.3s ease-out;
  }

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

/* ===================================
   AUTO FARMOUT TOGGLE STYLES
   =================================== */

.auto-farmout-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 2px 8px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-left: 8px;
  font-size: 11px;
  color: #666;
  transition: all 0.2s;
}

.auto-farmout-toggle:hover {
  border-color: #22c55e;
  background: #f0fdf4;
}

.auto-farmout-toggle input[type="checkbox"] {
  display: none;
}

.auto-farmout-toggle .toggle-slider {
  position: relative;
  width: 28px;
  height: 16px;
  background: #ccc;
  border-radius: 8px;
  transition: all 0.2s;
}

.auto-farmout-toggle .toggle-slider::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.auto-farmout-toggle input:checked + .toggle-slider {
  background: #22c55e;
}

.auto-farmout-toggle input:checked + .toggle-slider::before {
  transform: translateX(12px);
}

.auto-farmout-toggle .toggle-label {
  font-weight: 500;
  white-space: nowrap;
}

.auto-farmout-toggle input:checked ~ .toggle-label {
  color: #166534;
}

/* Default Driver/Vehicle Selector */
.default-selector {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  margin-left: 8px;
}

.default-selector .selector-icon {
  font-size: 14px;
}

.default-selector .default-select {
  background: transparent;
  border: none;
  color: inherit;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 4px;
  cursor: pointer;
  max-width: 120px;
}

.default-selector .default-select:focus {
  outline: none;
}

.default-selector .default-select option {
  background: #1f2a44;
  color: white;
}

/* Timezone Selector in Dropdown Menu */
.timezone-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  cursor: default;
}

.timezone-menu-item:hover {
  background: rgba(0, 0, 0, 0.05);
}

.timezone-dropdown {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: white;
  font-size: 13px;
  cursor: pointer;
  min-width: 140px;
}

.timezone-dropdown:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.timezone-dropdown option {
  padding: 8px;
}

html[data-layout="horizontal"] .default-selector .default-select option {
  background: #333;
}

/* Auto Farmout Indicator */
.auto-farmout-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  border: 1px solid #22c55e;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  color: #166534;
  margin-left: 6px;
  animation: farmoutPulse 2s ease-in-out infinite;
}

@keyframes farmoutPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50% { box-shadow: 0 0 8px 2px rgba(34, 197, 94, 0.3); }
}

/* Badge Container for Multiple Badges */
.badge-container {
  position: absolute;
  top: -6px;
  right: -6px;
  display: flex;
  gap: 2px;
  z-index: 10;
}

/* Auto Farmout Badge on Reservations Button */
.auto-farmout-badge {
  font-size: 12px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #f59e0b;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  animation: badgeBounce 1s ease-in-out infinite;
  cursor: help;
}

/* Default Driver Badge */
.default-driver-badge {
  font-size: 12px;
  background: linear-gradient(135deg, #dbeafe 0%, #93c5fd 100%);
  border: 2px solid #3b82f6;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  animation: badgeBounce 1.2s ease-in-out infinite;
  cursor: help;
}

/* Default Vehicle Badge */
.default-vehicle-badge {
  font-size: 12px;
  background: linear-gradient(135deg, #d1fae5 0%, #6ee7b7 100%);
  border: 2px solid #10b981;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  animation: badgeBounce 1.4s ease-in-out infinite;
  cursor: help;
}

@keyframes badgeBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* ===================================
   HEADER CLOCK STYLES
   =================================== */

.header-clock {
  cursor: pointer;
  user-select: none;
  margin: 0;
  text-align: right;
}

/* Digital Clock Styles */
.digital-clock {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 8px 20px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.05);
  transition: transform 0.15s, box-shadow 0.15s;
}

.digital-clock:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.digital-clock .clock-time {
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 29px;
  font-weight: 700;
  color: #22c55e;
  text-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
  letter-spacing: 2px;
}

.digital-clock .clock-date {
  font-size: 20px;
  color: #94a3b8;
  margin-top: 2px;
  letter-spacing: 1px;
}

/* Digital Modern - green LED */
.digital-clock.digital-modern .clock-time {
  color: #22c55e;
  text-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

/* Digital Classic - amber LED */
.digital-clock.digital-classic {
  background: linear-gradient(135deg, #292524 0%, #1c1917 100%);
  border-color: #44403c;
}

.digital-clock.digital-classic .clock-time {
  color: #fbbf24;
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
}

/* Digital Minimal - blue on dark */
.digital-clock.digital-minimal {
  background: #0f172a;
  border: none;
  padding: 4px 10px;
  border-radius: 4px;
}

.digital-clock.digital-minimal .clock-time {
  font-size: 31px;
  color: #60a5fa;
  text-shadow: none;
}

/* Analog Clock Styles */
.clock-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.clock-date-small {
  font-size: 14px;
  color: #64748b;
  text-align: center;
  white-space: nowrap;
}

.analog-clock {
  width: 132px;
  height: 132px;
  position: relative;
}

.clock-face {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  background: white;
  border: 4px solid #334155;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.clock-face::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background: #1e293b;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.hand {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform-origin: bottom center;
  border-radius: 2px;
}

.hour-hand {
  width: 6px;
  height: 36px;
  background: #1e293b;
  margin-left: -3px;
}

.minute-hand {
  width: 4px;
  height: 46px;
  background: #475569;
  margin-left: -2px;
}

.second-hand {
  width: 2px;
  height: 53px;
  background: #ef4444;
  margin-left: -1px;
}

.clock-center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 13px;
  background: #1e293b;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 11;
}

/* Analog Classic - with markers */
.analog-classic .clock-face {
  background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
  border-color: #92400e;
}

.analog-classic .clock-markers::before,
.analog-classic .clock-markers::after {
  content: '';
  position: absolute;
  background: #92400e;
}

.analog-classic .clock-markers::before {
  top: 4px;
  left: 50%;
  width: 2px;
  height: 4px;
  margin-left: -1px;
  box-shadow: 0 36px 0 #92400e;
}

.analog-classic .clock-markers::after {
  left: 4px;
  top: 50%;
  width: 4px;
  height: 2px;
  margin-top: -1px;
  box-shadow: 36px 0 0 #92400e;
}

.analog-classic .hour-hand {
  background: #78350f;
}

.analog-classic .minute-hand {
  background: #92400e;
}

.analog-classic .clock-center {
  background: #78350f;
}

/* Analog Modern - sleek dark */
.analog-modern .clock-face {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-color: #3b82f6;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
}

.analog-modern .hour-hand {
  background: #f8fafc;
}

.analog-modern .minute-hand {
  background: #94a3b8;
}

.analog-modern .second-hand {
  background: #3b82f6;
}

.analog-modern .clock-center {
  background: #3b82f6;
}

/* Analog Minimal - simple white */
.analog-minimal .clock-face {
  background: white;
  border: 1px solid #e2e8f0;
  box-shadow: none;
}

.analog-minimal .hour-hand {
  width: 2px;
  height: 12px;
  background: #334155;
}

.analog-minimal .minute-hand {
  width: 1px;
  height: 16px;
  background: #64748b;
}

.analog-minimal .clock-center {
  width: 4px;
  height: 4px;
  background: #334155;
}

/* ===================================
   FARMOUT COUNTDOWN TIMER
   =================================== */

.farmout-countdown-timer {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #f59e0b;
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
  animation: countdownPulse 2s ease-in-out infinite;
  margin-top: 6px;
}

@keyframes countdownPulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3); }
  50% { box-shadow: 0 4px 20px rgba(245, 158, 11, 0.6); }
}

.countdown-chime-icon {
  font-size: 24px;
  animation: chimeBounce 1s ease-in-out infinite;
}

@keyframes chimeBounce {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-15deg); }
  75% { transform: rotate(15deg); }
}

.countdown-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.countdown-driver-name {
  font-size: 13px;
  font-weight: 700;
  color: #92400e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.countdown-company {
  font-size: 11px;
  color: #b45309;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
  min-height: 14px;
}

.countdown-time {
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 22px;
  font-weight: 700;
  color: #dc2626;
  text-shadow: 0 0 6px rgba(220, 38, 38, 0.3);
  letter-spacing: 1px;
}

.countdown-label {
  font-size: 10px;
  color: #78350f;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* When time is running low (under 1 minute) */
.farmout-countdown-timer.urgent {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border-color: #dc2626;
  animation: countdownUrgent 0.5s ease-in-out infinite;
}

@keyframes countdownUrgent {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.farmout-countdown-timer.urgent .countdown-chime-icon {
  animation: chimeUrgent 0.3s ease-in-out infinite;
}

@keyframes chimeUrgent {
  0%, 100% { transform: rotate(-20deg); }
  50% { transform: rotate(20deg); }
}
/* ===================================
   TIMER COLOR THEMES
   =================================== */

/* Blue Theme */
.farmout-countdown-timer.theme-blue {
  background: linear-gradient(135deg, #dbeafe 0%, #93c5fd 100%);
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.farmout-countdown-timer.theme-blue .countdown-driver-name { color: #1e40af; }
.farmout-countdown-timer.theme-blue .countdown-company { color: #2563eb; }
.farmout-countdown-timer.theme-blue .countdown-label { color: #1d4ed8; }

/* Green Theme */
.farmout-countdown-timer.theme-green {
  background: linear-gradient(135deg, #dcfce7 0%, #86efac 100%);
  border-color: #22c55e;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.farmout-countdown-timer.theme-green .countdown-driver-name { color: #166534; }
.farmout-countdown-timer.theme-green .countdown-company { color: #15803d; }
.farmout-countdown-timer.theme-green .countdown-label { color: #14532d; }

/* Purple Theme */
.farmout-countdown-timer.theme-purple {
  background: linear-gradient(135deg, #ede9fe 0%, #c4b5fd 100%);
  border-color: #8b5cf6;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.farmout-countdown-timer.theme-purple .countdown-driver-name { color: #5b21b6; }
.farmout-countdown-timer.theme-purple .countdown-company { color: #7c3aed; }
.farmout-countdown-timer.theme-purple .countdown-label { color: #4c1d95; }

/* Dark Theme */
.farmout-countdown-timer.theme-dark {
  background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
  border-color: #6b7280;
  box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

.farmout-countdown-timer.theme-dark .countdown-chime-icon { filter: grayscale(1) brightness(2); }
.farmout-countdown-timer.theme-dark .countdown-driver-name { color: #f9fafb; }
.farmout-countdown-timer.theme-dark .countdown-company { color: #d1d5db; }
.farmout-countdown-timer.theme-dark .countdown-time { color: #fbbf24; }
.farmout-countdown-timer.theme-dark .countdown-label { color: #9ca3af; }

/* ===================================
   DRAGGABLE WIDGET STYLES
   =================================== */

.farmout-countdown-timer[style*="position: fixed"],
#headerClock[style*="position: fixed"],
#systemMonitorWidget[style*="position: fixed"] {
  z-index: 9999;
}

.farmout-countdown-timer:active,
#headerClock:active,
#systemMonitorWidget:active {
  cursor: grabbing !important;
}

/* ===================================
   SYSTEM MONITOR WIDGET STYLES
   =================================== */

.system-monitor-widget {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 11px;
  min-width: 140px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  margin-top: 6px;
}

.system-monitor-widget:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transform: translateY(-1px);
}

.sys-monitor-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sys-monitor-icon {
  font-size: 14px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.sys-monitor-bar-container {
  flex: 1;
  height: 10px;
  background: #e2e8f0;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.sys-monitor-bar {
  height: 100%;
  border-radius: 5px;
  transition: width 0.5s ease, background 0.3s ease;
  min-width: 2px;
}

.sys-monitor-bar.cpu-bar {
  background: linear-gradient(90deg, #10b981, #34d399);
}

.sys-monitor-bar.ram-bar {
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.sys-monitor-value {
  min-width: 32px;
  text-align: right;
  font-weight: 600;
  color: #475569;
  font-size: 10px;
  font-family: 'SF Mono', 'Consolas', monospace;
}

/* Compact Style */
.system-monitor-widget.style-compact {
  flex-direction: row;
  gap: 12px;
  padding: 6px 10px;
  min-width: auto;
}

.system-monitor-widget.style-compact .sys-monitor-row {
  flex: 1;
}

.system-monitor-widget.style-compact .sys-monitor-bar-container {
  height: 6px;
}

/* Circle Style */
.system-monitor-widget.style-circles {
  flex-direction: row;
  gap: 12px;
  padding: 8px 12px;
}

.system-monitor-widget.style-circles .sys-monitor-row {
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.system-monitor-widget.style-circles .sys-monitor-bar-container {
  display: none;
}

.system-monitor-widget.style-circles .sys-monitor-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: conic-gradient(var(--progress-color) var(--progress), #e2e8f0 0);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.system-monitor-widget.style-circles .sys-monitor-circle::before {
  content: '';
  width: 28px;
  height: 28px;
  background: #f8fafc;
  border-radius: 50%;
  position: absolute;
}

.system-monitor-widget.style-circles .sys-monitor-value {
  position: relative;
  z-index: 1;
  font-size: 9px;
  min-width: auto;
}

/* Dark theme for system monitor */
.system-monitor-widget.theme-dark {
  background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
  border-color: #4b5563;
}

.system-monitor-widget.theme-dark .sys-monitor-bar-container {
  background: #4b5563;
}

.system-monitor-widget.theme-dark .sys-monitor-value {
  color: #e5e7eb;
}

/* Responsive */
@media (max-width: 480px) {
  .system-monitor-widget {
    min-width: 120px;
    padding: 8px 10px;
    font-size: 10px;
  }
  
  .sys-monitor-bar-container {
    height: 8px;
  }
}