/* Custom utilities for script.js compatibility */
.input,
.form-select,
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    /* gray-200 */
    background-color: #f8fafc;
    /* gray-50 */
    outline: none;
    transition: all 0.2s;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: #1e293b;
    /* slate-800 */
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {

    .input,
    .form-select,
    .form-control {
        background-color: #1e1e2d;
        /* coal-200 */
        border-color: #3f3f46;
        /* gray-600 */
        color: #f3f4f6;
        /* gray-100 */
    }
}

.dark .input,
.dark .form-select,
.dark .form-control {
    background-color: #1e1e2d;
    /* coal-200 */
    border-color: #3f3f46;
    /* gray-600 */
    color: #f3f4f6;
    /* gray-100 */
}

.input:focus,
.form-select:focus,
.form-control:focus {
    border-color: #3b82f6;
    /* primary blue */
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
    /* gray-700 */
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.dark .form-label {
    color: #9ca3af;
    /* gray-400 */
}

/* Helper for hidden elements */
.hidden {
    display: none;
}

/* Helper for flex centering */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Custom Tiffany Gradient Button */
.btn-tiffany-gradient {
    background: linear-gradient(to right, #33E0C6, #2fb3a0) !important;
    color: #0F1225 !important;
    box-shadow: 0 0 20px rgba(51, 224, 198, 0.3) !important;
    border: none !important;
    transition: all 0.3s ease !important;
    font-weight: 700 !important;
}

.btn-tiffany-gradient:hover {
    box-shadow: 0 0 30px rgba(51, 224, 198, 0.5) !important;
    transform: translateY(-2px) !important;
}

.catalog-card-empty {
    @apply bg-white/5 border border-white/10 rounded-xl p-6 text-center text-gray-400 text-sm font-medium;
}

/* Fix visibility of calendar icon in date inputs for dark themes */
input[type="date"],
input[type="month"] {
    color-scheme: dark !important;
}

/* Replace the generic native icon with a purely white custom SVG */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="month"]::-webkit-calendar-picker-indicator {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E") !important;
    background-position: center !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    cursor: pointer !important;
    opacity: 0.8 !important;
    transition: opacity 0.2s;
    background-color: transparent !important;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="month"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1 !important;
}