/* Modern Custom Select Dropdown - Google-inspired */

.hi-modern-select-wrapper {
    position: relative;
    width: 100%;
}

.hi-modern-select {
    position: relative;
    width: 100%;
    height: 52px;
    padding: 14px 44px 14px 16px;
    background: var(--input-bg);
    border: 1.5px solid var(--input-border);
    border-radius: 12px;
    font-size: 15px;
    font-family: var(--font-body, 'Poppins', 'Inter', system-ui, sans-serif);
    color: var(--input-text);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="none" stroke="%2394a3b8" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"%3e%3cpath d="M6 8l4 4 4-4"%3e%3c/path%3e%3c/svg%3e');
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
}

[data-theme="light"] .hi-modern-select {
    background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="none" stroke="%234a5568" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"%3e%3cpath d="M6 8l4 4 4-4"%3e%3c/path%3e%3c/svg%3e');
}

.hi-modern-select:hover {
    border-color: rgba(102, 126, 234, 0.5);
    background-color: var(--input-bg-focus);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.hi-modern-select:focus {
    outline: none;
    border-color: #667eea;
    background-color: var(--input-bg-focus);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
}

.hi-modern-select::-ms-expand {
    display: none;
}

.hi-modern-select option {
    padding: 14px 16px;
    background: var(--input-bg);
    color: var(--input-text);
    font-size: 15px;
    line-height: 1.6;
}

/* Date Input Modern Styling */
input[type="date"].hi-modern-date {
    position: relative;
    width: 100%;
    height: 52px;
    padding: 14px 16px;
    background: var(--input-bg);
    border: 1.5px solid var(--input-border);
    border-radius: 12px;
    font-size: 15px;
    font-family: var(--font-body, 'Poppins', 'Inter', system-ui, sans-serif);
    color: var(--input-text);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

input[type="date"].hi-modern-date:hover {
    border-color: rgba(102, 126, 234, 0.5);
    background-color: var(--input-bg-focus);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

input[type="date"].hi-modern-date:focus {
    outline: none;
    border-color: #667eea;
    background-color: var(--input-bg-focus);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
}

input[type="date"].hi-modern-date::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

input[type="date"].hi-modern-date::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Modern Select with Icon */
.hi-select-with-icon {
    position: relative;
}

.hi-select-with-icon svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    opacity: 0.6;
}

.hi-select-with-icon .hi-modern-select {
    padding-left: 48px;
}

/* Disabled State */
.hi-modern-select:disabled,
input[type="date"].hi-modern-date:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: rgba(148, 163, 184, 0.1);
}

/* Loading State */
.hi-modern-select.loading {
    background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23667eea" stroke-width="2"%3e%3ccircle cx="12" cy="12" r="10" opacity="0.2"%3e%3c/circle%3e%3cpath d="M12 2a10 10 0 0 1 10 10"%3e%3canimateTransform attributeName="transform" type="rotate" dur="1s" from="0 12 12" to="360 12 12" repeatCount="indefinite"/%3e%3c/path%3e%3c/svg%3e');
    pointer-events: none;
}
