/* ==========================================================================
   CYBERCLOUD PC - Next-Gen Cloud Gaming & Station Manager UI (Full Width & Unified)
   ========================================================================== */

/* Full Screen Edge-to-Edge Dashboard Container */
.cyber-dashboard {
  width: 100%;
  max-width: 100%;
  padding: 1.25rem 1.75rem 3.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-sizing: border-box;
}

/* ==========================================================================
   TOP UNIFIED PANEL (Circled in Red by User - Header + Stats + Filters)
   ========================================================================== */
.cyber-top-panel {
  width: 100%;
  background: #0d1424;
  border: 1px solid #1a253c;
  border-radius: 16px;
  padding: 1.4rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  box-sizing: border-box;
}

/* 1. Header Row inside Unified Top Panel */
.cyber-top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cyber-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cyber-brand-icon {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, #00d2ff, #2563eb);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  box-shadow: 0 0 16px rgba(0, 210, 255, 0.4);
  flex-shrink: 0;
}

.cyber-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}

.cyber-subtitle {
  font-size: 0.82rem;
  color: #94a3b8;
}

.cyber-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cyber-icon-btn {
  background: #111b2f;
  border: 1px solid #1e2d4a;
  color: #cbd5e1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cyber-icon-btn:hover {
  background: #1a2944;
  border-color: #00d2ff;
  color: #fff;
}

.cyber-reset-btn {
  background: #111b2f;
  border: 1px solid #1e2d4a;
  color: #cbd5e1;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.cyber-reset-btn:hover {
  background: #1a2944;
  border-color: #00d2ff;
  color: #00d2ff;
}

/* 2. Top Summary Stats Bar (4 Metric Cards inside Panel) */
.stats-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  width: 100%;
}

.stat-metric-card {
  background: #090e1a;
  border: 1px solid #162035;
  border-radius: 12px;
  padding: 1.15rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.stat-label {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 0.4rem;
}

.stat-value {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #f8fafc;
  line-height: 1;
}

.stat-value.online {
  color: #10b981;
}

.stat-value.in-use {
  color: #f43f5e;
}

.stat-value.offline {
  color: #94a3b8;
}

.stat-icon {
  font-size: 1.8rem;
  opacity: 0.9;
}

.stat-icon.blue { color: #00d2ff; }
.stat-icon.green { color: #10b981; }
.stat-icon.red { color: #f43f5e; }
.stat-icon.gray { color: #64748b; }

/* 3. Filter Bar & Search inside Panel */
.filter-search-bar {
  background: #090e1a;
  border: 1px solid #162035;
  border-radius: 12px;
  padding: 0.6rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}

.filter-pills-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-pill {
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: inherit;
}

.filter-pill:hover {
  background: #111b2f;
  color: #fff;
}

.filter-pill.active {
  background: #1e3a8a;
  color: #fff;
  border-color: #3b82f6;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}

.search-input-box {
  position: relative;
  width: 280px;
}

.search-input-box input {
  width: 100%;
  background: #060911;
  border: 1px solid #1e2d4a;
  color: #fff;
  padding: 0.5rem 1rem 0.5rem 2.2rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  transition: all var(--transition-fast);
  box-sizing: border-box;
}

.search-input-box input:focus {
  border-color: #00d2ff;
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.2);
}

.search-icon-fixed {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 0.85rem;
  pointer-events: none;
}

/* ==========================================================================
   BOTTOM PC STATIONS GRID (Exact 4 Columns Matching Top Width)
   ========================================================================== */
.pc-stations-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  box-sizing: border-box;
}

.station-card {
  background: #0d1424;
  border: 1px solid #1a253c;
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  position: relative;
  transition: all var(--transition-normal);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
}

.station-card:hover {
  transform: translateY(-2px);
  border-color: #2a3a5a;
}

/* Status Variations on Station Cards */
.station-card.in-use {
  border: 1px solid rgba(244, 63, 94, 0.45);
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.12);
}

.station-card.online {
  border: 1px solid rgba(16, 185, 129, 0.45);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.12);
}

.station-card.selected-active {
  border: 2px solid #00d2ff;
  box-shadow: 0 0 24px rgba(0, 210, 255, 0.3);
}

/* Station Card Header */
.station-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.station-info-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.station-monitor-badge {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.station-monitor-badge.in-use {
  background: rgba(244, 63, 94, 0.15);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.station-monitor-badge.online {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.station-monitor-badge.offline {
  background: rgba(100, 116, 139, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(100, 116, 139, 0.3);
}

.station-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.2;
}

.station-subtitle {
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* Status Pill on top-right of card */
.station-status-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.station-status-pill.in-use {
  background: rgba(244, 63, 94, 0.18);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.4);
}

.station-status-pill.online {
  background: rgba(16, 185, 129, 0.18);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.station-status-pill.offline {
  background: rgba(100, 116, 139, 0.18);
  color: #94a3b8;
  border: 1px solid rgba(100, 116, 139, 0.4);
}

/* 2x2 Specs Grid */
.station-specs-grid {
  background: #090e1a;
  border: 1px solid #162035;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 1rem;
}

.spec-node {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: #cbd5e1;
  font-weight: 500;
}

.spec-node span.spec-icon {
  font-size: 0.85rem;
  color: #00d2ff;
  opacity: 0.85;
}

/* Station Card Footer */
.station-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #162035;
  padding-top: 0.85rem;
}

.station-rate {
  font-size: 1.15rem;
  font-weight: 800;
  color: #f8fafc;
  font-family: var(--font-mono);
}

.station-rate span {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
}

/* Action Buttons */
.station-action-btn {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
  font-family: inherit;
  white-space: nowrap;
}

.station-action-btn.in-use {
  background: rgba(244, 63, 94, 0.15);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.35);
  cursor: not-allowed;
}

.station-action-btn.online {
  background: #00d2ff;
  color: #030712;
  box-shadow: 0 0 16px rgba(0, 210, 255, 0.4);
}

.station-action-btn.online:hover {
  background: #33dcff;
  box-shadow: 0 0 24px rgba(0, 210, 255, 0.6);
  transform: translateY(-1px);
}

.station-action-btn.offline {
  background: #f59e0b;
  color: #030712;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.3);
}

.station-action-btn.offline:hover {
  background: #fbbf24;
  box-shadow: 0 0 22px rgba(245, 158, 11, 0.5);
  transform: translateY(-1px);
}

/* Mobile Device Connect Tabs & Styles */
.remote-device-tabs {
  display: flex;
  gap: 0.5rem;
  background: #060a14;
  padding: 0.35rem;
  border-radius: 12px;
  border: 1px solid #1a253c;
  margin-bottom: 1.25rem;
}

.device-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.device-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.device-tab-btn.active {
  background: #1e3a8a;
  color: #fff;
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.4);
}

.device-tab-content {
  display: none;
}

.device-tab-content.active {
  display: block;
}

/* Mobile QR Connect Card */
.mobile-qr-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.25rem;
  align-items: center;
  background: #090e1a;
  border: 1px solid #1a253c;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.qr-code-wrapper {
  background: #ffffff;
  padding: 0.75rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.mobile-instructions-box {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.mobile-step-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: #cbd5e1;
}

.mobile-step-num {
  width: 22px;
  height: 22px;
  background: #1e3a8a;
  color: #00d2ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.store-badges-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.store-badge-btn {
  background: #111b2f;
  border: 1px solid #1e2d4a;
  color: #fff;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.store-badge-btn:hover {
  background: #1a2944;
  border-color: #00d2ff;
  transform: translateY(-1px);
}

.touch-gestures-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.touch-gesture-card {
  background: #090e1a;
  border: 1px solid #162035;
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  font-size: 0.75rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.touch-gesture-card strong {
  color: #f8fafc;
  display: block;
}

/* Responsive Grid Rules */
@media (max-width: 1200px) {
  .pc-stations-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .stats-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pc-stations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mobile-qr-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .qr-code-wrapper {
    margin: 0 auto;
    width: 170px;
  }
  .mobile-instructions-box {
    align-items: center;
  }
  .touch-gestures-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .cyber-dashboard {
    padding: 1rem;
  }
  .cyber-top-panel {
    padding: 1.1rem;
  }
  .filter-search-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .search-input-box {
    width: 100%;
  }
  .remote-device-tabs {
    flex-direction: column;
  }
}


