/**
 * Utilities CSS
 * Reusable UI components and utilities
 */

/* ===== ICON DROPDOWN COMPONENT ===== */
.icon-dropdown-wrapper {
    position: relative;
}

.icon-dropdown-selected {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    min-height: 38px;
    box-sizing: border-box;
}

.icon-dropdown-selected:hover {
    border-color: #9ca3af;
}

.icon-dropdown-selected.open {
    border-color: #1E6AB1;
    box-shadow: 0 0 0 3px rgba(30, 106, 177, 0.15);
}

.icon-dropdown-selected .icon-dropdown-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #fff;
    flex-shrink: 0;
}

.icon-dropdown-selected .icon-dropdown-text {
    flex: 1;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.icon-dropdown-selected .icon-dropdown-placeholder {
    flex: 1;
    color: #9ca3af;
}

.icon-dropdown-selected .icon-dropdown-arrow {
    color: #6b7280;
    font-size: 12px;
    transition: transform 0.2s;
}

.icon-dropdown-selected.open .icon-dropdown-arrow {
    transform: rotate(180deg);
}

.icon-dropdown-options {
    position: fixed;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    max-height: 280px;
    overflow-y: auto;
    display: none;
}

.icon-dropdown-options.open {
    display: block;
}

.icon-dropdown-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    cursor: pointer;
    transition: background-color 0.15s;
}

.icon-dropdown-option:hover {
    background-color: #f3f4f6;
}

.icon-dropdown-option.selected {
    background-color: #eff6ff;
}

.icon-dropdown-option .option-icon {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: #fff;
    flex-shrink: 0;
}

.icon-dropdown-option .option-label {
    font-size: 12px;
    color: #374151;
    white-space: nowrap;
}
