/* Utility to hide spinners in number inputs */
/* Webkit (Chrome, Safari, Edge) */
.no-spinner::-webkit-outer-spin-button,
.no-spinner::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
  display: none !important;
}

/* Firefox */
.no-spinner {
  -moz-appearance: textfield !important;
  appearance: textfield !important;
}

/* Adjust standard number input spinners to be less harsh (opacity) */
input[type="number"]:not(.no-spinner)::-webkit-inner-spin-button {
    opacity: 0.3;
    cursor: pointer;
}
input[type="number"]:not(.no-spinner):hover::-webkit-inner-spin-button {
    opacity: 0.7;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #f8fafc;
}

/* Custom scrollbar for sidebar */
.custom-scrollbar::-webkit-scrollbar {
  width: 4px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background-color: #e2e8f0;
  border-radius: 20px;
}

/* Utilities for sidebar transitions */
.right-sidebar {
  position: fixed;
  top: 70px; /* Adjusted for Navbar height */
  right: -400px;
  width: 350px;
  height: calc(100% - 70px); /* Full height minus navbar */
  background: white;
  box-shadow: -2px 0 10px rgba(0,0,0,0.1);
  transition: right 0.3s ease-in-out;
  z-index: 1040;
  padding: 20px;
  overflow-y: auto;
}

.right-sidebar.show {
  right: 0;
}

/* Hover effects for cards that Bootstrap doesn't provide by default */
.hover-shadow:hover {
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
  transform: translateY(-2px);
  transition: all 0.2s ease-in-out;
}

/* Responsive constraints for editor columns */
@media (min-width: 1200px) {
  .editor-column {
    max-width: 500px;
  }
  .position-xl-sticky {
    position: sticky;
  }
}

/* --- Modern Navbar Styles --- */
.navbar-blur {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-link-modern {
  color: #64748b; /* Slate 500 */
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 1rem !important;
  border-radius: 8px;
  transition: all 0.2s ease;
  margin-right: 0.25rem;
}

.nav-link-modern:hover {
  color: #334155; /* Slate 700 */
  background-color: #f1f5f9; /* Slate 100 */
}

.nav-link-modern.active {
  color: #0f172a; /* Slate 900 */
  background-color: #e2e8f0; /* Slate 200 */
  font-weight: 600;
}

.nav-lang-select {
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 0.25rem 0.75rem;
  font-size: 0.85rem;
  color: #475569;
  background-color: white;
  cursor: pointer;
  transition: all 0.2s;
  outline: none;
}

.nav-lang-select:hover, .nav-lang-select:focus {
  border-color: #cbd5e1;
  background-color: #f8fafc;
}

/* --- Mobile Navbar Overrides --- */
@media (max-width: 991.98px) {
  .navbar-collapse.show {
    padding: 0.5rem 1rem 1rem 1rem;
    margin-top: 10px;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  }

  .navbar-dark .navbar-collapse.show {
    background-color: #212529; /* Explicit dark background */
    border: 1px solid rgba(255, 255, 255, 0.05);
  }

  .navbar-light .navbar-collapse.show {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 0, 0, 0.05);
  }

  .nav-link-modern, .navbar-dark .nav-link {
    padding: 0.75rem 1rem !important;
    margin-bottom: 0.25rem;
  }
}

/* --- Modern Footer Styles --- */
.footer-blur {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-link {
  color: #64748b;
  font-size: 0.85rem;
  transition: color 0.2s;
  text-decoration: none;
}

.footer-link:hover {
  color: #0f172a;
}
