/* ------------------------------
   GLOBAL BODY & BACKGROUND
------------------------------- */
body {
  min-height: 100vh;
  margin-top: 5rem;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  color: #eaeaf0;

  /* GitHub Copilot style neon gradient */
  background: radial-gradient(circle at top, #1a1f3c, #05070f 70%);
  background-attachment: fixed;
}

/* Subtle animated glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(120deg, rgba(79,172,254,0.12), rgba(167,95,255,0.12));
  animation: glowShift 10s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: -1;
}

@keyframes glowShift {
  0% { opacity: 0.4; }
  100% { opacity: 0.8; }
}

/* ------------------------------
   TYPOGRAPHY
------------------------------- */
h1, h2, h3, h4, h5, h6 {
  color: #ffffff;
  letter-spacing: 0.5px;
}

a {
  color: #4facfe;
  text-decoration: none;
  transition: all 0.25s ease;
}
a:hover {
  color: #a75fff;
  text-shadow: 0 0 8px rgba(167,95,255,0.6);
}

/* ------------------------------
   NAVBAR (GLASS EFFECT)
------------------------------- */
.bg-steel {
  background: rgba(15, 18, 35, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.site-header .navbar-nav .nav-link {
  color: #cdd9ff;
  font-weight: 500;
  position: relative;
}

.site-header .navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #4facfe, #a75fff);
  transition: width 0.3s ease;
}

.site-header .navbar-nav .nav-link:hover::after {
  width: 100%;
}

.site-header .navbar-nav .nav-link.active {
  color: #ffffff;
}

/* ------------------------------
   SIDEBAR (GLASS PANEL)
------------------------------- */
.sidebar {
  width: 250px;
  height: calc(100vh - 56px);
  position: fixed;
  top: 56px;
  left: 0;
  overflow-y: auto;
  z-index: 1050;

  background: rgba(10, 14, 30, 0.85);
  backdrop-filter: blur(14px);
  border-right: 1px solid rgba(255,255,255,0.1);

  box-shadow: 10px 0 40px rgba(0,0,0,0.6);
  transition: left 0.3s ease-in-out;
}

.sidebar:not(.active) {
  left: -250px;
}

/* Sidebar links */
.sidebar .nav-link {
  font-size: 14px;
  padding: 8px 14px;
  color: #d6e0ff;
  border-radius: 8px;
  transition: all 0.25s ease;
}

.sidebar .nav-link:hover {
  background: linear-gradient(90deg, rgba(79,172,254,0.2), rgba(167,95,255,0.2));
  box-shadow: 0 0 12px rgba(79,172,254,0.4);
  transform: translateX(4px);
}

/* Submenu */
.sidebar .collapse .nav-link {
  font-size: 13px;
  padding-left: 24px;
}

/* ------------------------------
   MAIN CONTENT
------------------------------- */
.content {
  margin-left: 0;
  margin-top: 56px;
  padding: 1.5rem;
  transition: margin-left 0.3s ease-in-out;
}

.content.shifted {
  margin-left: 250px;
}

/* ------------------------------
   CARDS (FLOATING GLOW PANELS)
------------------------------- */
.card,
.content-section,
.profile-card {
  background: rgba(18, 22, 45, 0.9);
  color: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);

  box-shadow:
    0 20px 40px rgba(0,0,0,0.7),
    inset 0 0 30px rgba(79,172,254,0.05);

  padding: 25px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.card:hover,
.content-section:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow:
    0 30px 60px rgba(0,0,0,0.9),
    0 0 20px rgba(79,172,254,0.4);
}

/* ------------------------------
   FLOATING DARK HEADER
------------------------------- */
.header-dark {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;

  background: linear-gradient(90deg, rgba(79,172,254,0.25), rgba(167,95,255,0.25));
  backdrop-filter: blur(12px);

  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding: 1rem;

  box-shadow: 0 10px 30px rgba(0,0,0,0.7);
}

.header-dark h4,
.header-dark i {
  color: #ffffff !important;
}

/* Push card content down */
.card-body {
  color: #fff;
  padding-top: 80px;
}

/* ------------------------------
   IMAGES / METADATA
------------------------------- */
.article-img,
.account-img {
  border-radius: 50%;
  border: 3px solid transparent;
  background: linear-gradient(#000, #000) padding-box,
              linear-gradient(90deg, #4facfe, #a75fff) border-box;
  box-shadow: 0 0 20px rgba(79,172,254,0.6);
}

.article-metadata {
  border-bottom: 1px solid rgba(255,255,255,0.15);
  color: #b5c6ff;
  font-size: 0.85rem;
}

/* ------------------------------
   INPUTS / FORMS
------------------------------- */
.form-label {
  font-weight: 600;
  color: #000;
}

.form-control,
.form-select {
  background: #fff;
  color: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 10px 14px;
  transition: all 0.25s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: #4facfe;
  box-shadow: 0 0 0 0.25rem rgba(79,172,254,0.3);
  background: #fff;
}

/* ------------------------------
   BUTTONS (NEON GLOW)
------------------------------- */

.btn-custom,
.btn-warning,
.header-btn {
  background: linear-gradient(90deg, #4facfe, #a75fff);
  color: #ffffff !important;
  border: none;
  border-radius: 14px;
  padding: 10px 22px;
  font-weight: 600;

  box-shadow: 0 10px 25px rgba(79,172,254,0.5);
  transition: all 0.25s ease;
}

.btn:hover,
.header-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow:
    0 15px 40px rgba(167,95,255,0.7),
    0 0 20px rgba(79,172,254,0.8);
}

/* ------------------------------
   MOBILE TWEAKS
------------------------------- */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.show {
    transform: translateX(0);
  }

  .content {
    margin-left: 0;
  }

  .sidebar img {
    width: 60px !important;
    height: 60px !important;
  }
}
