/* ── noUiSlider — Preline style override ── */
.nord-slider.noUi-target {
  height: 8px;
  border: none;
  box-shadow: none;
  background: #e5e7eb;
  border-radius: 9999px;
  margin: 6px 0;
}
.nord-slider .noUi-connects {
  border-radius: 9999px;
}
.nord-slider .noUi-connect {
  border-radius: 9999px;
}
.nord-slider--green .noUi-connect  { background: #22c55e; }
.nord-slider--blue  .noUi-connect  { background: #00A3F7; }

.nord-slider .noUi-handle {
  width: 18px !important;
  height: 18px !important;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
  cursor: grab;
  top: -5px !important;
  right: -9px !important;
  border: 4px solid transparent;
}
.nord-slider--green .noUi-handle { border-color: #22c55e; }
.nord-slider--blue  .noUi-handle { border-color: #00A3F7; }

.nord-slider .noUi-handle::before,
.nord-slider .noUi-handle::after { display: none; }
.nord-slider .noUi-handle:active { cursor: grabbing; }

:root {
  --color-primary: #002868;
  --color-accent:  #3b82f6;
  --border-radius: 1rem;
  --transition:    0.3s ease;
}

body {
    font-family: 'Inter Regular', 'Roboto', sans-serif;
  }

  .gear-icon {
    position: relative;
    width: 1.5rem;
    height: 1.5rem;
    display: inline-flex;
    flex-shrink: 0;
  }

  .gear-icon i {
    position: absolute;
    transform-origin: center;
  }

  .gear-icon .gear-large {
    left: 0;
    top: 0;
    font-size: 1rem;
  }

  .gear-icon .gear-small {
    right: -0.14rem;
    bottom: 0.08rem;
    font-size: 0.72rem;
  }

  .group:hover .gear-icon .gear-large {
    animation: gear-spin-cw 1.1s linear infinite;
  }

  .group:hover .gear-icon .gear-small {
    animation: gear-spin-ccw 1.1s linear infinite;
  }

  @keyframes gear-spin-cw {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }

  @keyframes gear-spin-ccw {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
  }

  /* Styl pro černé kolečko slideru */
  input[type=range].slider-thumb-black::-webkit-slider-thumb {
    appearance: none;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    margin-top: 0px; /* zarovnání na střed tracku */
    border: 3px solid #000; /* přidání okraje pro lepší viditelnost */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255,255,255,0.1); /* jemný stín pro lepší viditelnost */
    transition: all 0.2s ease-in-out;
  }
  
  input[type=range].slider-thumb-black::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(59, 130, 246, 0.5);
  }
  
  input[type=range].slider-thumb-black::-moz-range-thumb {
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    border: 3px solid #000; /* přidání okraje pro lepší viditelnost */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255,255,255,0.1); /* jemný stín pro lepší viditelnost */
    transition: all 0.2s ease-in-out;
  }
  
  input[type=range].slider-thumb-black::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(59, 130, 246, 0.5);
  }

  

  /* Animace pro formulář */
  @keyframes slideUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .temperature-slider {
    background: linear-gradient(90deg, #3b82f6 0%, #ef4444 100%);
  }
  
  .animate-fade-in {
    animation: fadeIn 0.8s ease-out;
  }
  
  /* Smooth hover efekt pro form prvky */
  .form-element {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
    /* Pulzující efekt pro loading */
  .pulse-slow {
    animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  }
  
  /* Vlastní styling pro select boxy */
  .custom-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
  }
  
  .custom-select:hover {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%233b82f6' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  }
  
  .custom-select:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%233b82f6' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  }
    .custom-select:disabled {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%9ca3af' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  }
  
  /* Speciální styling pro language selector s position absolute */
  .language-select {
    background-image: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
  }
  
  /* Animace pro rozdělovník */
  @keyframes slideInFromTop {
    from {
      opacity: 0;
      transform: translateY(-20px) scale(0.95);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
  
  @keyframes slideOutToTop {
    from {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
    to {
      opacity: 0;
      transform: translateY(-20px) scale(0.95);
    }
  }
  
  .selector-enter {
    animation: slideInFromTop 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  
  .selector-exit {
    animation: slideOutToTop 0.4s cubic-bezier(0.55, 0.085, 0.68, 0.53);
  }
  
  .form-enter {
    animation: slideInFromBottom 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  
  .calculator-option {
    background: #fff;
    border: 2px solid #e5e7eb; /* Tailwind gray-200 */
    border-radius: 1rem; /* 16px */
    padding: 1.5rem; /* 24px */
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), 
                box-shadow 0.3s ease,
                background-color 0.3s ease,
                border-color 0.3s ease;
    will-change: transform, box-shadow;
    box-shadow: 0 1px 4px rgb(0 0 0 / 0.05);
  }

  .calculator-option:hover {
    transform: translateY(-6px) scale(1.04);
    box-shadow: 0 8px 16px rgb(0 0 0 / 0.12);
    background-color: #f9fafb; /* jemný světlý background */
    border-color: #3b82f6; /* modrý accent */
  }

  .calculator-option.selected {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: white;
    transform: scale(1.07);
    box-shadow: 0 10px 25px rgb(59 130 246 / 0.5);
    border-color: transparent;
  }
  
  /* Ikony pro jednotlivé typy kalkulaček */
  .option-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all 0.3s ease;
  }
  
  .option-icon-1 {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    color: white;
  }
  
  .option-icon-2 {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    color: white;
  }
  
  .option-icon-3 {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
  }
  
  /* Modal styles */
  .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
    animation: fadeIn var(--transition) ease-out;
  }

  .modal-content {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideInFromBottom var(--transition) ease-out;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  }
  
  /* Enhanced range slider styles */
  .temperature-slider {
    background: linear-gradient(90deg, #3b82f6 0%, #ef4444 100%);
    border-radius: 8px;
    height: 8px;
  }
  
  .range-slider-container {
    position: relative;
  }
  
  .range-value-display {
    position: absolute;
    top: -35px;
    background: #1f2937;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
  }
  
  .range-value-display::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #1f2937;
  }
  
  .range-slider-container:hover .range-value-display,
  .range-slider-container:focus-within .range-value-display {
    opacity: 1;
  }
  
  /* Success animation styles */
  .success-animation {
    animation: bounceIn 0.6s ease-out;
  }
  
  .success-icon {
    animation: pulse 2s infinite;
  }
  
  @keyframes bounceIn {
    0% {
      opacity: 0;
      transform: scale(0.3) translateY(-50px);
    }
    50% {
      opacity: 1;
      transform: scale(1.05) translateY(-10px);
    }
    70% {
      transform: scale(0.95) translateY(0);
    }
    100% {
      opacity: 1;
      transform: scale(1) translateY(0);
    }
  }
  
  @keyframes pulse {
    0%, 100% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.05);
    }
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  
  @keyframes slideInFromBottom {
    from {
      opacity: 0;
      transform: translateY(50px) scale(0.95);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  [v-cloak] {
      display: none !important;
  }
  .selected-option {
    border-color: #00A3F7 !important;
    background-color: #D2F0FFFF !important;
  }
  .selected-option img {
    filter: brightness(1.1);
  }
  .required-field {
    position: relative;
  }
  .required-field::after {
    content: '*';
    color: #ef4444;
    font-weight: bold;
    margin-left: 4px;
  }
  /* Skrytí defaultní šipky u všech selectů s vlastní ikonou */
  select {
    /* prohlížeče založené na Webkit (Chrome, Safari) */
    -webkit-appearance: none;
    /* Firefox */
    -moz-appearance: none;
    /* Edge, IE */
    appearance: none;
    background-image: none !important;
  }
  /* Pro menší selecty, aby nebyl posunutý text */
  select:focus {
    outline: none;
    box-shadow: none;
  }
  /* Animace pro vyjetí bodu 5.1 směrem dolů a fade-in */
  .slide-fade-down-enter-active {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .slide-fade-down-leave-active {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .slide-fade-down-enter-from {
    opacity: 0;
    transform: translateY(-40px);
  }
  .slide-fade-down-leave-to {
    opacity: 0;
    transform: translateY(-40px);
  }
  .fade-enter-active, .fade-leave-active {
    transition: opacity 0.3s ease;
    transition-duration: 1s;
  }
  .fade-enter-from, .fade-leave-to {
    opacity: 0;
    transition-duration: 1s;
  }
  .rotate-180 {
    transform: rotate(180deg);
  }
  /* Collapse/expand animace pro sekce wrapperů */
  .section-collapse-enter-active {
    transition: opacity 0.35s ease, max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
  }
  .section-collapse-leave-active {
    transition: opacity 0.25s ease, max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
  }
  .section-collapse-enter-from,
  .section-collapse-leave-to {
    opacity: 0;
    max-height: 0 !important;
  }
  .section-collapse-enter-to,
  .section-collapse-leave-from {
    opacity: 1;
    max-height: 4000px;
  }
