/* ═══════════════════════════════════════════════════════════════
   Oracle Cloud Hub — Glassmorphism + Neon Dark Theme
   custom.css for gethomepage/homepage
   ═══════════════════════════════════════════════════════════════ */

/* ── Animated Gradient Background ───────────────────────────── */
#page_wrapper {
  background: linear-gradient(
    135deg,
    #0a0e1a 0%,
    #111827 20%,
    #0f172a 40%,
    #1e1b4b 60%,
    #0c1222 80%,
    #0a0e1a 100%
  ) !important;
  background-size: 400% 400% !important;
  animation: aurora 20s ease infinite !important;
}

@keyframes aurora {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── Top Information Widgets Bar ────────────────────────────── */
#information-widgets {
  background: rgba(15, 23, 42, 0.45) !important;
  backdrop-filter: blur(20px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.4) !important;
  border: 1px solid rgba(99, 102, 241, 0.15) !important;
  border-radius: 16px !important;
  padding: 1rem 1.5rem !important;
  margin-bottom: 1rem !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

/* ── Widget Containers (CPU, RAM, Disk, Uptime) ─────────────── */
.widget-container {
  background: transparent !important;
}

/* ── Section / Group Headers ────────────────────────────────── */
.services-group h2,
h2 {
  color: #818cf8 !important;
  text-shadow: 0 0 12px rgba(129, 140, 248, 0.4),
               0 0 30px rgba(129, 140, 248, 0.15) !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
  font-size: 0.85rem !important;
  padding-bottom: 0.5rem !important;
  border-bottom: 1px solid rgba(129, 140, 248, 0.15) !important;
  margin-bottom: 0.75rem !important;
}

/* ── Service Cards — Glassmorphism ──────────────────────────── */
.service-card,
.service {
  background: rgba(15, 23, 42, 0.5) !important;
  backdrop-filter: blur(16px) saturate(1.3) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.3) !important;
  border: 1px solid rgba(99, 102, 241, 0.12) !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
  overflow: hidden !important;
}

.service-card:hover,
.service:hover {
  transform: translateY(-3px) scale(1.015) !important;
  border-color: rgba(129, 140, 248, 0.4) !important;
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.12),
              0 0 30px rgba(99, 102, 241, 0.06),
              inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

/* subtle top-edge highlight on hover */
.service-card:hover::before,
.service:hover::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 10% !important;
  right: 10% !important;
  height: 1px !important;
  background: linear-gradient(90deg,
    transparent,
    rgba(129, 140, 248, 0.6),
    transparent
  ) !important;
}

/* ── Service Names & Descriptions ───────────────────────────── */
.service-name {
  color: #e2e8f0 !important;
  font-weight: 600 !important;
}

.service-description {
  color: #94a3b8 !important;
  font-size: 0.78rem !important;
}

/* ── Service Icons Glow on Hover ────────────────────────────── */
.service-icon img {
  transition: filter 0.3s ease !important;
}

.service-card:hover .service-icon img,
.service:hover .service-icon img {
  filter: drop-shadow(0 0 8px rgba(129, 140, 248, 0.5)) !important;
}

/* ── Docker Stats Row (CPU, MEM, RX, TX) ────────────────────── */
.service-tags,
.docker-status {
  color: #7dd3fc !important;
  font-size: 0.72rem !important;
  font-family: 'JetBrains Mono', 'Fira Code', monospace !important;
}

/* ── Bookmarks Section ──────────────────────────────────────── */
.bookmark-group {
  background: rgba(15, 23, 42, 0.35) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(99, 102, 241, 0.1) !important;
  border-radius: 12px !important;
  padding: 0.75rem !important;
}

.bookmark-group a {
  color: #a5b4fc !important;
  transition: color 0.2s ease, text-shadow 0.2s ease !important;
}

.bookmark-group a:hover {
  color: #c7d2fe !important;
  text-shadow: 0 0 8px rgba(165, 180, 252, 0.4) !important;
}

/* ── Scrollbar Styling ──────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px !important;
}

::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.3) !important;
}

::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.3) !important;
  border-radius: 3px !important;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.5) !important;
}

/* ── Search Dialog Glassmorphism ─────────────────────────────── */
dialog {
  background: rgba(15, 23, 42, 0.85) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border: 1px solid rgba(99, 102, 241, 0.2) !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
}

dialog input {
  background: rgba(30, 41, 59, 0.6) !important;
  border: 1px solid rgba(99, 102, 241, 0.15) !important;
  color: #f1f5f9 !important;
}

/* ── Smooth Fade-In Animation on Load ───────────────────────── */
.services-group {
  animation: fadeSlideUp 0.6s ease both !important;
}

.services-group:nth-child(1) { animation-delay: 0.1s !important; }
.services-group:nth-child(2) { animation-delay: 0.2s !important; }
.services-group:nth-child(3) { animation-delay: 0.3s !important; }

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