/* Global Custom Dropdown Styles for NodeBreach */

/* Wrapper for custom dropdowns */
.custom-select-wrapper {
    position: relative;
    cursor: pointer;
    display: inline-block;
    width: 100%;
}

/* Base custom select styling */
.custom-select, 
select.form-control,
select.form-select,
select[class*="px-"],
select[class*="py-"],
select.w-full {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.8), rgba(31, 41, 55, 0.8)) !important;
    border: 1px solid rgba(59, 130, 246, 0.2) !important;
    color: #E5E7EB !important;
    padding: 0.875rem 2.75rem 0.875rem 1rem !important;
    border-radius: 0.75rem !important;
    font-size: 0.9375rem !important;
    font-weight: 500 !important;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%233B82F6' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    background-size: 12px !important;
}

/* Hover state */
.custom-select:hover,
select.form-control:hover,
select.form-select:hover,
select[class*="px-"]:hover,
select[class*="py-"]:hover,
select.w-full:hover {
    border-color: rgba(59, 130, 246, 0.4) !important;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.9), rgba(31, 41, 55, 0.9)) !important;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.15) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%233B82F6' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    background-size: 12px !important;
}

/* Focus state */
.custom-select:focus,
select.form-control:focus,
select.form-select:focus,
select[class*="px-"]:focus,
select[class*="py-"]:focus,
select.w-full:focus {
    outline: none !important;
    border-color: #3B82F6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), 0 0 20px rgba(59, 130, 246, 0.2) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%233B82F6' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    background-size: 12px !important;
}

/* Disabled state */
.custom-select:disabled,
select.form-control:disabled,
select.form-select:disabled,
select[class*="px-"]:disabled,
select[class*="py-"]:disabled,
select.w-full:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Custom icon (if using wrapper) */
.custom-select-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #3B82F6;
    font-size: 0.75rem;
    transition: transform 0.3s;
}

.custom-select-wrapper:hover .custom-select-icon {
    transform: translateY(-50%) scale(1.1);
}

/* Option styling */
select.custom-select option,
select.form-control option,
select.form-select option,
select[class*="px-"] option,
select[class*="py-"] option,
select.w-full option {
    background: #1F2937;
    color: #E5E7EB;
    padding: 0.5rem;
}

/* Multiple select */
select[multiple].custom-select,
select[multiple].form-control,
select[multiple].form-select {
    padding: 0.5rem !important;
    background-image: none !important;
}

select[multiple].custom-select option,
select[multiple].form-control option,
select[multiple].form-select option {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    margin: 0.25rem 0;
}

select[multiple].custom-select option:hover,
select[multiple].form-control option:hover,
select[multiple].form-select option:hover {
    background: rgba(59, 130, 246, 0.2);
}

/* Admin panel dark theme overrides */
body.admin-theme select,
.admin-panel select {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.95), rgba(31, 41, 55, 0.95)) !important;
}

/* Vendor panel overrides */
body.vendor-theme select,
.vendor-panel select {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.95), rgba(31, 41, 55, 0.95)) !important;
}
