/* MoPaid Custom CSS Overrides */

/* Input Styling */
.filament-forms-text-input-component input,
.filament-forms-select-component select,
.filament-forms-textarea-component textarea {
    border: 1px solid #d1d5db !important; /* border-gray-300 */
    min-height: 2.25rem !important; /* match button height */
    padding-top: 0.5rem !important; /* py-2 */
    padding-bottom: 0.5rem !important; /* py-2 */
    line-height: 1.25 !important; /* better vertical alignment */
}

/* Country Code Select Specific Styling */
select[name="country_code"] {
    height: 2.25rem !important; /* exact height to match buttons */
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

/* Dark Mode Input Styling */
.dark .filament-forms-text-input-component input,
.dark .filament-forms-select-component select,
.dark .filament-forms-textarea-component textarea {
    border: 1px solid #4b5563 !important; /* dark:border-gray-600 */
}

/* Focus States */
.filament-forms-text-input-component input:focus,
.filament-forms-select-component select:focus,
.filament-forms-textarea-component textarea:focus {
    border-color: #2563eb !important; /* border-primary-600 */
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1) !important; /* ring-primary-200 */
}

/* Dark Mode Focus States */
.dark .filament-forms-text-input-component input:focus,
.dark .filament-forms-select-component select:focus,
.dark .filament-forms-textarea-component textarea:focus {
    border-color: #3b82f6 !important; /* dark:border-primary-500 */
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2) !important; /* dark:ring-primary-500/20 */
}

/* Enhanced Dropdown Styling */
.filament-dropdown-panel {
    border-radius: 0.5rem !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden !important;
    border: 1px solid #e5e7eb !important;
}

.dark .filament-dropdown-panel {
    border-color: #374151 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

.filament-dropdown-list {
    padding: 0.25rem !important;
    max-height: 230px !important;
    overflow-y: auto !important;
}

.filament-dropdown-list-item-label {
    padding: 0.5rem 1rem !important;
    border-radius: 0.375rem !important;
    transition: all 0.2s ease !important;
    font-size: 0.875rem !important;
}

.filament-dropdown-list-item:hover .filament-dropdown-list-item-label {
    background-color: #f3f4f6 !important;
}

.dark .filament-dropdown-list-item:hover .filament-dropdown-list-item-label {
    background-color: #374151 !important;
}

.filament-dropdown-list-item.filament-dropdown-list-item-active .filament-dropdown-list-item-label {
    background-color: #f0f9ff !important;
    color: #2563eb !important;
    font-weight: 500 !important;
}

.dark .filament-dropdown-list-item.filament-dropdown-list-item-active .filament-dropdown-list-item-label {
    background-color: #1e3a8a !important;
    color: #93c5fd !important;
}

/* Fix dropdown trigger button styling */
.filament-dropdown-trigger button {
    border: 1px solid #d1d5db !important;
    border-radius: 0.375rem !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem !important;
    line-height: 1.25rem !important;
    transition: all 0.2s ease !important;
    background-color: #ffffff !important;
    color: #374151 !important;
}

.dark .filament-dropdown-trigger button {
    border-color: #4b5563 !important;
    background-color: #1f2937 !important;
    color: #e5e7eb !important;
}

.filament-dropdown-trigger button:hover {
    background-color: #f9fafb !important;
}

.dark .filament-dropdown-trigger button:hover {
    background-color: #374151 !important;
}

.filament-dropdown-trigger button:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1) !important;
    outline: none !important;
}

.dark .filament-dropdown-trigger button:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2) !important;
} 