/* ICON PICKER CSS */

.icon-selector-trigger {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    min-width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
}

.icon-selector-trigger:hover {
    border-color: #cbd5e0;
    background-color: #f8f9fa;
}

.icon-preview-box {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--light);
    margin-right: 15px;
    color: var(--secondary);
    font-size: 1.2rem;
}

.icon-label-text {
    flex-grow: 1;
    font-size: 16px;
    font-weight: 400;
}

.icon-chevron {
    color: #cbd5e0;
    font-size: 0.9rem;
}

.icon-picker-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1050;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;

}

/* --- Main Container  --- */
.icon-picker-container {
    background: #ffffff;
    width: 100%;
    max-width: 600px;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;

}
/* --- 3. Close Button --- */
.icon-picker-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
}

.icon-picker-close:hover {
    color: #ef4444;
}

/* --- 4. Search Bar --- */
.icon-picker-search {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    color: #334155;
    outline: none;
    margin-top: 15px;
}

.icon-picker-search:focus {
    border-color: var(--primary)
}

.icon-picker-search::placeholder {
    color: #cbd5e1;
}

/* --- 5. Filters (Tabs) --- */
.icon-picker-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.icon-picker-filter-btn {
    background: transparent;
    border: none;
    padding: 6px 16px;
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 400;
    cursor: pointer;
    border-radius: 20px; /* Pill shape */
}

.icon-picker-filter-btn:hover {
    color: #1e293b;
    background-color: #f1f5f9;
}

/* Active State (The dark pill look) */
.icon-picker-filter-btn.active {
    background-color: #334155;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.icon-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
    padding: 4px;
    margin: 0;
}

.icon-picker-grid::-webkit-scrollbar {
    width: 6px;
}
.icon-picker-grid::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 4px;
}


.icon-picker-grid > * {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1.25rem;
    color: #475569;
    cursor: pointer;
    background: #fff;

}

.icon-picker-grid > *:hover {
    background-color: #f8fafc;
    border-color: #94a3b8;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.icon-picker-grid .selected {
    background-color: #eff6ff;
    border-color: #3b82f6;
    color: #3b82f6;
}

.selectedicondisplay {
    text-align: center;
    padding: 10px;
    background: #f8fafc;
    border-radius: 8px;
    margin-top: -8px;
}

/* --- 9. Footer & Pagination --- */
.icon-picker-footer {
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
}

.icon-picker-pagination-info {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 500;
}

.icon-picker-pagination-btn {
    background: #fff;
    border: 1px solid #e2e8f0;
    width: 32px;
    height: 32px;
    border-radius: 30%; /* Circle buttons */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
}

.icon-picker-pagination-btn:hover:not(:disabled) {
    background-color: #f1f5f9;
    color: #334155;
    border-color: #cbd5e0;
}

.icon-picker-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.icon-picker-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
}

.icon-picker-save-btn {
    background-color: #475569;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;

}

.icon-picker-save-btn:hover {
    background-color: #334155;
    transform: translateY(-1px);
}

 .eye-dropper-icon {
        font-size: 4px;
        color: #333;
    }

   .pcr-button {
        width: 35px !important;
        height: 35px !important;
        background-color: #007bff !important;
        color: #fff !important;
        border: none !important;
        font-size: 16px !important;
        font-weight: bold !important;
        cursor: pointer !important;
        border-radius: 40% !important;
    }

    .pcr-button:hover {
        background-color: #0056b3 !important;
    }

    .pcr-button:active {
        background-color: #004085 !important;
    }
     .pcr-button::after {
        width:40px !important;
        height:35px !important;
     }
    .pcr-button:focus {
        outline: none !important;
        box-shadow: 0 0 0 3px rgba(143, 143, 143, 0.5) !important;
    }
    .predefined-colors {
        display: flex;
        flex-wrap:nowrap;
        gap: 8px;

        justify-content: center;
    }

    .color-swatch {
        width: 32px;
        height: 32px;
        border: 0.5px solid #252525;
        cursor: pointer;
        border-radius: 50%;
        /* Only hover transitions allowed, so remove here */
    }

    .color-swatch:hover {
        border-color: transparent;
        transform: scale(1.1);
        box-shadow: 0 6px 8px rgba(0, 0, 0, 0.117), 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .color-swatch:active {


    }

    .color-swatch.selected {

        border-color: 4px #004cff;
        box-shadow: 0 0 0 2px rgb(0, 0, 0);
    }

    .color-picker-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.color-picker-icon {
    font-size: 1.5em; /* Adjust the size as needed */
}