@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
  --bg-color: #0b0f19;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --accent-cyan: #06b6d4;
  --accent-neon: #38bdf8;
  --status-online: #10b981;
  --status-offline: #ef4444;
  --card-radius: 16px;
  --glow-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

body {
  background-color: var(--bg-color);
  background-image: 
    radial-gradient(at 0% 0%, rgba(6, 182, 212, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(56, 189, 248, 0.15) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--accent-neon);
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}

/* Glassmorphism Classes */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  box-shadow: var(--glow-shadow);
  padding: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  position: relative;
}

.glass-panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  background: rgba(255, 255, 255, 0.08);
}

/* Layout */
.container-fluid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

.grid-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.grid-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

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

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

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

/* Typography */
h1, h2, h3, h4 {
  margin: 0 0 16px 0;
  font-weight: 600;
  letter-spacing: 0.5px;
}

h1 {
  font-size: 2.5rem;
  background: -webkit-linear-gradient(45deg, var(--accent-cyan), var(--accent-neon));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 8px;
}

/* Status Colors */
.statusOnline {
  color: var(--status-online);
  font-weight: 600;
  text-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.statusOffline {
  color: var(--status-offline);
  font-weight: 600;
  text-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
}
.status-dot.online { background: var(--status-online); box-shadow: 0 0 8px var(--status-online); }
.status-dot.offline { background: var(--status-offline); box-shadow: 0 0 8px var(--status-offline); }

/* Utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.pointer { cursor: pointer; }
.text-muted { color: var(--text-secondary); font-size: 0.9rem; }

/* Custom Progress Bar for Helpers */
.progress-container {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  height: 12px;
  width: 100%;
  overflow: hidden;
  margin: 4px 0;
  border: 1px solid var(--glass-border);
  display: flex;
}

.progress-bar {
  height: 100%;
  border-radius: 8px;
  transition: width 0.5s ease-out;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-neon));
}

.progress-bar.warning { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.progress-bar.danger { background: linear-gradient(90deg, #ef4444, #f87171); }

/* Buttons */
.btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  font-weight: 600;
}
.btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.3);
}

/* Delete Button */
.btn-delete {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--status-offline);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-color);
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
  transition: transform 0.2s, background 0.2s;
}
.btn-delete:hover {
  transform: scale(1.1);
  background: #dc2626;
}

.disclaimerBody {
  margin-top: 40px;
  padding: 20px;
  border-top: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-align: center;
}