:root {
  --primary: #2563EB;
  --secondary: #3B82F6;
  --accent: #6366F1;
  --success: #10B981;
  --danger: #EF4444;
  --warning: #F59E0B;
  --background: #F8FAFC;
  --card: #FFFFFF;
  --border: #E2E8F0;
  --text: #0F172A;
  --text-muted: #64748b;
  --sidebar-bg: #FFFFFF;
  --sidebar-admin: #0F172A;
}

body.dark-mode {
  --background: #0F172A;
  --card: #1E293B;
  --border: #334155;
  --text: #F8FAFC;
  --text-muted: #94A3B8;
  --sidebar-bg: #1E293B;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background);
  color: var(--text);
  transition: background-color 0.3s, color 0.3s;
}

.text-primary-custom { color: var(--primary) !important; }
.bg-primary-custom { background-color: var(--primary) !important; }

.gradient-hero {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  position: relative;
  overflow: hidden;
}

.gradient-hero::before, .gradient-hero::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 6s infinite ease-in-out;
}

.gradient-hero::before { top: -50px; left: -50px; }
.gradient-hero::after { bottom: -50px; right: -50px; animation-delay: -3s; }

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(20px); }
  100% { transform: translateY(0); }
}

.card, .glass-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-gradient {
  background: linear-gradient(45deg, var(--primary), var(--accent));
  color: white;
  border: none;
  transition: opacity 0.3s;
}
.btn-gradient:hover {
  opacity: 0.9;
  color: white;
}

/* Sidebar */
.sidebar {
  width: 260px;
  background-color: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  transition: left 0.3s;
  z-index: 1000;
  overflow-y: auto;
}
.sidebar-admin { background-color: var(--sidebar-admin); color: #fff; }
.sidebar-admin .nav-link { color: #cbd5e1; }
.sidebar-admin .nav-link:hover, .sidebar-admin .nav-link.active { color: #fff; background: rgba(255,255,255,0.1); }

.nav-link {
  color: var(--text-muted);
  border-radius: 0.5rem;
  margin: 0.2rem 1rem;
  padding: 0.75rem 1rem;
  transition: background 0.2s, color 0.2s;
}
.nav-link:hover, .nav-link.active {
  background-color: rgba(37, 99, 235, 0.1);
  color: var(--primary);
}
.nav-link i { margin-right: 0.75rem; font-size: 1.1rem; }

/* Dashboard layout */
.main-content {
  margin-left: 260px;
  min-height: 100vh;
  transition: margin-left 0.3s;
}
@media (max-width: 992px) {
  .sidebar { left: -260px; }
  .sidebar.show { left: 0; }
  .main-content { margin-left: 0; }
}

/* Top Navbar */
.topbar {
  background-color: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
}

/* Forms */
.form-control, .form-select {
  background-color: var(--background);
  border-color: var(--border);
  color: var(--text);
  border-radius: 0.5rem;
  padding: 0.75rem;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

/* Code Snippet Mockup */
.code-mockup {
  background-color: #1E293B;
  color: #a8b2d1;
  border-radius: 0.5rem;
  padding: 1rem;
  font-family: monospace;
  position: relative;
}
.code-mockup::before {
  content: '•••';
  display: block;
  font-size: 1.5rem;
  line-height: 0.5;
  color: #64748B;
  margin-bottom: 1rem;
}

/* ─── Responsive Logo Rules for PNG & SVG ──────────────────────────────────── */
.brand-logo {
  height: 40px;
  max-height: 40px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: all 0.25s ease-in-out;
  vertical-align: middle;
}

.brand-logo-sm {
  height: 32px;
  max-height: 32px;
}

.brand-logo-lg {
  height: 48px;
  max-height: 48px;
}

@media (max-width: 991.98px) {
  .brand-logo {
    height: 34px;
    max-height: 34px;
  }
}

@media (max-width: 575.98px) {
  .brand-logo {
    height: 28px;
    max-height: 28px;
  }
  .brand-logo-lg {
    height: 36px;
    max-height: 36px;
  }
}

/* ─── Premium Footer Styling ────────────────────────────────────────────────── */
.site-footer {
  background: linear-gradient(180deg, #0F172A 0%, #090D16 100%);
  color: #94A3B8;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.site-footer h6 {
  color: #F8FAFC;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.site-footer ul li {
  margin-bottom: 0.75rem;
}

.site-footer ul li a {
  color: #94A3B8;
  font-size: 0.925rem;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
  display: inline-block;
}

.site-footer ul li a:hover {
  color: #3B82F6;
  transform: translateX(4px);
}

.footer-social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #F8FAFC;
  transition: all 0.25s ease-in-out;
  text-decoration: none;
}

.footer-social-link:hover {
  background: #2563EB;
  color: #FFFFFF;
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.3);
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #10B981;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
}

.footer-status-dot {
  width: 8px;
  height: 8px;
  background-color: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10B981;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  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); }
}
