/* BAIO Premium Stylesheet - Dynamic & Glassmorphic */
:root {
  --primary-color: #001F5E;
  --primary-light: rgba(0, 31, 94, 0.08);
  --accent-color: #FF8C00;
  --success-color: #0B7F3B;
  --success-light: rgba(11, 127, 59, 0.08);
  --warning-light: rgba(255, 140, 0, 0.08);
  --dark-color: #0f172a;
  --bg-gradient: linear-gradient(135deg, #0f172a, #1e293b);
  --font-family: 'Inter', sans-serif;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

body {
  font-family: var(--font-family);
  background-color: #f8fafc;
  color: #334155;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  /* Subtle animated gradient background */
  background: linear-gradient(120deg, #f0f4f8, #f8fafc, #e2e8f0);
  background-size: 200% 200%;
  animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.main-wrapper {
  flex: 1 0 auto;
}

/* Glassmorphism Utilities */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 1.5rem;
}

.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  border-radius: 1.25rem;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  border-color: rgba(255, 255, 255, 0.9);
}

/* Nav styles */
.navbar-glass {
  background-color: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  padding: 1rem 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.navbar-brand span {
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}

.nav-link {
  font-weight: 700;
  color: #64748b !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-color) !important;
  background-color: var(--primary-light);
  transform: scale(1.05);
}

/* Gradients */
.text-primary-gradient {
  background: linear-gradient(135deg, #001F5E, #0b3f91);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-primary-gradient {
  background: linear-gradient(135deg, #001F5E, #0b3f91);
}

.bg-accent-gradient {
  background: linear-gradient(135deg, #FF8C00, #ffaa42);
}

/* Buttons */
.btn-premium {
  background: linear-gradient(135deg, #001F5E, #0b3f91);
  color: white;
  border: none;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(0, 31, 94, 0.2);
  transition: all 0.3s ease;
}

.btn-premium:hover {
  background: linear-gradient(135deg, #0b3f91, #165acc);
  box-shadow: 0 8px 25px rgba(0, 31, 94, 0.3);
  transform: translateY(-2px);
  color: white;
}

.btn-premium-accent {
  background: linear-gradient(135deg, #FF8C00, #ffaa42);
  color: white;
  border: none;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(255, 140, 0, 0.2);
  transition: all 0.3s ease;
}

.btn-premium-accent:hover {
  background: linear-gradient(135deg, #ffaa42, #ffb966);
  box-shadow: 0 8px 25px rgba(255, 140, 0, 0.3);
  transform: translateY(-2px);
  color: white;
}

.rounded-4 { border-radius: 1rem !important; }
.rounded-5 { border-radius: 1.5rem !important; }

/* Badges */
.badge-glass {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Animations */
.animate-fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.animate-slide-up {
  animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Form Inputs */
.form-control-premium {
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  transition: all 0.2s ease;
}

.form-control-premium:focus {
  background-color: #ffffff;
  border-color: #001F5E;
  box-shadow: 0 0 0 4px rgba(0, 31, 94, 0.1);
  outline: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Layout Utilities */
.min-vh-75 { min-height: 75vh; }
.max-width-600 { max-width: 600px; }

/* Decorative Elements */
.blob-shape {
  position: absolute;
  filter: blur(60px);
  z-index: -1;
  opacity: 0.4;
}
.blob-1 {
  background: #3b82f6;
  width: 300px; height: 300px;
  top: -100px; right: -100px;
  border-radius: 50%;
}
.blob-2 {
  background: #FF8C00;
  width: 200px; height: 200px;
  bottom: 10%; left: -50px;
  border-radius: 50%;
}

/* Sidebar Collapsed State */
#appSidebar {
  transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
#appSidebar.sidebar-collapsed {
  width: 5rem !important; /* w-20 */
}
#appSidebar.sidebar-collapsed .sidebar-expanded-only {
  display: none !important;
}
#appSidebar.sidebar-collapsed .sidebar-collapsed-only {
  display: flex !important;
}
#appSidebar.sidebar-collapsed .nav-text {
  display: none !important;
}
#appSidebar.sidebar-collapsed .nav-section-title {
  opacity: 0;
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
#appSidebar.sidebar-collapsed .nav-link-item {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}
#appSidebar.sidebar-collapsed .nav-link-item i {
  margin-right: 0;
}
