/* 
 * Terzon Admin - Add New Product Styles
 * Styling for add-new-product.html
 */

/* General Styles */
body {
    font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
    background-color: #f5f7fa;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

/* Clothing: Size Options Chips */
.size-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.size-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #dbe1ea;
    border-radius: 8px;
    background: #f9faff;
    color: #445066;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.size-chip:hover {
    border-color: #c0c9db;
    background: #f0f4ff;
}

.size-chip.selected {
    background: #3f51b5;
    color: #fff;
    border-color: #3f51b5;
    box-shadow: 0 2px 6px rgba(63,81,181,0.25);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

header {
    background-color: white;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
    font-size: 26px;
    color: #2c3e50;
    font-weight: 600;
}

nav {
    display: flex;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    padding: 8px 5px;
    position: relative;
    transition: all 0.3s ease;
}

nav a:hover {
    color: #3f51b5;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #3f51b5;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Card Styling */
.card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin: 25px 0;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}

.card h2 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 26px;
    color: #2c3e50;
    border-bottom: 1px solid #eaedf2;
    padding-bottom: 18px;
    font-weight: 600;
}

/* Tab Navigation */
.tab-container {
    margin-top: 25px;
    width: 100%;
    position: relative;
}

.tab-buttons {
    display: flex;
    border-bottom: 1px solid #e6e9f0;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 5px;
}

.tab-button {
    padding: 12px 24px;
    cursor: pointer;
    position: relative;
    font-weight: 500;
    color: #5a6474;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    border-radius: 6px 6px 0 0;
    margin-bottom: -1px;
}

.tab-button:hover {
    color: #3f51b5;
    background-color: #f5f7ff;
}

.tab-button.active {
    color: #3f51b5;
    border-bottom: 3px solid #3f51b5;
    font-weight: 600;
    background-color: #f9faff;
    box-shadow: 0 -3px 10px rgba(63, 81, 181, 0.08);
}

.tab-content {
    display: none;
    padding: 15px 0;
    animation: fadeIn 0.5s ease;
}

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

.tab-content.active {
    display: block;
}

.tab-content h3 {
    color: #2c3e50;
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Form Styles */
form {
    margin-top: 25px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 20px;
    width: 100%;
    align-items: flex-start;
    justify-content: space-between;
    box-sizing: border-box;
}

.form-group {
    flex: 1;
    min-width: 250px;
    position: relative;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.form-group.full-width {
    flex-basis: 100%;
    max-width: 100%;
}

.form-group.third-width {
    flex: 0 0 calc(33.333% - 16px);
    min-width: 200px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #445066;
    font-size: 15px;
    transition: all 0.2s ease;
}

input[type="text"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dbe1ea;
    border-radius: 6px;
    font-size: 15px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background-color: #f9faff;
    color: #445066;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

input[type="text"]:hover,
input[type="number"]:hover,
select:hover,
textarea:hover {
    border-color: #b8c4d9;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    border-color: #3f51b5;
    outline: none;
    box-shadow: 0 0 0 3px rgba(63, 81, 181, 0.15), inset 0 1px 3px rgba(0,0,0,0);
    background-color: #fff;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

select {
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23445066" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* Category Buttons */
.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
    margin-bottom: 5px;
    width: 100%;
    position: relative;
    align-items: center;
}

.category-btn {
    padding: 10px 18px;
    border: 1px solid #dbe1ea;
    background-color: #f9faff;
    color: #445066;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.category-btn:hover {
    background-color: #f0f4ff;
    border-color: #c0c9db;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

.category-btn.active {
    background-color: #3f51b5;
    color: white;
    border-color: #3f51b5;
    box-shadow: 0 2px 6px rgba(63, 81, 181, 0.25);
    transform: translateY(-1px);
}

/* Subcategory Sections */
.subcategory-section {
    display: none;
    margin-top: 18px;
    padding: 20px;
    background-color: #f8faff;
    border-radius: 8px;
    border-left: 4px solid #3f51b5;
    box-shadow: 0 2px 10px rgba(63, 81, 181, 0.08);
    animation: fadeIn 0.5s ease;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.subcategory-section.active {
    display: block;
}

/* Form Sections */
.form-section {
    margin: 30px 0 20px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    width: 100%;
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.form-section h4 {
    margin-top: 0;
    font-size: 18px;
    color: #333;
    margin-bottom: 5px;
}

.help-text {
    color: #777;
    font-size: 14px;
    margin-top: 0;
    margin-bottom: 15px;
}

/* File Inputs & Image Preview */
.file-input {
    display: none;
}

.file-input-container {
    width: 100%;
    position: relative;
    margin: 10px 0;
}

.image-preview {
    margin-top: 15px;
    min-height: 100px;
    border: 2px dashed #c0c9db;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px;
    position: relative;
    background-color: #f8faff;
    transition: all 0.3s ease;
    cursor: pointer;
}

.image-preview:hover {
    border-color: #3f51b5;
    background-color: #f0f4ff;
}

.image-preview::after {
    content: 'Click to upload image';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #7b8599;
    font-size: 16px;
    font-weight: 500;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.image-preview::before {
    content: '';
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%237b8599" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path><polyline points="17 8 12 3 7 8"></polyline><line x1="12" y1="3" x2="12" y2="15"></line></svg>');
    width: 24px;
    height: 24px;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 8px;
    position: absolute;
    left: 50%;
    top: 40%;
    transform: translateX(-50%);
}

.image-preview.has-image::after,
.image-preview.has-image::before {
    content: '';
    background-image: none;
    display: none;
}

.image-preview img {
    max-width: 120px;
    max-height: 100px;
    border-radius: 6px;
    object-fit: contain;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.image-preview img:hover {
    transform: scale(1.05);
}

/* Color Picker */
.color-picker-container {
    margin-top: 12px;
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

.color-input-group {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.color-input-group input {
    flex: 1;
}

.add-color-btn {
    padding: 10px 18px;
    background-color: #3f51b5;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(63, 81, 181, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    font-size: 15px;
}

.add-color-btn:hover {
    background-color: #303f9f;
    box-shadow: 0 3px 8px rgba(63, 81, 181, 0.3);
    transform: translateY(-1px);
}

.add-color-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(63, 81, 181, 0.2);
}

.color-bubbles {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    padding: 5px 0;
    width: 100%;
    box-sizing: border-box;
    align-items: center;
    position: relative;
}

.color-bubble {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #f5f7ff;
    border-radius: 20px;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #dbe1ea;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.color-bubble:hover {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.color-swatch {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3);
}

.remove-color {
    background: none;
    border: none;
    color: #ff4444;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-left: 4px;
}

.remove-color:hover {
    color: #ff0000;
    transform: scale(1.2);
}

/* Video Preview */
.video-preview {
    margin-top: 10px;
    min-height: 80px;
}

/* Success Message */
.message {
    padding: 16px 24px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: none;
    align-items: center;
    gap: 12px;
    animation: fadeSlideDown 0.5s ease-out;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

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

#success-message {
    background-color: #e3f6eb;
    border: 1px solid #c3e6cb;
    color: #155724;
}

#success-message::before {
    content: '';
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23155724" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path><polyline points="22 4 12 14.01 9 11.01"></polyline></svg>');
    width: 24px;
    height: 24px;
    display: block;
}

/* Checkbox Styling */
.checkbox-group {
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
}

input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #3f51b5;
}

/* Submit Button */
.form-actions {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-top: 30px;
    box-sizing: border-box;
    position: relative;
}

button[type="submit"] {
    background-color: #3f51b5;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 10px rgba(63, 81, 181, 0.25);
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
}

button[type="submit"]:hover {
    background-color: #303f9f;
    box-shadow: 0 6px 15px rgba(63, 81, 181, 0.35);
    transform: translateY(-2px);
}

button[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(63, 81, 181, 0.2);
}

/* Test Fill Button */
.test-fill-btn {
    background-color: #f8f9fa;
    border: 1px solid #dbe1ea;
    color: #445066;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 5px 0;
}

.test-fill-btn:hover {
    background-color: #f0f4ff;
    border-color: #c0c9db;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.test-fill-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .container {
        padding: 0 20px;
    }
    
    .card {
        padding: 25px;
    }
    
    .form-row {
        gap: 20px;
    }
    
    button[type="submit"] {
        width: 100%;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    nav {
        justify-content: center;
    }
    
    .form-group {
        flex: 0 0 100%;
    }
    
    .form-group.third-width {
        flex: 0 0 100%;
    }
    
    .category-buttons {
        flex-direction: column;
    }
    
    .tab-buttons {
        flex-direction: column;
        border-bottom: none;
        margin-bottom: 15px;
    }
    
    .tab-button {
        border-bottom: none;
        border-left: 3px solid transparent;
        border-radius: 0;
        margin-bottom: 0;
        padding: 12px 15px;
    }
    
    .tab-button.active {
        border-bottom: none;
        border-left: 3px solid #3f51b5;
        box-shadow: none;
        background-color: #f5f7ff;
    }
    
    .color-input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .add-color-btn {
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 20px;
        margin: 15px 0;
    }
    
    .card h2 {
        font-size: 22px;
    }
    
    .tab-content h3 {
        font-size: 18px;
    }
    
    .color-bubble {
        width: 100%;
        justify-content: space-between;
    }
}

/* ============================================
   DARK MODE - Enhanced visibility
   ============================================ */

body.dark-mode,
body.dark {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    color: #f1f5f9;
}

body.dark-mode .sidebar,
body.dark .sidebar {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border-right: 1px solid rgba(148, 163, 184, 0.1);
}

body.dark-mode .sidebar-menu-item,
body.dark .sidebar-menu-item {
    color: #cbd5e1;
}

body.dark-mode .sidebar-menu-item:hover,
body.dark .sidebar-menu-item:hover,
body.dark-mode .sidebar-menu-item.active,
body.dark .sidebar-menu-item.active {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
}

body.dark-mode .main-content,
body.dark .main-content {
    background-color: transparent;
}

body.dark-mode .container,
body.dark .container {
    background-color: transparent;
}

body.dark-mode .card,
body.dark .card {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(148, 163, 184, 0.15);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(148, 163, 184, 0.1);
}

body.dark-mode .card h2,
body.dark .card h2 {
    color: #f8fafc;
    border-color: rgba(148, 163, 184, 0.2);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

body.dark-mode .tab-content h3,
body.dark .tab-content h3,
body.dark-mode .form-section h4,
body.dark .form-section h4 {
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.15);
}

body.dark-mode label,
body.dark label {
    color: #e2e8f0;
    font-weight: 500;
}

/* Form inputs - Much clearer visibility */
body.dark-mode input[type="text"],
body.dark input[type="text"],
body.dark-mode input[type="number"],
body.dark input[type="number"],
body.dark-mode textarea,
body.dark textarea,
body.dark-mode select,
body.dark select {
    background-color: #1e293b;
    border: 2px solid #334155;
    color: #f1f5f9;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

body.dark-mode input[type="text"]::placeholder,
body.dark input[type="text"]::placeholder,
body.dark-mode textarea::placeholder,
body.dark textarea::placeholder {
    color: #64748b;
}

body.dark-mode input[type="text"]:focus,
body.dark input[type="text"]:focus,
body.dark-mode input[type="number"]:focus,
body.dark input[type="number"]:focus,
body.dark-mode textarea:focus,
body.dark textarea:focus,
body.dark-mode select:focus,
body.dark select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.2);
    background-color: #1e293b;
    outline: none;
}

/* Select dropdown arrow fix */
body.dark-mode select,
body.dark select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* Tabs */
body.dark-mode .tab-buttons,
body.dark .tab-buttons {
    border-bottom: 2px solid #334155;
    background: rgba(30, 41, 59, 0.5);
}

body.dark-mode .tab-button,
body.dark .tab-button {
    color: #94a3b8;
    background-color: transparent;
    border-radius: 8px 8px 0 0;
    transition: all 0.2s ease;
}

body.dark-mode .tab-button:hover,
body.dark .tab-button:hover {
    color: #e2e8f0;
    background-color: rgba(99, 102, 241, 0.1);
}

body.dark-mode .tab-button.active,
body.dark .tab-button.active {
    color: #a5b4fc;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.2) 0%, transparent 100%);
    border-bottom: 3px solid #6366f1;
    box-shadow: 0 -4px 20px rgba(99, 102, 241, 0.2);
}

/* Subcategory sections */
body.dark-mode .subcategory-section,
body.dark .subcategory-section {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-left: 4px solid #6366f1;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Form sections */
body.dark-mode .form-section,
body.dark .form-section {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

/* Image preview */
body.dark-mode .image-preview,
body.dark .image-preview {
    border: 2px dashed #475569;
    background-color: #1e293b;
}

body.dark-mode .image-preview:hover,
body.dark .image-preview:hover {
    border-color: #6366f1;
    background-color: rgba(99, 102, 241, 0.1);
}

/* Help text */
body.dark-mode .help-text,
body.dark .help-text,
body.dark-mode small,
body.dark small {
    color: #94a3b8;
}

/* Category buttons */
body.dark-mode .category-btn,
body.dark .category-btn {
    background: #1e293b;
    border: 2px solid #475569;
    color: #e2e8f0;
    transition: all 0.2s ease;
}

body.dark-mode .category-btn:hover,
body.dark .category-btn:hover {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
}

body.dark-mode .category-btn.active,
body.dark .category-btn.active,
body.dark-mode .category-btn.selected,
body.dark .category-btn.selected {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-color: #6366f1;
    color: #fff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* Color bubbles */
body.dark-mode .color-bubble,
body.dark .color-bubble {
    background: #1e293b;
    border: 1px solid #475569;
    color: #e2e8f0;
}

body.dark-mode .color-bubble .remove-color,
body.dark .color-bubble .remove-color {
    color: #f87171;
}

/* Size chips */
body.dark-mode .size-chip,
body.dark .size-chip {
    background: #1e293b;
    border: 2px solid #475569;
    color: #e2e8f0;
}

body.dark-mode .size-chip:hover,
body.dark .size-chip:hover {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.15);
}

body.dark-mode .size-chip.selected,
body.dark .size-chip.selected {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-color: #6366f1;
    color: #fff;
}

/* Submit buttons */
body.dark-mode button[type="submit"],
body.dark button[type="submit"] {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    color: #fff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

body.dark-mode button[type="submit"]:hover,
body.dark button[type="submit"]:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
    transform: translateY(-2px);
}

/* Success message */
body.dark-mode #success-message,
body.dark #success-message {
    background: linear-gradient(135deg, #065f46 0%, #047857 100%);
    border: 1px solid #10b981;
    color: #d1fae5;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* Test fill button */
body.dark-mode .test-fill-btn,
body.dark .test-fill-btn {
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
    border: none;
    color: #fff;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

body.dark-mode .test-fill-btn:hover,
body.dark .test-fill-btn:hover {
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
    box-shadow: 0 6px 15px rgba(20, 184, 166, 0.4);
}

/* Shop select dropdown */
body.dark-mode .shop-select,
body.dark .shop-select {
    background-color: #1e293b;
    border: 2px solid #475569;
    color: #e2e8f0;
}

body.dark-mode .shop-select:focus,
body.dark .shop-select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.25);
}

/* Scrollbar styling for dark mode */
body.dark-mode ::-webkit-scrollbar,
body.dark ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

body.dark-mode ::-webkit-scrollbar-track,
body.dark ::-webkit-scrollbar-track {
    background: #1e293b;
}

body.dark-mode ::-webkit-scrollbar-thumb,
body.dark ::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 4px;
}

body.dark-mode ::-webkit-scrollbar-thumb:hover,
body.dark ::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Checkbox styling */
body.dark-mode input[type="checkbox"],
body.dark input[type="checkbox"] {
    accent-color: #6366f1;
}

/* ============================================
   Dynamic Size Selector Styles
   ============================================ */

.dynamic-size-selector {
    margin-top: 8px;
}

.size-hint {
    color: #6b7280;
    font-size: 13px;
    font-style: italic;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px dashed #d1d5db;
    text-align: center;
}

body.dark-mode .size-hint,
body.dark .size-hint {
    color: #9ca3af;
    background: #020617;
    border-color: #374151;
}

/* Size chip tooltip styling */
.size-chip[title] {
    position: relative;
}

.size-chip[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.size-chip[title]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1f2937;
    margin-bottom: 0;
    z-index: 1001;
}

/* Improved size chips for category-specific sizes */
.size-chip.category-specific {
    min-width: auto;
    padding: 0 12px;
}

/* Waist and EU size chips need more space */
.size-chip[data-size^="Waist"],
.size-chip[data-size^="EU"] {
    min-width: 70px;
}

/* Age-based size chips for kids */
.size-chip[data-size*="Years"] {
    min-width: 90px;
    font-size: 12px;
}