/* GOOGLE FONTS IMPORT */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

/* ROOT VARIABLES */
:root {
  /* Colors */
  --color-primary: #0891B2;
  --color-secondary: #22D3EE;
  --color-cta: #22C55E;
  --color-background: #ECFEFF;
  --color-text: #164E63;
  --color-border: #E2E8F0;
  --color-glass: rgba(255, 255, 255, 0.7);

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
}

/* GLOBAL RESET & TYPOGRAPHY */
html {
  font-size: 16px;
}

body {
  background-color: var(--color-background);
  color: var(--color-text);
  font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
  margin-bottom: 60px;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

/* COMPONENTS */

/* Buttons */
.btn-primary {
  background: var(--color-cta);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 200ms ease;
  cursor: pointer;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  background: var(--color-cta);
  /* Override bootstrap */
  color: white;
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 200ms ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(8, 145, 178, 0.1);
  transform: translateY(-1px);
  color: var(--color-primary);
}

/* Glassmorphism Cards */
.card-glass {
  background: var(--color-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  transition: all 200ms ease;
}

.card-glass:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* Inputs */
.form-control {
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 200ms ease;
}

.form-control:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}

/* Navbar Customization */
.navbar-glass {
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-sm);
}

.navbar-brand {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--color-primary) !important;
  font-size: 1.5rem;
}

.nav-link {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  color: var(--color-text) !important;
  margin-left: var(--space-md);
}

.nav-link:hover {
  color: var(--color-primary) !important;
}

/* FOOTER */
.footer {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(5px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* PREMIUM UI ENHANCEMENTS */
.animate-fade-in-up {
  animation: fadeInUp 0.5s ease-out forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-background);
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 10px;
  border: 2px solid var(--color-background);
}

::-webkit-scrollbar-thumb:hover {
  background: #067a96;
}

/* Dynamic Gradients */
.bg-gradient-premium {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

/* Enhanced Hover Effects */
.hover-glow:hover {
  box-shadow: 0 0 15px rgba(8, 145, 178, 0.4);
}

.hover-slide-right {
  transition: all 0.3s ease;
}

.hover-slide-right:hover {
  padding-left: 32px !important;
}

/* Skeleton Loading Shine */
.skeleton {
  background: #eee;
  background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
  border-radius: 5px;
  background-size: 200% 100%;
  animation: 1.5s shine linear infinite;
}

@keyframes shine {
  to {
    background-position-x: -200%;
  }
}

/* Glass Tabs */
.nav-tabs-glass {
  border-bottom: none;
  gap: var(--space-sm);
}

.nav-tabs-glass .nav-link {
  border: 1px solid transparent;
  border-radius: 30px;
  padding: 8px 20px;
  color: var(--color-text);
  transition: all 0.2s;
}

.nav-tabs-glass .nav-link.active {
  background: var(--color-primary);
  color: white !important;
  box-shadow: var(--shadow-md);
}

.nav-tabs-glass .nav-link:hover:not(.active) {
  background: rgba(8, 145, 178, 0.1);
}

/* Glass Sidebar Item */
.sidebar-link-glass {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 12px;
  color: var(--color-text);
  text-decoration: none;
  transition: all 0.2s;
  margin-bottom: 4px;
}

.sidebar-link-glass:hover {
  background: rgba(8, 145, 178, 0.1);
  color: var(--color-primary);
  transform: translateX(5px);
}

.sidebar-link-glass.active {
  background: var(--color-primary);
  color: white;
  box-shadow: var(--shadow-sm);
}

/* Mobile Filter Optimization */
@media (max-width: 991.98px) {
  .card-glass.sticky-top {
    position: relative !important;
    top: 0 !important;
  }
  
  #filterCollapse {
    display: none;
  }
  
  #filterCollapse.show {
    display: block;
    animation: fadeIn 0.3s ease-out;
  }
  
  .filter-toggle-btn {
    display: flex !important;
  }
}

.filter-toggle-btn {
  display: none;
  width: 100%;
  justify-content: space-between;
  align-items: center;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Product Card */
.product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  border-radius: 15px;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.product-img {
  height: 200px;
  object-fit: cover;
}