/* Image Zoom Cursor Styles */
.cursor-zoom-in {
    cursor: zoom-in;
}

.cursor-zoom-out {
    cursor: zoom-out;
}

/* Image Zoom Modal Styles */
#imageZoomModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#imageZoomModal.show {
    opacity: 1;
}

#imageZoomModal img {
    max-width: 95%;
    max-height: 95vh;
    object-fit: contain;
    cursor: zoom-out;
    animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Close button - top right */
#imageZoomModal > button {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 60;
}

#imageZoomModal > button:hover {
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

#imageZoomModal > button svg,
#imageZoomModal > button i {
    color: white;
}

/* Navigation buttons container */
#imageZoomModal .fixed.inset-0.flex {
    pointer-events: none;
    z-index: 50;
}

/* Navigation buttons - left and right */
#imageZoomModal #zoomPrevBtn,
#imageZoomModal #zoomNextBtn {
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

#imageZoomModal #zoomPrevBtn:hover,
#imageZoomModal #zoomNextBtn:hover {
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

#imageZoomModal #zoomPrevBtn svg,
#imageZoomModal #zoomPrevBtn i,
#imageZoomModal #zoomNextBtn svg,
#imageZoomModal #zoomNextBtn i {
    color: white;
}

/* Image counter - bottom center */
#imageZoomModal .fixed.bottom-4 {
    z-index: 50;
    pointer-events: none;
}

/* Mobile responsive for image zoom */
@media (max-width: 768px) {
    #imageZoomModal img {
        max-width: 100%;
        max-height: 100vh;
    }
    
    #imageZoomModal button {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
}

/* Gallery Tabs */
.gallery-tab {
    transition: all 0.3s ease;
}

.gallery-tab.active {
    color: #b91c1c;
    border-color: #b91c1c;
}

.gallery-content {
    animation: fadeIn 0.3s ease-in;
}

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


/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

/* Nested modals - higher z-index for modals that open on top of other modals */
#addVariantModal.show,
#addPropertyModal.show,
#addVariantPropertyModal.show,
#createCategoryModal.show {
    z-index: 1100;
    background: rgba(0, 0, 0, 0.7);
}

/* Collapsible config sections */
.config-section-content {
    max-height: 2000px;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 1;
}

.config-section-content.collapsed {
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease-in, opacity 0.3s ease-in;
}

/* Quill Editor Customization */
.ql-toolbar {
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
    background-color: #f9fafb;
    border-color: #d1d5db !important;
}

.ql-container {
    border-bottom-left-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
    border-color: #d1d5db !important;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
}

.ql-editor {
    min-height: 80px;
    max-height: 200px;
    overflow-y: auto;
}

.ql-editor.ql-blank::before {
    color: #9ca3af;
    font-style: normal;
}

/* Dark mode support for Quill */
[data-theme="dark"] .ql-toolbar {
    background-color: #374151;
    border-color: #4b5563 !important;
}

[data-theme="dark"] .ql-container {
    background-color: #1f2937;
    border-color: #4b5563 !important;
    color: #e5e7eb;
}

[data-theme="dark"] .ql-editor {
    color: #e5e7eb;
}

[data-theme="dark"] .ql-stroke {
    stroke: #9ca3af;
}

[data-theme="dark"] .ql-fill {
    fill: #9ca3af;
}

[data-theme="dark"] .ql-picker-label {
    color: #9ca3af;
}

[data-theme="dark"] .ql-editor.ql-blank::before {
    color: #6b7280;
}

/* Dark Theme - Config Modal Sections */
[data-theme="dark"] .config-section-header {
    background-color: #1f2937;
    border-color: #374151;
}

[data-theme="dark"] .config-section-header:hover {
    background-color: #374151;
}

[data-theme="dark"] .config-section-content {
    background-color: #111827;
}

/* Dark Theme - General Properties Section (Green) */
[data-theme="dark"] .bg-green-50 {
    background-color: #064e3b !important;
}

[data-theme="dark"] .border-green-200 {
    border-color: #10b981 !important;
}

[data-theme="dark"] .hover\:border-green-400:hover {
    border-color: #34d399 !important;
}

[data-theme="dark"] .text-green-800 {
    color: #ffffff !important;
}

[data-theme="dark"] .text-green-600 {
    color: #ffffff !important;
}

/* Dark Theme - Green section ALL text */
[data-theme="dark"] .bg-green-50 * {
    color: #ffffff !important;
}

[data-theme="dark"] .bg-green-50 .text-sm,
[data-theme="dark"] .bg-green-50 .text-xs,
[data-theme="dark"] .bg-green-50 p,
[data-theme="dark"] .bg-green-50 span {
    color: #e5e7eb !important;
}

[data-theme="dark"] .bg-green-50 strong,
[data-theme="dark"] .bg-green-50 .font-medium {
    color: #ffffff !important;
}

/* Dark Theme - Variants Section (Blue) */
[data-theme="dark"] .bg-blue-50 {
    background-color: #1e293b !important;
}

[data-theme="dark"] .border-blue-200 {
    border-color: #3b82f6 !important;
}

[data-theme="dark"] .hover\:border-blue-400:hover {
    border-color: #60a5fa !important;
}

[data-theme="dark"] .text-blue-800 {
    color: #ffffff !important;
}

[data-theme="dark"] .text-blue-600 {
    color: #93c5fd !important;
}

/* Dark Theme - Blue section info text */
[data-theme="dark"] .bg-blue-50 .text-sm.text-gray-500 {
    color: #d1d5db !important;
}

/* Dark Theme - Property Cards */
[data-theme="dark"] .bg-white {
    background-color: #1f2937 !important;
}

[data-theme="dark"] .border-purple-200 {
    border-color: #a855f7 !important;
}

[data-theme="dark"] .hover\:border-purple-400:hover {
    border-color: #c084fc !important;
}

/* Dark Theme - Purple variant cards */
[data-theme="dark"] .bg-purple-50 {
    background-color: #2e1a47 !important;
}

[data-theme="dark"] .bg-purple-50 .text-sm.text-gray-500 {
    color: #d1d5db !important;
}

/* Dark Theme - Input Fields in Config Modal */
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    background-color: #374151;
    border-color: #4b5563;
    color: #f9fafb;
}

[data-theme="dark"] input[type="text"]:focus,
[data-theme="dark"] input[type="number"]:focus,
[data-theme="dark"] textarea:focus,
[data-theme="dark"] select:focus {
    background-color: #4b5563;
    border-color: #6b7280;
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: #9ca3af;
}

/* Dark Theme - Labels in property cards */
[data-theme="dark"] .config-section-content label {
    color: #f3f4f6 !important;
    font-weight: 500;
}

[data-theme="dark"] .bg-white label,
[data-theme="dark"] .border-green-200 label,
[data-theme="dark"] .border-purple-200 label {
    color: #f3f4f6 !important;
}

/* Dark Theme - Labels and Text */
[data-theme="dark"] .text-gray-500 {
    color: #e5e7eb !important;
}

[data-theme="dark"] .text-gray-700 {
    color: #f3f4f6 !important;
}

[data-theme="dark"] .text-gray-400 {
    color: #d1d5db !important;
}

[data-theme="dark"] .text-gray-600 {
    color: #e5e7eb !important;
}

/* Dark Theme - Headings */
[data-theme="dark"] h3,
[data-theme="dark"] h4 {
    color: #f9fafb !important;
}

/* Dark Theme - Small text in cards */
[data-theme="dark"] .text-xs {
    color: #e5e7eb !important;
}

/* Dark Theme - Buttons */
[data-theme="dark"] .bg-green-500 {
    background-color: #10b981 !important;
}

[data-theme="dark"] .bg-green-600 {
    background-color: #059669 !important;
}

[data-theme="dark"] .hover\:bg-green-700:hover {
    background-color: #047857 !important;
}

[data-theme="dark"] .bg-blue-500 {
    background-color: #3b82f6 !important;
}

[data-theme="dark"] .bg-blue-600 {
    background-color: #2563eb !important;
}

[data-theme="dark"] .hover\:bg-blue-700:hover {
    background-color: #1d4ed8 !important;
}

[data-theme="dark"] .bg-purple-500 {
    background-color: #a855f7 !important;
}

[data-theme="dark"] .bg-purple-600 {
    background-color: #9333ea !important;
}

[data-theme="dark"] .hover\:bg-purple-700:hover {
    background-color: #7e22ce !important;
}

/* Dark Theme - Info Text */
[data-theme="dark"] .text-sm.text-gray-500.italic {
    color: #9ca3af !important;
}

/* Dark Theme - Dividers */
[data-theme="dark"] .text-gray-400 {
    color: #6b7280 !important;
}

/* Dark Theme - Badge/Counter */
[data-theme="dark"] .bg-green-100 {
    background-color: #10b981 !important;
}

[data-theme="dark"] .text-green-800 {
    color: #ffffff !important;
}

[data-theme="dark"] .bg-blue-100 {
    background-color: #3b82f6 !important;
}

[data-theme="dark"] .text-blue-800 {
    color: #ffffff !important;
}

/* Dark Theme - Section specific text colors */
[data-theme="dark"] .config-section-content .text-xs {
    color: #d1d5db !important;
}

[data-theme="dark"] .config-section-content strong,
[data-theme="dark"] .config-section-content .font-medium,
[data-theme="dark"] .config-section-content .font-semibold {
    color: #f9fafb !important;
}

/* Dark Theme - Hide Product Checkbox */
[data-theme="dark"] .bg-yellow-50 {
    background-color: #78350f !important;
    border-color: #92400e !important;
}

[data-theme="dark"] .bg-yellow-50 label,
[data-theme="dark"] .bg-yellow-50 span {
    color: #fef3c7 !important;
}

[data-theme="dark"] .bg-yellow-50 .font-medium {
    color: #fef3c7 !important;
}

[data-theme="dark"] .bg-yellow-50 .text-gray-500 {
    color: #fde68a !important;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Modal adjustments */
    .modal-content {
        max-width: 100vw !important;
        max-height: 100vh !important;
        margin: 0 !important;
        padding: 1rem !important;
        border-radius: 0 !important;
    }
    
    /* Config modal header */
    .config-section-header {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .config-section-header h3 {
        font-size: 1.125rem;
        font-weight: 600;
    }
    
    /* Section content padding */
    .config-section-content {
        padding: 1rem;
    }
    
    /* Property cards - better mobile layout */
    .config-section-content > .space-y-3 {
        gap: 1rem;
    }
    
    .config-section-content .bg-white,
    .config-section-content .border-green-200,
    .config-section-content .border-purple-200 {
        padding: 1rem !important;
        border-radius: 0.75rem !important;
    }
    
    /* Property input fields - better sizing */
    .config-section-content input[type="text"],
    .config-section-content input[type="number"] {
        font-size: 1rem !important;
        padding: 0.75rem !important;
        border-radius: 0.5rem !important;
    }
    
    /* Labels - more readable */
    .config-section-content label {
        font-size: 0.875rem !important;
        font-weight: 500 !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Delete buttons - icon only, positioned better */
    .config-section-content button[onclick*="delete"] {
        width: auto !important;
        padding: 0.75rem !important;
        border-radius: 0.5rem !important;
    }
    
    /* Add buttons - full width and prominent */
    button[onclick*="addProperty"],
    button[onclick*="addVariant"] {
        width: 100% !important;
        font-size: 1rem !important;
        padding: 1rem !important;
        border-radius: 0.75rem !important;
        font-weight: 600 !important;
    }
    
    /* Variant cards - better spacing */
    .bg-purple-50 {
        padding: 1rem !important;
        border-radius: 0.75rem !important;
        margin-bottom: 1rem !important;
    }
    
    /* Variant header - keep horizontal on mobile */
    .flex.justify-between.items-center.mb-3 {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    /* Variant name input - full width */
    input[placeholder*="Название варианта"] {
        font-size: 1rem !important;
        padding: 0.75rem !important;
        width: 100% !important;
    }
    
    /* Price input in variants */
    input[placeholder*="Цена"] {
        font-size: 1.125rem !important;
        font-weight: 600 !important;
        padding: 0.75rem !important;
    }
    
    /* Buttons in variant header - better sizing */
    .flex.gap-2 button:not([onclick*="availability"]) {
        padding: 0.625rem 0.875rem !important;
        font-size: 0.875rem !important;
        border-radius: 0.5rem !important;
    }
    
    /* Info text - more readable */
    .text-sm.text-gray-500.italic,
    .text-xs.text-gray-400 {
        font-size: 0.875rem !important;
        line-height: 1.5 !important;
    }
    
    /* Chevron icon - proper size */
    .config-section-header svg,
    .config-section-header i {
        width: 1.25rem !important;
        height: 1.25rem !important;
    }
    
    /* Badge counter - readable */
    .bg-green-100,
    .bg-blue-100 {
        font-size: 0.75rem !important;
        padding: 0.25rem 0.5rem !important;
        font-weight: 600 !important;
    }
    
    /* Modal close button */
    .modal button[onclick*="closeProductConfigModal"] {
        font-size: 1rem !important;
        padding: 0.75rem 1.5rem !important;
        border-radius: 0.75rem !important;
    }
    
    /* Quill editor on mobile - better UX */
    .ql-toolbar {
        padding: 0.75rem !important;
        border-radius: 0.5rem 0.5rem 0 0 !important;
    }
    
    .ql-container {
        border-radius: 0 0 0.5rem 0.5rem !important;
    }
    
    .ql-editor {
        min-height: 100px !important;
        font-size: 1rem !important;
        padding: 1rem !important;
    }
    
    /* Availability buttons - FIXED for mobile */
    button[onclick*="availability"] {
        flex: 1 !important;
        padding: 1rem 0.5rem !important;
        font-size: 0.875rem !important;
        border-radius: 0.75rem !important;
        min-height: 3.5rem !important;
    }
    
    button[onclick*="availability"] .flex {
        flex-direction: column !important;
        gap: 0.375rem !important;
    }
    
    button[onclick*="availability"] .w-2 {
        width: 0.625rem !important;
        height: 0.625rem !important;
    }
    
    button[onclick*="availability"] span:not(.w-2) {
        font-size: 0.75rem !important;
        font-weight: 500 !important;
    }
}


.modal-content {
    background: white;
    border-radius: 0.5rem;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

/* Admin Panel Collapsible Styles */
.collapsible {
    max-height: 2000px;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 1;
}

.collapsible.collapsed {
    max-height: 0;
    opacity: 0;
}
/* Kanghua Boats CIS - Shared Styles */

/* Font Definitions */
body {
    font-family: 'Inter', sans-serif;
}

.font-heading {
    font-family: 'Montserrat', sans-serif;
}

/* Aurora Background Effect */
.aurora-bg {
    background: linear-gradient(135deg, #dc2626 0%, #000000 25%, #ea580c 50%, #dc2626 75%, #000000 100%);
    background-size: 400% 400%;
    animation: aurora 15s ease infinite;
}

@keyframes aurora {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Bounce Card Effect */
.bounce-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bounce-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Clickable card cursor */
.bounce-card.cursor-pointer {
    cursor: pointer;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Mobile Menu */
.mobile-menu {
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu.active {
    transform: translateX(0);
}

/* Water Wave Effect */
.water-wave {
    position: relative;
    overflow: hidden;
}

.water-wave::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: wave 3s linear infinite;
}

@keyframes wave {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Water Ripple Effect */
.water-ripple {
    position: relative;
    overflow: hidden;
}

.water-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    animation: ripple 2s ease-out infinite;
}

@keyframes ripple {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.modal-content {
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Collapsible Styles */
.collapsible {
    max-height: 2000px;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.collapsible.collapsed {
    max-height: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .aurora-bg {
        background-size: 200% 200%;
    }
}

/* Utility Classes */
.text-red-600 { color: #dc2626; }
.bg-red-600 { background-color: #dc2626; }
.hover\:bg-red-700:hover { background-color: #b91c1c; }

/* Notification Container */
#notificationContainer {
    position: fixed;
    top: 80px; /* Below header and language switcher */
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

#notificationContainer > * {
    pointer-events: all;
}


/* Notification Styles */
.notification {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background: white;
    border-left: 4px solid;
    animation: slideInRight 0.3s ease-out;
    min-width: 300px;
    max-width: 400px;
}

.notification.success {
    border-left-color: #10b981;
}

.notification.error {
    border-left-color: #ef4444;
}

.notification.warning {
    border-left-color: #f59e0b;
}

.notification.info {
    border-left-color: #3b82f6;
}

.notification-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-right: 0.75rem;
}

.notification-icon.success {
    color: #10b981;
}

.notification-icon.error {
    color: #ef4444;
}

.notification-icon.warning {
    color: #f59e0b;
}

.notification-icon.info {
    color: #3b82f6;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #1f2937;
}

.notification-message {
    font-size: 0.875rem;
    color: #6b7280;
}

.notification-close {
    flex-shrink: 0;
    margin-left: 0.75rem;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.2s;
}

.notification-close:hover {
    color: #4b5563;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.notification.removing {
    animation: slideOutRight 0.3s ease-out forwards;
}

/* Mobile responsiveness for notifications */
@media (max-width: 640px) {
    .notification {
        min-width: calc(100vw - 2rem);
        max-width: calc(100vw - 2rem);
    }
    
    #notificationContainer {
        left: 1rem;
        right: 1rem;
        width: auto;
    }
}

/* ==================== CUSTOM CHECKBOXES ==================== */

/* Container for custom checkbox */
.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
}

/* Hide default checkbox */
.custom-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Custom checkbox box */
.custom-checkbox .checkmark {
    position: absolute;
    left: 0;
    height: 24px;
    width: 24px;
    border-radius: 6px;
    border: 2px solid #d1d5db;
    background-color: white;
    transition: all 0.3s ease;
}

/* Hover effect */
.custom-checkbox:hover .checkmark {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Checkmark icon (hidden by default) */
.custom-checkbox .checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 11px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Show checkmark when checked */
.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

/* Phone checkbox - Red (site color) */
.custom-checkbox.checkbox-phone input:checked ~ .checkmark {
    background-color: #dc2626;
    border-color: #dc2626;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.custom-checkbox.checkbox-phone:hover .checkmark {
    border-color: #dc2626;
}

/* Email checkbox - Gray (site color) */
.custom-checkbox.checkbox-email input:checked ~ .checkmark {
    background-color: #6b7280;
    border-color: #6b7280;
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.4);
}

.custom-checkbox.checkbox-email:hover .checkmark {
    border-color: #6b7280;
}

/* Telegram checkbox - Blue */
.custom-checkbox.checkbox-telegram input:checked ~ .checkmark {
    background-color: #0088cc;
    border-color: #0088cc;
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.4);
}

.custom-checkbox.checkbox-telegram:hover .checkmark {
    border-color: #0088cc;
}

/* WhatsApp checkbox - Green */
.custom-checkbox.checkbox-whatsapp input:checked ~ .checkmark {
    background-color: #25d366;
    border-color: #25d366;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.custom-checkbox.checkbox-whatsapp:hover .checkmark {
    border-color: #25d366;
}

/* Payment method checkbox - Red (site color) */
.custom-checkbox.checkbox-payment input:checked ~ .checkmark {
    background-color: #dc2626;
    border-color: #dc2626;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.custom-checkbox.checkbox-payment:hover .checkmark {
    border-color: #dc2626;
}

/* Label text styling */
.custom-checkbox .checkbox-label {
    color: #374151;
    font-weight: 500;
    transition: color 0.3s ease;
}

.custom-checkbox:hover .checkbox-label {
    color: #111827;
}

/* Dark theme support for checkbox labels */
[data-theme="dark"] .custom-checkbox .checkbox-label {
    color: #e5e7eb;
}

[data-theme="dark"] .custom-checkbox:hover .checkbox-label {
    color: #f9fafb;
}

/* Dark theme support for checkbox box */
[data-theme="dark"] .custom-checkbox .checkmark {
    background-color: var(--input-bg);
    border-color: var(--border-color);
}

/* Active state animation */
.custom-checkbox input:checked ~ .checkmark {
    animation: checkboxPop 0.3s ease;
}

@keyframes checkboxPop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}


/* ==================== ORDER NOTIFICATION STYLES ==================== */

.order-notification {
    min-width: 400px;
}

.order-id-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    border: 2px solid #10b981;
}

.order-id-label {
    font-size: 14px;
    font-weight: 600;
    color: #059669;
}

.order-id-value {
    font-size: 16px;
    font-weight: 700;
    color: #047857;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

.copy-order-btn {
    margin-left: auto;
    padding: 6px 12px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.copy-order-btn:hover {
    background: #059669;
    transform: scale(1.05);
}

.copy-order-btn:active {
    transform: scale(0.95);
}

.copy-order-btn svg {
    width: 16px;
    height: 16px;
}

/* ==================== END ORDER NOTIFICATION STYLES ==================== */
/* ==================== END CUSTOM CHECKBOXES ==================== */

/* ==================== ORDER DETAILS COLLAPSE ==================== */

.order-details {
    max-height: 2000px;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 1;
}

.order-details.collapsed {
    max-height: 0;
    opacity: 0;
}

.order-toggle-icon {
    transition: transform 0.3s ease;
}

/* ==================== PRODUCT HIGHLIGHT ANIMATION ==================== */

@keyframes highlightPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
        transform: scale(1.02);
    }
}

.highlight-product {
    animation: highlightPulse 1s ease-in-out 2;
    border: 2px solid #dc2626 !important;
}


/* ==================== PAYMENT BADGES ==================== */

.payment-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.payment-badge {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.payment-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.payment-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Payment badge with icon (for SVG logos like СБП and МИР) */
.payment-badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 60px;
    height: 48px;
}

.payment-badge-icon:hover {
    border-color: #dc2626;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
    transform: translateY(-2px);
}

.payment-badge-icon.clickable {
    cursor: pointer;
}

.payment-badge-icon.clickable.selected {
    background: transparent !important;
    border-color: #dc2626 !important;
    border-width: 3px !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3) !important;
}

.payment-badge-icon.clickable.selected img {
    /* Keep original image colors - no filter */
}

.payment-badge-icon img {
    height: 2rem;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: filter 0.3s ease;
}

/* Payment badge with text (for payment methods like "Наличные", "По счету", "Тендер") */
.payment-badge-text {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    height: 48px;
}

.payment-badge-text:hover {
    border-color: #dc2626;
    background: #fef2f2;
    color: #dc2626;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
    transform: translateY(-2px);
}

.payment-badge-text.clickable {
    cursor: pointer;
}

.payment-badge-text.clickable.selected {
    background: transparent !important;
    border-color: #dc2626 !important;
    border-width: 3px !important;
    color: #dc2626 !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3) !important;
}

/* Dark theme support for payment badges */
[data-theme="dark"] .payment-badge-icon,
[data-theme="dark"] .payment-badge-text {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .payment-badge-icon:hover {
    border-color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
}

[data-theme="dark"] .payment-badge-text:hover {
    border-color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

[data-theme="dark"] .payment-badge-icon.selected {
    background: transparent !important;
    border-color: #dc2626 !important;
    border-width: 3px !important;
}

[data-theme="dark"] .payment-badge-icon.selected img {
    /* Keep original image colors - no filter */
}

[data-theme="dark"] .payment-badge-text.selected {
    background: transparent !important;
    border-color: #dc2626 !important;
    border-width: 3px !important;
    color: #dc2626 !important;
    font-weight: 700 !important;
}

/* Share menu dropdown */
.share-menu {
    animation: slideUp 0.2s ease-out;
}

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

.share-menu button {
    font-size: 0.9375rem;
}

.share-menu button:hover i {
    color: #dc2626;
}

/* Dark theme support for share menu */
[data-theme="dark"] .share-menu {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] .share-menu button {
    color: var(--text-primary);
}

[data-theme="dark"] .share-menu button:hover {
    background: var(--bg-tertiary);
}

[data-theme="dark"] .share-menu button i {
    color: var(--text-secondary);
}

/* Share button contrast in dark theme */
[data-theme="dark"] #shareButton {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] #shareButton:hover {
    border-color: #dc2626;
    color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
}

/* ==================== END PAYMENT BADGES ==================== */

/* ==================== DARK THEME ==================== */

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-tertiary: #9ca3af;
    --border-color: #e5e7eb;
    --card-bg: #ffffff;
    --header-bg: #ffffff;
    --footer-bg: #111827;
    --modal-bg: #ffffff;
    --input-bg: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --bg-tertiary: #374151;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-tertiary: #9ca3af;
    --border-color: #374151;
    --card-bg: #1f2937;
    --header-bg: #1f2937;
    --footer-bg: #030712;
    --modal-bg: #1f2937;
    --input-bg: #374151;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

/* Apply theme variables */
body {
    background-color: var(--bg-secondary);

/* ==================== ORDER SUCCESS MODAL ==================== */

#orderSuccessModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#orderSuccessModal.show {
    opacity: 1;
}

#orderSuccessModal .modal-content {
    animation: slideInFromTop 0.4s ease-out;
}

@keyframes slideInFromTop {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Dark theme support for order success modal */
[data-theme="dark"] #orderSuccessModal .modal-content {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

[data-theme="dark"] #orderSuccessModal .bg-gray-50 {
    background: var(--bg-tertiary) !important;
}

[data-theme="dark"] #orderSuccessModal .text-gray-600 {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] #orderSuccessModal .text-gray-500 {
    color: var(--text-tertiary) !important;
}

[data-theme="dark"] #orderSuccessModal .text-gray-900 {
    color: var(--text-primary) !important;
}

/* ==================== END ORDER SUCCESS MODAL ==================== */
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

header {
    background-color: var(--header-bg);
    box-shadow: var(--shadow-sm);
}

footer {
    background-color: var(--footer-bg);
}

.bg-white {
    background-color: var(--card-bg) !important;
}

.bg-gray-50 {
    background-color: var(--bg-secondary) !important;
}

.bg-gray-100 {
    background-color: var(--bg-tertiary) !important;
}

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

.text-gray-700 {
    color: var(--text-secondary) !important;
}

.text-gray-600 {
    color: var(--text-secondary) !important;
}

.text-gray-500 {
    color: var(--text-tertiary) !important;
}

.border-gray-200 {
    border-color: var(--border-color) !important;
}

.border-gray-300 {
    border-color: var(--border-color) !important;
}

/* Better contrast for filter buttons in dark mode */
[data-theme="dark"] .category-btn {
    background-color: #374151 !important;
    color: #e5e7eb !important;
    border: 1px solid #4b5563;
}

[data-theme="dark"] .category-btn:hover {
    background-color: #4b5563 !important;
    color: #f3f4f6 !important;
}

[data-theme="dark"] .category-btn.bg-red-600 {
    background-color: #dc2626 !important;
    color: #ffffff !important;
    border-color: #dc2626;
}

[data-theme="dark"] .category-btn.bg-red-600:hover {
    background-color: #b91c1c !important;
}

/* Modal dark theme */
[data-theme="dark"] .modal {
    background-color: rgba(0, 0, 0, 0.8);
}

[data-theme="dark"] .modal-content {
    background-color: var(--modal-bg);
}

/* Input fields dark theme */
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    background-color: var(--input-bg);
    color: var(--text-primary);
    border-color: var(--border-color);
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: var(--text-tertiary);
}

/* Theme Toggle Button - Modern Switch Style */
.theme-toggle {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* Hide fixed buttons on mobile - they're in the menu now */
@media (max-width: 768px) {
    .theme-toggle {
        display: none !important;
    }
}

.theme-toggle-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.theme-switch {
    position: relative;
    width: 70px;
    height: 70px;
    background: linear-gradient(145deg, #e6e6e6, #ffffff);
    border-radius: 50%;
    box-shadow: 5px 5px 10px #d1d1d1, -5px -5px 10px #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

[data-theme="dark"] .theme-switch {
    background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
    box-shadow: 5px 5px 10px #0d0d0d, -5px -5px 10px #3a3a3a;
}

.theme-switch:hover {
    transform: scale(1.05);
}

.theme-switch:active {
    transform: scale(0.95);
}

.theme-icon {
    width: 32px;
    height: 32px;
    transition: all 0.3s ease;
}

.sun-icon {
    color: #f59e0b;
}

.moon-icon {
    color: #60a5fa;
}

/* Hide sun icon in light mode, moon icon in dark mode */
[data-theme="light"] .moon-icon {
    display: none;
}

[data-theme="dark"] .sun-icon {
    display: none;
}

/* Mobile theme icons */
[data-theme="light"] .mobile-theme-icon.moon-icon {
    display: none;
}

[data-theme="dark"] .mobile-theme-icon.sun-icon {
    display: none;
}

/* Dark theme for mobile menu */
[data-theme="dark"] .mobile-menu {
    background-color: var(--bg-secondary);
}

[data-theme="dark"] .mobile-menu a {
    color: var(--text-primary);
}

[data-theme="dark"] .mobile-menu .border-gray-200 {
    border-color: var(--border-color);
}

[data-theme="dark"] #mobileThemeToggle {
    background-color: var(--bg-tertiary);
}

[data-theme="dark"] #mobileThemeToggle span {
    color: var(--text-primary);
}
/* Language switcher in mobile menu - improve contrast in dark theme */
[data-theme="dark"] .mobile-ru-btn,
[data-theme="dark"] .mobile-en-btn {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .mobile-ru-btn.bg-red-600,
[data-theme="dark"] .mobile-en-btn.bg-red-600 {
    background-color: #dc2626 !important;
    color: white !important;
    border-color: #dc2626;
}


/* Rotate animation on theme change */
.theme-switch.switching {
    animation: rotate360 0.5s ease;
}

@keyframes rotate360 {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .theme-toggle {
        top: 70px;
        right: 15px;
    }
    
    .theme-switch {
        width: 60px;
        height: 60px;
    }
    
    .theme-icon {
        width: 28px;
        height: 28px;
    }
    
    .theme-toggle-label {
        font-size: 10px;
    }
}

@media (max-width: 640px) {
    .theme-toggle {
        top: 60px;
        right: 10px;
    }
    
    .theme-switch {
        width: 55px;
        height: 55px;
    }
}

/* Smooth theme transition */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Preserve specific colors that shouldn't change */
.bg-red-600,
.text-red-600,
.hover\:bg-red-700:hover,
.aurora-bg {
    transition: none !important;
}

/* ==================== CAPTCHA BUTTON STYLES ==================== */

.captcha-option-btn {
    padding: 1rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==================== ADMIN PANEL FIXES ==================== */

/* Fix product card overflow in admin catalog */
[data-product-id] {
    overflow: hidden;
}

[data-product-id] input,
[data-product-id] textarea,
[data-product-id] select {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

[data-product-id] .bg-blue-50 {
    max-width: 100%;
    overflow: hidden;
}

[data-product-id] .bg-white.p-2 {
    max-width: 100%;
    overflow: hidden;
}

/* Ensure variant items don't overflow */
[data-product-id] .flex.gap-2.items-center {
    flex-wrap: wrap;
}

/* Fix long text in product cards */
[data-product-id] .text-lg,
[data-product-id] .text-sm,
[data-product-id] .text-xs {
    word-break: break-word;
    overflow-wrap: break-word;
}

.captcha-option-btn:hover {
    border-color: #dc2626;
    background: #fef2f2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

.captcha-option-btn:active {
    transform: translateY(0);
}

.captcha-option-btn.selected {
    background: #dc2626;
    border-color: #dc2626;
    color: white;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.captcha-option-text {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Dark theme support for CAPTCHA buttons */
[data-theme="dark"] .captcha-option-btn {
    background: var(--input-bg);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .captcha-option-btn:hover {
    border-color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
}

[data-theme="dark"] .captcha-option-btn.selected {
    background: #dc2626;
    border-color: #dc2626;
    color: white;
}

/* ==================== END CAPTCHA BUTTON STYLES ==================== */

/* ==================== ADMIN PANEL DARK THEME ==================== */

/* Admin header dark theme */
[data-theme="dark"] header {
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] header .text-gray-900 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] header .text-gray-600 {
    color: var(--text-secondary) !important;
}

/* Admin tabs dark theme */
[data-theme="dark"] .admin-tab {
    color: var(--text-secondary);
}

[data-theme="dark"] .admin-tab.active {
    color: #dc2626;
    border-color: #dc2626;
}

[data-theme="dark"] .admin-tab:hover {
    color: var(--text-primary);
}

/* Gallery tabs dark theme */
[data-theme="dark"] .gallery-tab {
    color: var(--text-secondary);
}

[data-theme="dark"] .gallery-tab.active {
    color: #dc2626;
    border-color: #dc2626;
}

[data-theme="dark"] .gallery-tab:hover {
    color: var(--text-primary);
}

/* Admin cards and sections dark theme */
[data-theme="dark"] .bg-white {
    background-color: var(--card-bg) !important;
}

[data-theme="dark"] .shadow-sm,
[data-theme="dark"] .shadow-md,
[data-theme="dark"] .shadow-lg,
[data-theme="dark"] .shadow-xl {
    box-shadow: var(--shadow-lg);
}

/* Admin product cards dark theme */
[data-theme="dark"] [data-product-id] {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] [data-product-id] .bg-blue-50 {
    background-color: rgba(59, 130, 246, 0.1) !important;
}

[data-theme="dark"] [data-product-id] .bg-purple-50 {
    background-color: rgba(147, 51, 234, 0.1) !important;
}

[data-theme="dark"] [data-product-id] .text-blue-700 {
    color: #60a5fa !important;
}

[data-theme="dark"] [data-product-id] .text-purple-700 {
    color: #c084fc !important;
}

/* Admin buttons dark theme */
[data-theme="dark"] .bg-gray-200 {
    background-color: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .bg-gray-200:hover {
    background-color: #4b5563 !important;
}

/* Admin order cards dark theme */
[data-theme="dark"] .order-card {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

/* Admin statistics cards dark theme */
[data-theme="dark"] #orderStats > div {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

/* Admin modals dark theme - ensure proper styling */
[data-theme="dark"] .modal {
    background-color: rgba(0, 0, 0, 0.8);
}

[data-theme="dark"] .modal-content {
    background-color: var(--modal-bg) !important;
    color: var(--text-primary);
}

[data-theme="dark"] .modal-content h2,
[data-theme="dark"] .modal-content h3 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .modal-content label {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .modal-content .text-gray-500 {
    color: var(--text-tertiary) !important;
}

[data-theme="dark"] .modal-content .border-gray-200 {
    border-color: var(--border-color) !important;
}

/* Admin select and input fields dark theme */
[data-theme="dark"] select,
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="tel"],
[data-theme="dark"] input[type="url"],
[data-theme="dark"] input[type="file"],
[data-theme="dark"] textarea {
    background-color: var(--input-bg) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] select:focus,
[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus {
    background-color: var(--input-bg) !important;
    border-color: #dc2626 !important;
}

/* Admin info boxes dark theme */
[data-theme="dark"] .bg-blue-50 {
    background-color: rgba(59, 130, 246, 0.1) !important;
}

[data-theme="dark"] .bg-purple-50 {
    background-color: rgba(147, 51, 234, 0.1) !important;
}

[data-theme="dark"] .border-blue-200 {
    border-color: rgba(59, 130, 246, 0.3) !important;
}

[data-theme="dark"] .border-purple-200 {
    border-color: rgba(147, 51, 234, 0.3) !important;
}

[data-theme="dark"] .text-blue-800 {
    color: #93c5fd !important;
}

[data-theme="dark"] .text-blue-700 {
    color: #60a5fa !important;
}

[data-theme="dark"] .text-purple-800 {
    color: #c084fc !important;
}

[data-theme="dark"] .text-purple-700 {
    color: #a78bfa !important;
}

/* ==================== END ADMIN PANEL DARK THEME ==================== */

/* ==================== ADMIN PANEL MOBILE RESPONSIVE ==================== */

/* Mobile header adjustments */
@media (max-width: 768px) {
    header nav {
        padding: 0.75rem 1rem;
    }
    
    header .flex.items-center.space-x-4 {
        flex-direction: column;
        align-items: flex-end;
        gap: 0.5rem;
        space-x: 0;
    }
    
    header .flex.items-center.space-x-3 {
        gap: 0.5rem;
    }
    
    header .font-heading {
        font-size: 1rem;
    }
    
    header button,
    header a {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
}

/* Mobile tabs navigation */
@media (max-width: 768px) {
    .admin-tab,
    .gallery-tab {
        font-size: 0.875rem;
        padding: 0.75rem 0.5rem;
    }
    
    nav.flex.space-x-8 {
        gap: 1rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Mobile main content */
@media (max-width: 768px) {
    main.container {
        padding: 1rem;
    }
    
    section h2 {
        font-size: 1.5rem;
    }
    
    .flex.justify-between.items-center {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .flex.items-center.space-x-4 {
        flex-wrap: wrap;
        gap: 0.5rem;
        width: 100%;
    }
}

/* Mobile product grids */
@media (max-width: 768px) {
    #boatsGrid,
    #accessoriesGrid,
    #photosGrid,
    #videosGrid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Mobile order statistics */
@media (max-width: 768px) {
    #orderStats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    #orderStats > div {
        padding: 0.75rem;
    }
    
    #orderStats .text-3xl {
        font-size: 1.5rem;
    }
    
    #orderStats .text-sm {
        font-size: 0.75rem;
    }
}

/* Mobile orders list */
@media (max-width: 768px) {
    #ordersList > div {
        padding: 1rem;
    }
    
    .order-details {
        font-size: 0.875rem;
    }
}

/* Mobile modals - full screen on small devices */
@media (max-width: 640px) {
    .modal-content {
        max-width: 100%;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
        width: 100%;
        height: 100%;
    }
    
    .modal-content .p-6 {
        padding: 1rem;
    }
    
    .modal-content h2 {
        font-size: 1.25rem;
    }
}

/* Mobile buttons - larger touch targets */
@media (max-width: 768px) {
    button {
        min-height: 44px;
        padding: 0.75rem 1rem;
    }
    
    .flex.space-x-3 button {
        flex: 1;
        min-width: 0;
    }
}

/* Mobile inputs - larger for better usability */
@media (max-width: 768px) {
    input,
    textarea,
    select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.75rem;
    }
}

/* Mobile product cards - stack content */
@media (max-width: 768px) {
    [data-product-id] {
        padding: 1rem;
    }
    
    [data-product-id] .grid {
        grid-template-columns: 1fr;
    }
    
    [data-product-id] img {
        max-height: 200px;
    }
}

/* Mobile search and filters */
@media (max-width: 768px) {
    #orderSearch {
        width: 100%;
    }
    
    #categoryFilter {
        width: 100%;
    }
    
    .flex.items-center.space-x-4 > div {
        width: 100%;
    }
}

/* Mobile gallery items */
@media (max-width: 768px) {
    .gallery-content > div {
        padding: 0.75rem;
    }
    
    .gallery-content img,
    .gallery-content video {
        max-height: 250px;
    }
}

/* Mobile contact settings */
@media (max-width: 768px) {
    .max-w-2xl {
        max-width: 100%;
    }
    
    .space-y-6 {
        gap: 1rem;
    }
}

/* Ensure proper spacing on mobile */
@media (max-width: 768px) {
    .space-x-3,
    .space-x-4 {
        gap: 0.5rem;
    }
    
    .mb-8 {
        margin-bottom: 1.5rem;
    }
    
    .mb-16 {
        margin-bottom: 2rem;
    }
}

/* Mobile product config modal */
@media (max-width: 768px) {
    #productConfigModal .modal-content {
        max-width: 100%;
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
    
    #productConfigContent {
        padding: 1rem;
    }
}

/* Mobile variant and property cards */
@media (max-width: 768px) {
    .bg-blue-50,
    .bg-purple-50 {
        padding: 0.75rem;
    }
    
    .flex.gap-2 {
        flex-wrap: wrap;
    }
    
    .flex.gap-2 button {
        flex: 1;
        min-width: 120px;
    }
}

/* ==================== END ADMIN PANEL MOBILE RESPONSIVE ==================== */

/* ==================== END DARK THEME ==================== */
/* ==================== END PRODUCT HIGHLIGHT ANIMATION ==================== */