
.slider::-webkit-slider-track {
    background: linear-gradient(to right, #e5e7eb 0%, #e5e7eb 100%);
    border-radius: 8px;
    height: 6px;
}

.dark .slider::-webkit-slider-track {
    background: linear-gradient(to right, #374151 0%, #374151 100%);
}

.slider::-webkit-slider-thumb {
    appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007a9a 0%, #005a7a 100%);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,122,154,0.3);
    transition: all 0.2s ease;
    border: 3px solid white;
}

.dark .slider::-webkit-slider-thumb {
    border: 3px solid #1f2937;
    box-shadow: 0 2px 8px rgba(0,122,154,0.4);
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0,122,154,0.4);
}

.dark .slider::-webkit-slider-thumb:hover {
    box-shadow: 0 4px 12px rgba(0,122,154,0.5);
}

.slider::-moz-range-track {
    background: linear-gradient(to right, #e5e7eb 0%, #e5e7eb 100%);
    border-radius: 8px;
    height: 6px;
    border: none;
}

.dark .slider::-moz-range-track {
    background: linear-gradient(to right, #374151 0%, #374151 100%);
}

.slider::-moz-range-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007a9a 0%, #005a7a 100%);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,122,154,0.3);
    transition: all 0.2s ease;
}

.dark .slider::-moz-range-thumb {
    border: 3px solid #1f2937;
    box-shadow: 0 2px 8px rgba(0,122,154,0.4);
}

.slider::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0,122,154,0.4);
}

.dark .slider::-moz-range-thumb:hover {
    box-shadow: 0 4px 12px rgba(0,122,154,0.5);
}

.slider::-webkit-slider-thumb:active {
    transform: scale(1.1);
}

.slider::-moz-range-thumb:active {
    transform: scale(1.1);
}

/* Phone input dark mode styles */
.iti.dark-mode {
    color: #f3f4f6;
}

.iti.dark-mode .iti__flag-container {
    background-color: #374151;
}

.iti.dark-mode .iti__selected-flag {
    background-color: #374151;
    border-color: #4b5563;
}

.iti.dark-mode .iti__selected-flag:hover {
    background-color: #4b5563;
}

.iti.dark-mode .iti__country-list {
    background-color: #1f2937;
    border-color: #4b5563;
}

.iti.dark-mode .iti__country {
    color: #f3f4f6;
}

.iti.dark-mode .iti__country:hover {
    background-color: #374151;
}

.iti.dark-mode .iti__country.iti__highlight {
    background-color: #007a9a;
}

.iti.dark-mode .iti__dial-code {
    color: #9ca3af;
}

.iti.dark-mode .iti__country-name {
    color: #f3f4f6;
}

.iti.dark-mode .iti__divider {
    border-color: #4b5563;
}

/* Ensure phone input field matches dark mode */
.iti.dark-mode input[type="tel"] {
    background-color: #374151;
    border-color: #4b5563;
    color: #f3f4f6;
}


.iti.dark-mode input[type="tel"]:focus {
    border-color: #007a9a;
    box-shadow: 0 0 0 2px rgba(0, 122, 154, 0.2);
}
/* Phone input container styles */
.iti.iti--allow-dropdown {
    width: 100%;
    position: relative !important;
    display: block !important;
}

/* Ensure the container has proper positioning context */
.iti {
    position: relative !important;
    display: block !important;
}

/* Force dropdown to be positioned relative to the input */
.iti__country-list {
    position: absolute !important;
    z-index: 99999 !important;
    max-height: 300px !important;
    min-height: 200px !important;
    overflow-y: auto !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    margin-top: 2px !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    background-color: #ffffff !important;
    border: 1px solid #d1d5db !important;
    display: block !important;
    width: 100% !important;
}

/* Country list item styling */
.iti__country {
    padding: 8px 12px !important;
    display: flex !important;
    align-items: center !important;
    cursor: pointer !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    min-height: 40px !important;
    transition: background-color 0.2s ease !important;
}

.iti__country:hover {
    background-color: #f3f4f6 !important;
}

/* Ensure text remains visible on hover */
.iti__country:hover .iti__country-name,
.iti__country:hover .iti__dial-code {
    color: #111827 !important;
    opacity: 1 !important;
}

/* Country flag styling */
.iti__flag {
    margin-right: 8px !important;
    flex-shrink: 0 !important;
}

/* Country name and dial code styling */
.iti__country-name {
    flex: 1 !important;
    margin-right: 8px !important;
}

.iti__dial-code {
    color: #6b7280 !important;
    font-size: 13px !important;
    margin-left: auto !important;
}

/* Dark mode dropdown styling */
.dark .iti__country-list {
    background-color: #1f2937 !important;
    border-color: #4b5563 !important;
}

.dark .iti__country {
    color: #f3f4f6 !important;
}

.dark .iti__country:hover {
    background-color: #374151 !important;
}

/* Ensure text remains visible on hover in dark mode */
.dark .iti__country:hover .iti__country-name,
.dark .iti__country:hover .iti__dial-code {
    color: #f9fafb !important;
    opacity: 1 !important;
}

/* Dark mode country name and dial code styling */
.dark .iti__country-name {
    color: #f3f4f6 !important;
}

.dark .iti__dial-code {
    color: #9ca3af !important;
}

/* Flag container styling */
.iti__flag-container {
    border-radius: 6px 0 0 6px !important;
    background-color: #f9fafb !important;
    border: 1px solid #d1d5db !important;
    border-right: none !important;
}

.dark .iti__flag-container {
    background-color: #374151 !important;
    border-color: #4b5563 !important;
}

/* Selected flag styling */
.iti__selected-flag {
    border-radius: 6px 0 0 6px !important;
    padding: 0 8px 0 12px !important;
}

.iti__selected-flag:hover {
    background-color: #f3f4f6 !important;
}

.dark .iti__selected-flag:hover {
    background-color: #4b5563 !important;
}

/* Ensure dropdown is visible when open */
.iti__country-list.iti__hide {
    display: none !important;
}

.iti__country-list:not(.iti__hide) {
    display: block !important;
}

/* Ensure dropdown appears below the input */
.iti__country-list.iti__hide {
    display: none !important;
}

/* Phone input field styling */
.iti input[type="tel"] {
    width: 100% !important;
    padding-left: 52px !important; /* Space for flag */
    border-radius: 6px !important;
    border: 1px solid #d1d5db !important;
    background-color: #ffffff !important;
    color: #111827 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

.iti input[type="tel"]:focus {
    outline: none !important;
    border-color: #007a9a !important;
    box-shadow: 0 0 0 2px rgba(0, 122, 154, 0.1) !important;
}

/* Dark mode phone input */
.dark .iti input[type="tel"] {
    background-color: #374151 !important;
    border-color: #4b5563 !important;
    color: #f3f4f6 !important;
}

.dark .iti input[type="tel"]:focus {
    border-color: #007a9a !important;
    box-shadow: 0 0 0 2px rgba(0, 122, 154, 0.2) !important;
}

/* Dark mode adjustments */
.dark .iti__country-list {
    background-color: #1f2937 !important;
    border-color: #4b5563 !important;
}

.dark .iti__country {
    color: #f3f4f6 !important;
}

.dark .iti__country:hover {
    background-color: #374151 !important;
}

.dark .iti__country.iti__highlight {
    background-color: #007a9a !important;
}

/* Theme Variables */
:root {
    --primary-color: #16A34A;
    --primary-hover: #15803D;
    --primary-color-rgb: 22, 163, 74;
}

[data-theme="blue"] {
    --primary-color: #0A84FF;
    --primary-hover: #0071E3;
    --primary-color-rgb: 10, 132, 255;
}

[data-theme="green"] {
    --primary-color: #16A34A;
    --primary-hover: #15803D;
    --primary-color-rgb: 22, 163, 74;
}

[data-theme="purple"] {
    --primary-color: #7c3aed;
    --primary-hover: #6d28d9;
    --primary-color-rgb: 124, 58, 237;
}

/* Light mode theme classes */
.theme-primary {
    background-color: var(--primary-color) !important;
}

.theme-primary:hover {
    background-color: var(--primary-hover) !important;
}

.theme-text {
    color: var(--primary-color) !important;
}

.theme-border {
    border-color: var(--primary-color) !important;
}

.bg-opacity-10 {
    background-color: rgba(var(--primary-color-rgb), 0.1) !important;
}

/* Dark mode theme classes */
.dark .theme-primary {
    background-color: var(--primary-color) !important;
    filter: brightness(1.2);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.dark .theme-primary:hover {
    background-color: var(--primary-hover) !important;
    filter: brightness(1.3);
}

.dark .theme-text {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.dark .theme-border {
    border-color: var(--primary-color) !important;
}

.dark .bg-opacity-10 {
    background-color: rgba(var(--primary-color-rgb), 0.2) !important;
}

/* Theme dropdown styling */
#themeDropdown [data-theme-option] {
    transition: all 0.2s ease;
}

#themeDropdown [data-theme-option]:hover {
    background-color: rgba(var(--primary-color-rgb), 0.1);
}

.dark #themeDropdown [data-theme-option]:hover {
    background-color: rgba(var(--primary-color-rgb), 0.2);
}

/* Compact card hover effect */
.compact-card {
    transition: all 0.2s ease;
}

.compact-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Product Group Tab Styles */
.product-tab {
    transition: all 0.3s ease;
    position: relative;
}

.product-tab:hover {
    transform: translateY(-1px);
}

.product-tab.active {
    background: white;
    color: #059669;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #059669;
    border-radius: 1px;
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

.scale-in {
    animation: scaleIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from { 
        opacity: 0;
        transform: scale(0.9);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

/* Product info cards */
.product-info-card {
    transition: all 0.3s ease;
}

.product-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Mobile-specific improvements */
@media (max-width: 640px) {
    /* Improve touch targets only on mobile */
    button, input, select, textarea {
        min-height: 44px;
    }
    
    /* Improve slider touch targets only on mobile */
    .slider::-webkit-slider-thumb {
        height: 24px;
        width: 24px;
    }
    
    .slider::-moz-range-thumb {
        height: 24px;
        width: 24px;
    }
    
    /* Better form field focus states only on mobile */
    input:focus, select:focus, textarea:focus {
        transform: scale(1.02);
        transition: transform 0.2s ease;
    }
    
    /* Improve button hover states for touch only on mobile */
    button:hover, .cursor-pointer:hover {
        transform: scale(1.02);
        transition: transform 0.2s ease;
    }
    
    /* Improve summary sidebar on mobile */
    .lg\\:col-span-1 {
        order: -1;
        margin-bottom: 2rem;
    }
    
    /* Better mobile typography */
    h1, h2, h3, h4, h5, h6 {
        line-height: 1.2;
    }
}
