/* ═══════════════════════════════════════════
   CEVIO STEAM IDLER — DASHBOARD UPGRADE v4.1
   Goes to: public/css/dashboard-upgrade.css
   Bold visual enhancements (CSS-only)
   ═══════════════════════════════════════════ */

/* ═══ GREETING GRADIENT TEXT ═══ */
.dash-greeting h1 span {
  background: linear-gradient(100deg, #4f46ff, #6d5cff, #c026ff, #6d5cff, #4f46ff);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: greetGradient 6s linear infinite;
}
@keyframes greetGradient {
  from { background-position: 0% 50% }
  to { background-position: 300% 50% }
}
.dash-greeting h1 {
  font-size: 1.5em;
  letter-spacing: -0.04em;
}

/* ═══ ENHANCED SIDEBAR STATS ═══ */
.quick-stats { gap: 10px }
.qs-item {
  padding: 14px 8px 12px;
  border-radius: 0.7em;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(.22, 1, .36, 1);
  border: 1px solid transparent;
}
.qs-item:hover {
  border-color: var(--border-hover, var(--border));
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(79, 70, 255, 0.08);
}
.qs-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient, linear-gradient(135deg, #4f46ff, #c026ff));
  opacity: 0;
  transition: opacity 0.3s;
}
.qs-item:hover::before { opacity: 1 }
.qs-num {
  font-size: 1.5em;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.qs-accent {
  background: linear-gradient(135deg, #4f46ff, #c026ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.qs-green { text-shadow: 0 0 20px rgba(16, 185, 129, 0.3) }
.qs-label {
  font-size: 0.64em;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 3px;
}

/* ═══ ENHANCED ACCOUNT CARDS ═══ */
.acc-card {
  border-radius: 1em;
  transition: all 0.4s cubic-bezier(.22, 1, .36, 1);
}
.acc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
}
[data-theme="dark"] .acc-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

/* Active account glow */
.acc-card--active {
  border-color: rgba(16, 185, 129, 0.2) !important;
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.08), 0 4px 20px rgba(16, 185, 129, 0.06);
}
.acc-card--active:hover {
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.12), 0 12px 40px rgba(16, 185, 129, 0.12) !important;
}
[data-theme="dark"] .acc-card--active {
  background: linear-gradient(135deg, rgba(26, 22, 40, 0.9), rgba(16, 185, 129, 0.03));
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.1), 0 4px 20px rgba(16, 185, 129, 0.05), inset 0 1px 0 rgba(16, 185, 129, 0.05);
}

/* Status bar enhanced */
.acc-status-bar { height: 3px; transition: all 0.5s }
.acc-status-bar--online {
  background: linear-gradient(90deg, #10b981, #34d399, #10b981);
  background-size: 200% 100%;
  animation: statusGlow 3s ease-in-out infinite;
}
@keyframes statusGlow {
  0%, 100% { background-position: 0% 50% }
  50% { background-position: 100% 50% }
}
.acc-status-bar--error {
  background: linear-gradient(90deg, #ef4444, #f87171, #ef4444);
  background-size: 200% 100%;
  animation: statusGlow 2s ease-in-out infinite;
}

/* Enhanced stats row */
.acc-stats-row { gap: 8px }
.acc-mini-stat {
  padding: 10px 6px;
  border-radius: 0.6em;
  border: 1px solid var(--border);
  transition: all 0.25s;
}
.acc-mini-stat:hover {
  border-color: var(--border-hover, var(--border));
  background: var(--accent-soft, rgba(79, 70, 255, 0.05));
}
.acc-mini-num {
  font-size: 0.95em;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ═══ GAME ROW CAPSULE IMAGES ═══ */
.game-capsule {
  width: 64px !important;
  height: 30px !important;
  border-radius: 4px !important;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: all 0.25s cubic-bezier(.22, 1, .36, 1);
}
.game-row:hover .game-capsule {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: scale(1.05);
}
.game-row {
  padding: 6px 10px;
  border-radius: 0.6em;
  gap: 10px;
  transition: all 0.2s cubic-bezier(.22, 1, .36, 1);
  border: 1px solid transparent;
}
.game-row:hover {
  border-color: var(--border-hover, var(--border));
  transform: translateX(2px);
}
.game-info { gap: 10px }
.game-name {
  font-size: 0.82em;
  font-weight: 700;
}
.game-hours {
  font-size: 0.65em;
  font-weight: 500;
}

/* ═══ ENHANCED WIDGETS ═══ */
.widget {
  border-radius: 1em;
  transition: all 0.35s cubic-bezier(.22, 1, .36, 1);
}
.widget:hover { transform: translateY(-2px) }

.widget-title {
  position: relative;
  padding-left: 10px;
}
.widget-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: linear-gradient(135deg, #4f46ff, #c026ff);
}

/* Server Status Enhancement */
.server-status { font-size: 0.78em }
.server-dot {
  width: 10px;
  height: 10px;
  box-shadow: 0 0 6px var(--green, #10b981), 0 0 12px var(--green, #10b981), 0 0 24px rgba(16, 185, 129, 0.2);
}

/* Plan widget bar gradient */
.plan-widget-bar { height: 5px; border-radius: 5px }
.plan-widget-bar-fill {
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(135deg, #4f46ff, #c026ff);
  box-shadow: 0 0 8px rgba(79, 70, 255, 0.3);
  transition: width 0.6s cubic-bezier(.22, 1, .36, 1);
}

/* ═══ ACTIVITY LOG TIMELINE ═══ */
.activity-log { position: relative }
.activity-item {
  position: relative;
  padding: 7px 0 7px 20px;
  border-bottom: none;
  margin-bottom: 2px;
}
.activity-item::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}
.activity-item:last-child::before { bottom: 50% }
.activity-dot {
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border: 2px solid var(--bg-card, #fff);
  z-index: 1;
}
.activity-dot--start {
  background: var(--green, #10b981);
  box-shadow: 0 0 0 2px var(--bg-card, #fff), 0 0 6px var(--green, #10b981);
}
.activity-dot--session {
  background: var(--blue, #3b82f6);
  box-shadow: 0 0 0 2px var(--bg-card, #fff), 0 0 6px var(--blue, #3b82f6);
}
.activity-dot--stop {
  background: var(--red, #ef4444);
  box-shadow: 0 0 0 2px var(--bg-card, #fff), 0 0 6px var(--red, #ef4444);
}
.activity-time { font-size: 0.82em; font-weight: 600 }
.activity-text { font-size: 0.78em }

/* ═══ TIP WIDGET ═══ */
.widget-tip {
  background: linear-gradient(135deg, rgba(79, 70, 255, 0.06), rgba(192, 38, 255, 0.03));
  border: 1px solid rgba(79, 70, 255, 0.08);
  position: relative;
  overflow: hidden;
}
.widget-tip::before {
  content: '';
  position: absolute;
  top: -50%; right: -30%;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 70, 255, 0.06), transparent 70%);
  pointer-events: none;
}

/* ═══ UPGRADE BANNER ═══ */
.upgrade-banner {
  background: linear-gradient(135deg, rgba(79, 70, 255, 0.08), rgba(192, 38, 255, 0.04));
  border: 1px solid rgba(79, 70, 255, 0.12);
  border-radius: 0.8em;
  position: relative;
  overflow: hidden;
}
.upgrade-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(79, 70, 255, 0.04), transparent);
  animation: bannerShimmer 3s ease-in-out infinite;
}
@keyframes bannerShimmer {
  0%, 100% { transform: translateX(-100%) }
  50% { transform: translateX(100%) }
}

/* ═══ ONBOARDING ═══ */
.onboarding {
  border: 2px dashed rgba(79, 70, 255, 0.15);
  background: linear-gradient(135deg, var(--bg-card, #fff), rgba(79, 70, 255, 0.02));
  border-radius: 1.2em;
  transition: all 0.3s;
}
.onboarding:hover {
  border-color: rgba(79, 70, 255, 0.25);
  box-shadow: 0 8px 32px rgba(79, 70, 255, 0.06);
}

/* ═══ PLAN BADGE GLOW ═══ */
.plan-pro {
  background: linear-gradient(135deg, rgba(192, 38, 255, 0.08), rgba(192, 38, 255, 0.04));
  box-shadow: 0 0 8px rgba(192, 38, 255, 0.1);
}
.plan-business {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(245, 158, 11, 0.04));
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.1);
}

/* ═══ NAV ENHANCEMENT ═══ */
.dash-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.85);
  margin-left: -24px;
  margin-right: -24px;
  padding-left: 24px;
  padding-right: 24px;
}
[data-theme="dark"] .dash-nav {
  background: rgba(12, 10, 20, 0.85);
}

/* ═══ AVATAR RING FOR ONLINE ═══ */
.acc-card--active .acc-avatar {
  box-shadow: 0 0 0 2px var(--bg-card, #fff), 0 0 0 4px var(--green, #10b981);
  transition: box-shadow 0.3s;
}

/* ═══ SMOOTH ENTRANCE ANIMATIONS ═══ */
@keyframes cardSlideUp {
  from { opacity: 0; transform: translateY(20px) }
  to { opacity: 1; transform: translateY(0) }
}
.acc-card {
  animation: cardSlideUp 0.5s cubic-bezier(.22, 1, .36, 1) both;
}
.acc-card:nth-child(1) { animation-delay: 0.05s }
.acc-card:nth-child(2) { animation-delay: 0.12s }
.acc-card:nth-child(3) { animation-delay: 0.19s }
.acc-card:nth-child(4) { animation-delay: 0.26s }
.acc-card:nth-child(5) { animation-delay: 0.33s }

/* ═══ SECTION HEADER ═══ */
.dash-section-header h2 {
  position: relative;
  padding-left: 12px;
}
.dash-section-header h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  border-radius: 2px;
  background: linear-gradient(135deg, #4f46ff, #c026ff);
}

/* ═══ BUTTON MICRO-INTERACTIONS ═══ */
.acc-start-btn,
.acc-stop-btn {
  transition: all 0.25s cubic-bezier(.22, 1, .36, 1);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.acc-start-btn:hover:not(:disabled) {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(79, 70, 255, 0.3);
}
.acc-stop-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}
#startAllBtn:hover:not(:disabled) {
  transform: scale(1.06);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}
#stopAllBtn:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}

/* ═══ DARK MODE REFINEMENTS ═══ */
[data-theme="dark"] .acc-mini-stat {
  background: rgba(20, 17, 31, 0.6);
  border-color: rgba(255, 255, 255, 0.04);
}
[data-theme="dark"] .acc-mini-stat:hover {
  border-color: rgba(79, 70, 255, 0.15);
  background: rgba(79, 70, 255, 0.06);
}
[data-theme="dark"] .qs-item {
  border-color: rgba(255, 255, 255, 0.03);
}
[data-theme="dark"] .qs-item:hover {
  border-color: rgba(79, 70, 255, 0.15);
  background: rgba(79, 70, 255, 0.06);
}
[data-theme="dark"] .game-row { border-color: transparent }
[data-theme="dark"] .game-row:hover {
  border-color: rgba(79, 70, 255, 0.1);
  background: rgba(79, 70, 255, 0.06);
}
[data-theme="dark"] .game-capsule {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
  .dash-greeting h1 { font-size: 1.2em }
  .game-capsule {
    width: 48px !important;
    height: 22px !important;
  }
}