/* Custom Styles for InvestLean Gotówka (based on nowy_wyglad) */

@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap");

:root {
  /* Primary color from reference project (Emerald/Premium) */
  --primary-color: #10b981;
}

body {
  font-family: "Outfit", sans-serif;
  /* Prevent classic scrollbar jump */
  overflow-y: scroll;
}

/* Custom Shadows */
.custom-shadow {
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

.floating-card-shadow {
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Custom Range Slider Styling */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background-color: #e2e8f0; /* slate-200 */
  border-radius: 5px;
  background-image: linear-gradient(var(--primary-color), var(--primary-color));
  background-size: 0% 100%;
  background-repeat: no-repeat;
  cursor: pointer;
}

/* Dark mode support for range background */
.dark input[type="range"] {
  background-color: #334155; /* slate-700 */
}

/* Thumb Styling */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 24px;
  width: 24px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--primary-color);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.1s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

input[type="range"]::-moz-range-thumb {
  height: 24px;
  width: 24px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--primary-color);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.1s ease;
}

input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.1);
}

/* Track fill logic is often handled by JS for webkit, but strictly CSS-only linear-gradient trick requires JS updating background-size. 
   If script.js doesn't update background-size, the fill won't move. 
   Original style.css didn't use background-image trick, it just styled the thumb. 
   nowy_wyglad code.html used: background-image: linear-gradient(var(--primary-blue), var(--primary-blue)); 
   We will keep it compatible with standard behavior primarily. */

/* Dropdown Menu (Header) */
.dropdown:hover .dropdown-menu {
  display: block;
}

/* Footer Toggle & Content (Legacy compatibility with script.js) */
.footer-toggle {
  cursor: pointer;
  user-select: none;
}

.footer-content {
  transition:
    max-height 0.4s ease,
    opacity 0.4s ease;
  overflow: hidden;
  opacity: 0;
  max-height: 0;
}

.footer-content.open {
  opacity: 1;
  max-height: 1000px; /* Arbitrary large height for animation */
}

/* --- Cookies Banner --- */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #1f2937; /* Dark gray */
  color: #fff;
  padding: 15px 20px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}
#cookie-banner.hide {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}
#cookie-banner .cookie-content {
  max-width: 900px;
  display: flex;
  align-items: center;
  gap: 20px;
}
#cookie-banner p {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: #e5e7eb;
}
#cookie-banner button {
  background: #10b981; /* Green */
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
#cookie-banner button:hover {
  background: #059669;
}
@media (max-width: 600px) {
  #cookie-banner .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  #cookie-banner button {
    width: 100%;
  }
}
