/* =========================================
   1. CORE VARIABLES & THEME CONFIG
   ========================================= */
:root {
  /* Brand Colors */
  --primary: #dc2626;
  --primary-soft: rgba(220, 38, 38, 0.08);

  /* Backgrounds */
  --bg-body: #f8fafc;
  --bg-card: #ffffff;

  /* Navbar Background (0.85 alpha for transparency effect) */
  --nav-bg: rgba(255, 255, 255, 0.85);

  /* Typography & Borders */
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;

  /* Effects */
  --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Dark Mode Overrides */
[data-bs-theme="dark"] {
  --bg-body: #0b0f1a;
  --bg-card: #161e2e;

  /* Dark Navbar with Transparency */
  --nav-bg: rgba(22, 30, 46, 0.85);

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --border-color: #2d3748;
  --card-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

/* =========================================
   2. BASE TYPOGRAPHY & RESET
   ========================================= */
body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
}

/* =========================================
   3. NAVIGATION BAR (HEADER)
   ========================================= */
.navbar {
  /* Blur effect for "frosted glass" look when scrolling */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  /* Force custom background over Bootstrap defaults */
  background-color: var(--nav-bg) !important;

  border-bottom: 2px solid var(--border-color);
  padding: 1rem 0;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Navbar Dark Mode Adjustment */
[data-bs-theme="dark"] .navbar {
  border-bottom: 1px solid var(--primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Ensure Nav Links adapt to Dark Mode */
.navbar .nav-link {
  color: var(--text-main);
  font-weight: 500;
}

.navbar .nav-link:hover {
  color: var(--primary);
}

/* =========================================
   4. GLOBAL COMPONENTS & UTILITIES
   ========================================= */
/* Custom Primary Button */
.btn-danger {
  background: var(--primary);
  border: none;
  padding: 12px 28px;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-danger:hover {
  background: #b91c1c;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(220, 38, 38, 0.3);
}

/* Gradient Text Effect */
.text-gradient {
  background: linear-gradient(135deg, #dc2626 0%, #f87171 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =========================================
   5. PAGE: HOME / DASHBOARD
   ========================================= */
/* Main Feature Cards */
.feature-card,
.tutorial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.feature-card:hover,
.tutorial-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: var(--card-shadow);
}

/* Version Pill Badge */
.version-badge {
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid rgba(220, 38, 38, 0.2);
  padding: 6px 16px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-block;
}

/* =========================================
   6. PAGE: UPDATES (TIMELINE)
   ========================================= */
.update-block {
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  padding: 2rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.update-block:hover {
  border-left: 5px solid var(--primary);
}

/* =========================================
   7. PAGE: TUTORIAL GUIDES (STEPS)
   ========================================= */
/* Main Container for Steps */
.step-container,
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-container:hover,
.step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: var(--primary);
}

/* Step Number Badge */
.step-badge {
  width: 45px;
  height: 45px;
  background: var(--primary);
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.3);
}

/* Image Container in Steps */
.step-img-container {
  margin-top: 2rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  background-color: var(--bg-body);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
}

.step-img-container img {
  max-width: 100%;
  width: auto;
  max-height: 500px;
  display: block;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  transition: transform 0.5s ease;
}

.step-img-container:hover img {
  transform: scale(1.03);
}

/* =========================================
   8. GLOBAL FOOTER SECTION
   ========================================= */
.footer-main {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 5rem 0 2rem;
  margin-top: 6rem;
  position: relative;
}

[data-bs-theme="dark"] .footer-main {
  border-top: 1px solid var(--primary);
  background-color: #0d111d;
}

/* Footer Brand Icon */
.footer-brand-icon {
  width: 40px;
  height: 40px;
  background: transparent;
  /*color: white;*/
  /*border-radius: 10px;*/
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  /*box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);*/
}

.footer-column-title {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}

/* Footer Links & Interactions */
.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.footer-link i {
  font-size: 0.8rem;
  margin-right: 10px;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.footer-link:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.footer-link:hover i {
  opacity: 1;
  color: var(--primary);
}

.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

/* =========================================
   9. ANIMATIONS & STATUS
   ========================================= */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--primary-soft);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
}

.dot-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
  }
}
