/* 
   Weurkico Elegant Select - Custom Select Styles
   Inspiré par LinkedIn et Upwork avec la charte graphique Weurkico
*/

:root {
    --select-border: #d1d5db;
    --select-focus: #014421;
    --select-bg: #ffffff;
    --select-text: #1f2937;
    --select-radius: 8px;
    --select-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Base Select Styling */
select.weurkico-select, 
.form-control select,
.search-panel select,
.filters-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: var(--select-bg);
    border: 1px solid var(--select-border);
    border-radius: var(--select-radius);
    padding: 0.625rem 2.5rem 0.625rem 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--select-text);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
    box-shadow: var(--select-shadow);
    width: 100%;
}

/* Hover State */
select.weurkico-select:hover,
.form-control select:hover,
.search-panel select:hover,
.filters-wrapper select:hover {
    border-color: #9ca3af;
    background-color: #f9fafb;
}

/* Focus State */
select.weurkico-select:focus,
.form-control select:focus,
.search-panel select:focus,
.filters-wrapper select:focus {
    outline: none;
    border-color: var(--select-focus);
    box-shadow: 0 0 0 3px rgba(1, 68, 33, 0.15);
    background-color: var(--select-bg);
}

/* Disabled State */
select.weurkico-select:disabled,
.form-control select:disabled {
    background-color: #f3f4f6;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Dark Mode Support (if applicable) */
[data-theme='dark'] select.weurkico-select {
    --select-bg: #1f2937;
    --select-border: #374151;
    --select-text: #f9fafb;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
}
