body {
    font-family: Arial, sans-serif;
    background: #f2f2f2;
}

#app {
    display: flex;
    gap: 30px;
    padding: 20px;
}

#controls {
    width: 250px;
    background: #fff;
    padding: 15px;
    border-radius: 6px;
}

#controls label {
    display: block;
    margin-top: 10px;
}

#preview {
    background: #fff;
    padding: 15px;
    border-radius: 6px;
}

select {
    width: 100%;
    padding: 5px;
}


/* ===== NOWY PICKER OVERLAY ===== */
/* ===== OVERLAY ===== */

/* ===== FULLSCREEN OVERLAY ===== */

#iconPickerOverlay {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    z-index: 2000;
}

/* ===== OKNO ===== */

#iconPicker {
    background: #ffffff;
    width: 90%;
    max-width: 900px;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;   /* ważne */
}


#iconPickerClose {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #eee;
    font-size: 18px;
    cursor: pointer;
}

#iconPickerClose:hover {
    background: #ddd;
}




/* ===== KATEGORIE ===== */

.icon-category {
    margin-bottom: 30px;
}

.icon-category-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.icon-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.icon-btn {
    width: 64px;
    height: 64px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fafafa;
}

.icon-btn:hover {
    background: #f0f0f0;
    transform: scale(1.05);
}

.icon-btn.selected {
    border: 2px solid #007bff;
}

.icon-content {
    background: white;
    max-height: 80vh;
    overflow-y: auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

.icon-btn img {
    width: 40px;
    height: 40px;
    pointer-events: none;
}


/* podswietlanie slotów  */

@keyframes pulseSlot {
    0%   { stroke-width: 2; stroke: #999; }
    50%  { stroke-width: 5; stroke: #3b82f6; }
    100% { stroke-width: 2; stroke: #999; }
}

.slot-hover {
    animation: pulseSlot 1s infinite;
}

