/* ====================================================================
   UMI AGENT — MODERN GLASSMORPHISM DASHBOARD STYLES (PURE CSS)
   Zero Emojis • SVG Vector Icons • Responsive Mobile & Desktop Mini/Full
   ==================================================================== */

:root {
  --bg-dark: #070a11;
  --bg-card: #0f172a;
  --bg-card-hover: #15203b;
  --bg-sidebar: #090d18;
  --bg-input: #131d33;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(56, 189, 248, 0.35);
  
  --primary-cyan: #06b6d4;
  --primary-blue: #3b82f6;
  --primary-indigo: #6366f1;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #64748b;
  
  --font-heading: 'Outfit', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --sidebar-width: 260px;
  --sidebar-collapsed-width: 72px;
  --header-height: 70px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-glow: 0 0 25px rgba(6, 182, 212, 0.15);
}

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

body {
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(at 10% 10%, rgba(56, 189, 248, 0.05) 0px, transparent 50%),
    radial-gradient(at 90% 90%, rgba(99, 102, 241, 0.05) 0px, transparent 50%);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

/* APP LAYOUT CONTAINER */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* ================= SIDEBAR ================= */
.app-sidebar {
  width: var(--sidebar-width);
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary-cyan), var(--primary-indigo));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  font-size: 10px;
  font-weight: 700;
  color: var(--primary-cyan);
  letter-spacing: 1px;
}

.sidebar-toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.sidebar-toggle-btn:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.05);
}

.sidebar-nav {
  padding: 20px 12px;
  flex: 1;
  overflow-y: auto;
}

.nav-section-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 1.2px;
  padding: 12px 12px 6px 12px;
  white-space: nowrap;
}

.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  white-space: nowrap;
  margin-bottom: 4px;
}

.nav-item:hover {
  color: var(--text-main);
  background-color: rgba(255, 255, 255, 0.04);
}

.nav-item.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.15) 0%, rgba(99, 102, 241, 0.15) 100%);
  border-left: 3px solid var(--primary-cyan);
}

.nav-item svg {
  flex-shrink: 0;
}

.nav-badge {
  margin-left: auto;
  background-color: var(--primary-cyan);
  color: #000;
  font-weight: 700;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 12px;
}

.server-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border-color);
}

.status-indicator-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.status-text {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-emerald);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* COLLAPSED SIDEBAR (MINI MODE) */
.app-layout.sidebar-collapsed .app-sidebar {
  width: var(--sidebar-collapsed-width);
}

.app-layout.sidebar-collapsed .brand-text,
.app-layout.sidebar-collapsed .nav-section-label,
.app-layout.sidebar-collapsed .nav-label,
.app-layout.sidebar-collapsed .nav-badge,
.app-layout.sidebar-collapsed .status-text {
  display: none;
}

.app-layout.sidebar-collapsed .sidebar-header {
  padding: 0 16px;
}

.app-layout.sidebar-collapsed .nav-item {
  justify-content: center;
  padding: 12px;
}

.app-layout.sidebar-collapsed .status-indicator-box {
  justify-content: center;
  padding: 10px;
}

.app-layout.sidebar-collapsed .app-main {
  margin-left: var(--sidebar-collapsed-width);
}

/* ================= MAIN CONTENT ================= */
.app-main {
  flex: 1;
  margin-left: var(--sidebar-width);
  transition: margin-left 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.app-header {
  min-height: var(--header-height);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-main);
  position: relative;
  z-index: 10;
}

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

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  cursor: pointer;
}

.header-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
}

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

.clock-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--primary-cyan);
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-icon:hover {
  color: #fff;
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.content-body {
  padding: 28px;
  flex: 1;
}

/* ================= TAB PAGES ================= */
.tab-page {
  display: none;
}

.tab-page.active {
  display: block;
}

/* ================= STATS CARDS ================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.stat-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-cyan { background: rgba(6, 182, 212, 0.12); color: var(--primary-cyan); }
.icon-indigo { background: rgba(99, 102, 241, 0.12); color: var(--primary-indigo); }
.icon-emerald { background: rgba(16, 185, 129, 0.12); color: var(--accent-emerald); }
.icon-amber { background: rgba(245, 158, 11, 0.12); color: var(--accent-amber); }

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

.stat-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.stat-desc {
  font-size: 11px;
  color: var(--text-dark);
}

/* ================= SECTION TITLE BAR ================= */
.section-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-title-bar h2 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ================= VPS CARDS OVERVIEW ================= */
.vps-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.vps-overview-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.2s;
}

.vps-overview-card:hover {
  border-color: var(--border-hover);
}

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

.vps-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vps-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.1);
  color: var(--primary-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vps-name-text {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
}

.vps-ip-text {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

/* BADGES */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-success { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: var(--accent-amber); border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-danger { background: rgba(244, 63, 94, 0.15); color: var(--accent-rose); border: 1px solid rgba(244, 63, 94, 0.3); }
.badge-info { background: rgba(6, 182, 212, 0.15); color: var(--primary-cyan); border: 1px solid rgba(6, 182, 212, 0.3); }

.vps-card-stats {
  display: flex;
  gap: 16px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.vps-mini-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.vps-mini-label {
  font-size: 11px;
  color: var(--text-muted);
}

.vps-mini-val {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

/* ================= CONTROL TOOLBAR ================= */
.control-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.toolbar-left, .toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.custom-select {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
  cursor: pointer;
}

.filter-pills {
  display: flex;
  gap: 4px;
  background: var(--bg-input);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.pill-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.pill-btn.active {
  background: var(--primary-cyan);
  color: #000;
  font-weight: 700;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  width: 280px;
  color: var(--text-muted);
}

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

.view-mode-toggle {
  display: flex;
  gap: 4px;
  background: var(--bg-input);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.view-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.view-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ================= PROFILES GRID ================= */
.profiles-container.grid-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.2s;
}

.profile-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.profile-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.profile-title-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-server-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-cyan);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
}

.user-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
}

.user-chip.owner {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
}

.user-chip.sewa {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

.chip-del-btn {
  background: transparent;
  border: none;
  color: var(--accent-rose);
  cursor: pointer;
  display: flex;
  align-items: center;
  opacity: 0.7;
}

.chip-del-btn:hover { opacity: 1; }

.expiry-box {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.2);
}

.profile-card-actions {
  display: flex;
  gap: 10px;
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
  color: #fff;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.25);
}

.btn-primary:hover {
  filter: brightness(1.15);
  box-shadow: 0 4px 18px rgba(6, 182, 212, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-danger {
  background: rgba(244, 63, 94, 0.15);
  color: var(--accent-rose);
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.btn-danger:hover {
  background: var(--accent-rose);
  color: #fff;
}

/* ================= DATA TABLE ================= */
.table-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow-x: auto;
}

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

.data-table th {
  background: rgba(0, 0, 0, 0.3);
  padding: 14px 18px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-color);
}

.data-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
}

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

/* ================= MODALS ================= */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.modal-card.modal-large {
  max-width: 720px;
}

.modal-backdrop.active .modal-card {
  transform: scale(1);
}

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

.modal-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}

.modal-close-btn:hover { color: #fff; }

.modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

/* FORM CONTROLS */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.form-control {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
}

.form-control:focus {
  border-color: var(--primary-cyan);
}

.form-control.readonly {
  opacity: 0.7;
  cursor: not-allowed;
}

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

.duration-pill {
  cursor: pointer;
}

.duration-pill input { display: none; }

.duration-pill span {
  display: block;
  text-align: center;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s;
}

.duration-pill input:checked + span {
  background: var(--primary-cyan);
  color: #000;
  font-weight: 700;
  border-color: var(--primary-cyan);
}

/* TERMINAL CONSOLE */
.terminal-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 13px;
}

.terminal-box {
  background: #04060a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  min-height: 240px;
  max-height: 380px;
  overflow-y: auto;
  color: #a7f3d0;
}

.terminal-line {
  color: var(--primary-cyan);
  margin-bottom: 8px;
  font-weight: 600;
}

.terminal-output {
  white-space: pre-wrap;
  word-break: break-word;
  color: #e2e8f0;
  line-height: 1.6;
}

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

.toast {
  padding: 12px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.3s ease;
}

.toast.success { border-color: var(--accent-emerald); }
.toast.error { border-color: var(--accent-rose); }

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

.hidden { display: none !important; }

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .app-sidebar {
    transform: translateX(-100%);
  }
  .app-layout.sidebar-mobile-open .app-sidebar {
    transform: translateX(0);
  }
  .app-main {
    margin-left: 0 !important;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .content-body {
    padding: 16px;
  }
  .duration-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ================= LOADING & SKELETON ANIMATIONS ================= */
.spin-icon, .rotating svg, .btn-icon.rotating svg {
  animation: spin 1s linear infinite;
}

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

.page-loading-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(7, 10, 17, 0.92);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.page-loading-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loading-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.loading-spinner-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-cyan);
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.3);
}

.loading-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #fff 0%, var(--primary-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* SKELETON LOADERS */
.skeleton-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.skeleton-shimmer {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.02) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton-line-lg { height: 24px; width: 60%; }
.skeleton-line-md { height: 16px; width: 85%; }
.skeleton-line-sm { height: 12px; width: 40%; }
.skeleton-btn { height: 38px; width: 100%; border-radius: var(--radius-md); }

/* ================= LIGHT MODE HIGH CONTRAST & PREMIUM STYLING ================= */
body.theme-light {
  --bg-dark: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-sidebar: #ffffff;
  --bg-input: #ffffff;
  --border-color: #e2e8f0;
  --border-hover: #0284c7;
  
  --primary-cyan: #0284c7;
  --primary-blue: #2563eb;
  --primary-indigo: #4f46e5;
  --accent-emerald: #059669;
  --accent-amber: #d97706;
  --accent-rose: #dc2626;
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dark: #64748b;
  --shadow-glow: 0 4px 20px rgba(2, 132, 199, 0.12);

  background: #f8fafc;
  color: #0f172a;
}

/* Light Mode Layout Components */
body.theme-light .sidebar {
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
}

body.theme-light .app-header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid #e2e8f0;
  backdrop-filter: blur(12px);
}

body.theme-light .header-title {
  color: #0f172a;
}

body.theme-light .brand-name {
  background: linear-gradient(135deg, #0f172a 0%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.theme-light .brand-subtitle {
  color: #64748b;
}

body.theme-light .nav-section-label {
  color: #64748b;
}

body.theme-light .nav-item {
  color: #475569;
}

body.theme-light .nav-item:hover {
  background: #f1f5f9;
  color: #0284c7;
}

body.theme-light .nav-item.active {
  background: #e0f2fe;
  color: #0284c7;
  border-left-color: #0284c7;
}

body.theme-light .sidebar-toggle-btn,
body.theme-light .mobile-menu-btn,
body.theme-light .btn-icon {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
}

body.theme-light .sidebar-toggle-btn:hover,
body.theme-light .mobile-menu-btn:hover,
body.theme-light .btn-icon:hover {
  background: #e2e8f0;
  color: #0284c7;
  border-color: #0284c7;
}

body.theme-light .clock-badge {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}

/* Light Mode Stat Cards */
body.theme-light .stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

body.theme-light .stat-card:hover {
  border-color: #0284c7;
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.1);
}

body.theme-light .stat-title {
  color: #475569;
}

body.theme-light .stat-value {
  background: linear-gradient(135deg, #0f172a 0%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.theme-light .stat-sub {
  color: #64748b;
}

/* Light Mode Section Headers & VPS Cards */
body.theme-light .section-title-bar h2 {
  color: #0f172a;
}

body.theme-light .vps-overview-card,
body.theme-light .profile-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

body.theme-light .vps-overview-card:hover,
body.theme-light .profile-card:hover {
  border-color: #0284c7;
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.1);
}

body.theme-light .vps-name-text,
body.theme-light .profile-name {
  color: #0f172a;
}

body.theme-light .vps-ip-text,
body.theme-light .profile-server-tag {
  color: #64748b;
}

body.theme-light .vps-card-stats {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

body.theme-light .vps-mini-label {
  color: #64748b;
}

body.theme-light .vps-mini-val {
  color: #0f172a;
}

/* Light Mode User Chips & Expiry Box */
body.theme-light .user-chip.owner {
  background: #e0e7ff;
  border: 1px solid #c7d2fe;
  color: #3730a3;
}

body.theme-light .user-chip.sewa {
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  color: #166534;
}

body.theme-light .chip-del-btn {
  color: #dc2626;
}

body.theme-light .chip-del-btn:hover {
  background: rgba(220, 38, 38, 0.1);
}

body.theme-light .expiry-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #0f172a;
}

/* Light Mode Buttons & Controls */
body.theme-light .btn-secondary {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}

body.theme-light .btn-secondary:hover {
  background: #e2e8f0;
  border-color: #0284c7;
  color: #0284c7;
}

body.theme-light .btn-danger {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

body.theme-light .btn-danger:hover {
  background: #fecaca;
  color: #7f1d1d;
}

body.theme-light .pill-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
}

body.theme-light .pill-btn:hover,
body.theme-light .pill-btn.active {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
}

body.theme-light .search-box input,
body.theme-light .select-input {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}

body.theme-light .search-box input::placeholder {
  color: #94a3b8;
}

body.theme-light .search-box input:focus,
body.theme-light .select-input:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* Light Mode Tables */
body.theme-light .table-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

body.theme-light .data-table th {
  background: #f8fafc;
  color: #475569;
  border-bottom: 1px solid #cbd5e1;
}

body.theme-light .data-table td {
  border-bottom: 1px solid #f1f5f9;
  color: #0f172a;
}

body.theme-light .data-table tr:hover {
  background: #f8fafc;
}

/* Light Mode Modals & Toasts */
body.theme-light .modal-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

body.theme-light .modal-header {
  border-bottom: 1px solid #e2e8f0;
}

body.theme-light .modal-title {
  color: #0f172a;
}

body.theme-light .form-group label {
  color: #334155;
}

body.theme-light .form-control {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}

body.theme-light .form-control:focus {
  border-color: #0284c7;
}

body.theme-light .toast {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

body.theme-light .terminal-box {
  background: #0f172a;
  color: #f8fafc;
  border: 1px solid #334155;
}

body.theme-light .status-indicator-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #059669;
}

/* ================= LEADERBOARD COMPONENT STYLES ================= */
.leaderboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.leaderboard-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.leaderboard-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.leaderboard-icon.gold {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.leaderboard-icon.cyan {
  background: rgba(6, 182, 212, 0.15);
  color: var(--primary-cyan);
}

.leaderboard-icon.emerald {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
}

.leaderboard-card-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.leaderboard-card-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.leaderboard-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.leaderboard-item:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
}

.leaderboard-rank-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rank-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.rank-badge.rank-1 {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.rank-badge.rank-2 {
  background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
  box-shadow: 0 0 10px rgba(148, 163, 184, 0.3);
}

.rank-badge.rank-3 {
  background: linear-gradient(135deg, #b45309 0%, #78350f 100%);
  box-shadow: 0 0 10px rgba(180, 83, 9, 0.3);
}

.rank-badge.rank-other {
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.leaderboard-item-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-main);
}

.leaderboard-item-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.leaderboard-val-tag {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  color: var(--primary-cyan);
}

/* ================= LOGIN & SETTINGS COMPONENT STYLES ================= */
.login-screen-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.login-screen-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-glow), 0 25px 50px rgba(0, 0, 0, 0.4);
  animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-brand {
  text-align: center;
  margin-bottom: 24px;
}

.login-brand-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  margin: 0 auto 16px auto;
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.4);
}

.login-brand-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 1px;
}

.login-brand-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.login-error-msg {
  background: rgba(225, 29, 72, 0.1);
  border: 1px solid rgba(225, 29, 72, 0.3);
  color: var(--accent-rose);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  margin-bottom: 16px;
  text-align: center;
}

.login-footer-hint {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 20px;
  line-height: 1.5;
}

.login-footer-hint code {
  font-family: var(--font-mono);
  color: var(--primary-cyan);
  font-weight: 700;
}

/* SETTINGS STYLES */
.settings-container {
  max-width: 680px;
}

.settings-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.settings-group-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-cyan);
}

.settings-divider {
  border: 0;
  height: 1px;
  background: var(--border-color);
  margin: 10px 0;
}

/* ====================================================================
   MOBILE-FIRST RESPONSIVE DESIGN OVERHAUL (SMARTPHONES & TABLETS)
   ==================================================================== */

/* SIDEBAR OVERLAY BACKDROP FOR MOBILE */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 17, 29, 0.7);
  backdrop-filter: blur(8px);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* MEDIA QUERY: SMALLER SCREENS (<= 768px - MOBILE PHONES & SMALL TABLETS) */
@media (max-width: 768px) {
  .app-main {
    padding: 0;
  }

  .app-header {
    padding: 12px 16px;
    flex-wrap: nowrap;
    gap: 10px;
    position: relative;
    height: auto;
  }

  .header-left {
    gap: 10px;
    min-width: 0;
    flex: 1;
  }

  .header-title {
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-right {
    gap: 8px;
    width: auto;
    justify-content: flex-end;
    padding-top: 0;
    border-top: none;
    flex-shrink: 0;
  }

  .clock-badge {
    font-size: 11px;
    padding: 4px 8px;
  }

  .content-body {
    padding: 14px 12px;
  }

  /* OFF-CANVAS SLIDING DRAWER SIDEBAR */
  .app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    z-index: 100;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
  }

  .app-layout.mobile-sidebar-open .app-sidebar {
    transform: translateX(0) !important;
  }

  .mobile-menu-btn {
    display: flex !important;
  }

  /* STATS CARDS GRID (100% RESPONSIVE) */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .stat-card {
    padding: 14px 12px !important;
  }

  .stat-value {
    font-size: 20px !important;
  }

  .stat-desc {
    font-size: 11px !important;
  }

  /* FILTER BAR & SEARCH INPUT */
  .vps-controls-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .filter-pills {
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }

  .pill-btn {
    flex-shrink: 0;
    padding: 8px 12px;
    font-size: 12px;
  }

  .search-box {
    width: 100% !important;
  }

  .form-control {
    font-size: 14px;
    padding: 12px;
  }

  /* PROFILES GRID */
  .profiles-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .profile-card {
    padding: 16px !important;
  }

  /* LEADERBOARD GRID */
  .leaderboard-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  /* TABLES TOUCH SCROLLING */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md);
    margin-bottom: 15px;
  }

  .data-table {
    min-width: 650px;
  }

  .data-table th, 
  .data-table td {
    padding: 10px 12px;
    font-size: 13px;
  }

  /* MODALS MOBILE OPTIMIZATION */
  .modal-card {
    width: 95vw !important;
    max-width: 95vw !important;
    padding: 20px !important;
    margin: 10px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
  }

  .settings-card {
    padding: 20px !important;
  }

  .settings-container {
    width: 100% !important;
  }

  /* TOUCH TAP TARGETS (MIN 44PX) */
  .btn, .btn-icon, .nav-item {
    min-height: 44px;
  }
}

/* MEDIA QUERY: EXTRA SMALL MOBILE SCREENS (<= 480px) */
@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr !important;
  }

  .header-title {
    font-size: 16px;
  }

  .login-card {
    padding: 22px 18px !important;
  }
}

/* ================= WORKSPACE & VPS HARDWARE SPECS STYLES ================= */
.notice-banner-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: var(--radius-md);
  color: var(--primary-cyan);
  font-size: 13px;
  margin-top: 16px;
  line-height: 1.5;
}

.vps-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.vps-spec-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-glow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.vps-spec-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
}

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

.vps-spec-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.vps-spec-sub {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.metric-meter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.metric-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.metric-name {
  color: var(--text-muted);
  font-weight: 500;
}

.metric-val {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-main);
}

.meter-bar-track {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--bg-input);
  overflow: hidden;
}

.meter-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease;
}

.meter-bar-fill.normal {
  background: linear-gradient(90deg, #10b981 0%, #06b6d4 100%);
}

.meter-bar-fill.warning {
  background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

.meter-bar-fill.danger {
  background: linear-gradient(90deg, #e11d48 0%, #be123c 100%);
}

.vps-meta-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: var(--bg-dark);
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  font-size: 12px;
}

.meta-detail-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meta-detail-label {
  color: var(--text-muted);
  font-size: 11px;
}

.meta-detail-value {
  font-weight: 600;
  color: var(--text-main);
  word-break: break-all;
}

.badge-readonly {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
}

/* WORKSPACE FILTER BAR & CUSTOM SELECT STYLES */
.workspace-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  margin-top: 16px;
  box-shadow: var(--shadow-glow);
}

.filter-inputs-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.select-box-wrapper {
  position: relative;
  min-width: 220px;
}

.select-box-wrapper .select-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-cyan);
  pointer-events: none;
  z-index: 2;
}

.custom-select {
  padding-left: 40px !important;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .workspace-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-inputs-group {
    flex-direction: column;
    align-items: stretch;
  }
  .select-box-wrapper {
    width: 100%;
  }
}

/* CUSTOM CONFIRMATION MODAL STYLES */
.modal-card-confirm {
  max-width: 480px !important;
  padding: 32px 28px !important;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.confirm-modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(225, 29, 72, 0.12);
  border: 1px solid rgba(225, 29, 72, 0.3);
  color: var(--accent-rose);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.confirm-modal-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.confirm-modal-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  padding: 0 12px;
  margin: 4px 0 10px 0;
  word-break: break-word;
}

.confirm-modal-actions {
  display: flex;
  gap: 16px;
  width: 100%;
  margin-top: 12px;
}

.confirm-modal-actions button {
  flex: 1;
  padding: 12px 18px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

/* WORKSPACE CARDS GRID STYLES */
.workspace-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.workspace-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-glow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.workspace-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
}

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

.workspace-card-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  word-break: break-all;
}

.workspace-card-server {
  font-size: 12px;
  color: var(--primary-cyan);
  font-weight: 600;
}

.workspace-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

.workspace-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.workspace-stat-label {
  color: var(--text-muted);
}

.workspace-stat-val {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-main);
}

.workspace-card-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* EMBEDDED DASHBOARD SPECS IN VPS CARDS */
.dashboard-vps-specs {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dashboard-spec-meter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}

.dash-meter-track {
  width: 100px;
  height: 6px;
  border-radius: 3px;
  background: var(--bg-input);
  overflow: hidden;
}

/* MAINTENANCE MODE STYLES */
.maintenance-alert-banner {
  background: linear-gradient(90deg, #dc2626, #b91c1c);
  color: #ffffff;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 13px;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

.pulse-dot-red {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ef4444;
  box-shadow: 0 0 0 rgba(239, 68, 68, 0.7);
  animation: pulseRed 1.5s infinite;
  display: inline-block;
  flex-shrink: 0;
}

@keyframes pulseRed {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.8);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.maint-status-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.maint-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ROTATING REFRESH ICON ANIMATION */
@keyframes spinIcon {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.spinning-icon {
  animation: spinIcon 0.8s linear infinite;
}


