    body, button, .sidepanel-btn, canvas {
      cursor: url('https://www.bojanke.com/onlajn/olovka_bojanke.png'), auto;
    }

    /*.sidepanel-btn {
      position: relative;
    }*/

    #iconSelector {
      position: relative;
    }

    #iconSelector:hover::after {
      content: attr(data-tooltip);
      position: absolute;
      bottom: -40px;
      left: 50%;
      transform: translateX(-50%);
      background-color: #fff8dc;
      color: #333;
      font-family: Arial, sans-serif;
      font-size: 14px;
      padding: 6px 10px;
      border-radius: 8px;
      white-space: nowrap;
      box-shadow: 2px 2px 6px rgba(0,0,0,0.2);
      z-index: 1000;
      opacity: 1;
      transition: opacity 0.2s ease;
    }

    #iconSelector:hover::before {
      content: '';
      position: absolute;
      bottom: -12px;
      left: 50%;
      transform: translateX(-50%);
      border: 6px solid transparent;
      border-bottom-color: #fff8dc;
    }

    .preview-wrapper {
      height: 50px;
      /* ili bilo koja visina koja ti odgovara */
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      background-color: #f9f9f9;
      /* opcionalno za vizuelni okvir */
      border-radius: 8px;
      padding: 8px;
    }

    .preview-wrapper img {
      max-height: 100%;
      height: auto;
      width: auto;
      object-fit: contain;
    }

    @keyframes tooltipFadeIn {
      0% {
        opacity: 0;
        transform: translateX(-50%) scale(0.95);
      }
      100% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
      }
    }


#tooltipZone {
  position: fixed;
  top: 60px; /* visina hedera */
  right: 20px;
  max-width: 300px;
  background-color: #fff;
  color: #333;
  font-family: Arial, sans-serif;
  font-size: 15px;
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  display: none;
  transition: opacity 0.3s ease;
}

@media (max-width: 600px) {
  #tooltipZone {
    top: auto;
    bottom: 10px;
    right: 10px;
    left: 10px;
    max-width: unset;
    font-size: 14px;
    padding: 12px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }
}

.previewIcon {
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5));
}

body.landscape *:not(#upozorenjeuspravno) {
  pointer-events: none;
  opacity: 0.2;
}
#bottomToolbar::-webkit-scrollbar {
  display: none;
}

#upozorenjeuspravno {
  display: none;
  position: fixed;
  z-index: 99999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  color: #fff;
  font-size: 1.5rem;
  text-align: center;
  padding-top: 40vh;
}

#sadrzaj {
  display: block;
}
@media (max-width: 768px) {
  #paletaKontejner {
    bottom: 10px;
    left: 10px;
    transform: none;
  }
}
@media (max-width: 768px) {
  #paletaKontejner {
    bottom: 10px;
    left: 10px;
    transform: none;
  }
}
#bottomToolbar {
  pointer-events: auto; 
}

#bottomToolbar-container {
  pointer-events: none; 
}

@keyframes pulse {
  0%   { box-shadow: 0 0 8px rgba(0, 0, 0, 0.5); }
  50%  { box-shadow: 0 0 12px rgba(0, 0, 0, 0.7); }
  100% { box-shadow: 0 0 8px rgba(0, 0, 0, 0.5); }
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

#bottomToolbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 7px 1px;
  background: rgba(255,255,255,0.95);
  border-top: 1px solid #ccc;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
  z-index: 1000;
  pointer-events: auto;
  touch-action: none;
}


.colorBtn {
  width: clamp(24px, 5vw, 36px);
  height: clamp(24px, 5vw, 36px);
  border: 2px solid #ccc;
  box-shadow: 0 0 2px rgba(0,0,0,0.3);
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  animation: slideUp 0.5s ease-out;
}

.colorBtn.selected {
  animation: pulse 1.5s infinite;
}

@media (max-width: 480px) {
  #bottomToolbar {
    gap: 6px;
    padding: 8px 10px;
  }
  .colorBtn {
    width: clamp(20px, 8vw, 28px);
    height: clamp(20px, 8vw, 28px);
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  #bottomToolbar {
    gap: 8px;
    padding: 10px 12px;
  }
  .colorBtn {
    width: clamp(22px, 6vw, 32px);
    height: clamp(22px, 6vw, 32px);
  }
}

.pen {
  position: relative;
  width: 4px;
  height: 100px;
  background: #333;
  margin: 50px auto;
}

#ghostCircle {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  border: 2px solid red;
  background-color: rgba(255, 0, 0, 0.3);
  transform: translate(-50%, -50%);
  z-index: 9999;
  width: 40px;
  height: 40px;
}
canvas {
  touch-action: none;
  pointer-events: auto;
}

