:root {
    --primary-color: #e9168c; /* Magenta aus dem Screenshot */
    --secondary-color: #111111; /* Schwarz für Text */
    --background-color: #ffffff;
    --text-color: #333;
    --border-color: #e0e0e0;
    --hover-color: #f5f5f5;
    --shadow-color: rgba(0, 0, 0, 0.05);
    --sidebar-width: 350px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.container {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    padding: 1rem 2rem;
    background-color: white;
    color: var(--secondary-color);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 2rem;
}

.header-logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.logo-image {
    max-height: 35px;
    width: auto;
}

/* Header Help Section */
.header-help {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.help-contact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.help-contact i.fa-question-circle {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.help-text {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    margin-right: 0.5rem;
}

.help-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.help-phone i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.help-phone:hover {
    color: var(--primary-color);
    transform: translateX(2px);
}

.help-cta-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #E91E63 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 3px 12px rgba(233, 30, 99, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.help-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(233, 30, 99, 0.35);
}

.help-cta-btn i {
    font-size: 0.9rem;
}

.header-logo span {
    color: var(--primary-color);
}

h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

main {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.configurator {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.controls {
    width: var(--sidebar-width);
    background: white;
    padding: 1.5rem 1.5rem 0.5rem 1.5rem; /* Reduziertes Bottom-Padding */
    overflow-y: auto;
    overflow-x: hidden;
    border-right: 1px solid var(--border-color);
    display: block; /* Geändert von flex zu block */
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.03);
    position: relative;
    z-index: 1;
    max-height: calc(100vh - 70px); /* Begrenzt auf Viewport minus Header */
    flex-shrink: 0; /* Verhindert Schrumpfen im Flex-Container */
}

.control-group {
    background: white;
    padding: 1.2rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px var(--shadow-color);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    margin-bottom: 1.5rem; /* Ersetzt das gap vom flex-container */
}

/* Letztes Control-Group Element in jedem Bereich hat keinen Abstand nach unten */
#lightbox-controls > .control-group:last-child,
#channelLetters-controls > .control-group:last-child,
.controls > .control-group:last-child {
    margin-bottom: 0.5rem !important; /* Minimal spacing am Ende */
}

/* Die Container selbst sollten auch keinen zusätzlichen Abstand haben */
#lightbox-controls,
#channelLetters-controls {
    margin: 0;
    padding: 0;
    display: block;
}

/* Letztes control-group Element hat reduzierten Abstand */
#lightbox-controls .control-group:last-of-type,
#channelLetters-controls .control-group:last-of-type {
    margin-bottom: 0.5rem !important;
}


.control-group:hover {
    box-shadow: 0 4px 8px var(--shadow-color);
    transform: translateY(-2px);
}

.control-group:active {
    transform: translateY(0);
}

.control-group h2 {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    color: var(--secondary-color);
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.control-group h2 i {
    color: var(--primary-color);
    font-size: 1.05rem;
}

.control-group h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

.input-group {
    margin-bottom: 1.2rem;
}

.input-group:last-child {
    margin-bottom: 0;
}

label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.95rem;
}

input[type="number"],
input[type="text"],
select {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

input[type="number"]:hover,
input[type="text"]:hover,
select:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

input[type="number"]:focus,
input[type="text"]:focus,
select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.15), 0 4px 8px rgba(0,0,0,0.15);
    background-color: white;
    transform: translateY(-1px);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    cursor: pointer;
    padding: 0.8rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    background-color: #f9f9f9;
    margin-bottom: 0;
}

.radio-group label:hover {
    background-color: #f0f0f0;
}

.radio-group input[type="radio"]:checked + span {
    color: var(--primary-color);
    font-weight: 600;
}

.radio-group label span {
    transition: all 0.2s ease;
}

input[type="radio"] {
    width: 1.3rem;
    height: 1.3rem;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.preview {
    flex: 2;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

#canvas-container {
    width: 100%;
    flex: 1;
    position: relative;
    overflow: hidden;
}

#canvas-container canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.summary {
    position: absolute;
    bottom: 0;
    right: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 2rem;
    border-top-left-radius: 20px;
    box-shadow: -4px -4px 20px rgba(0, 0, 0, 0.08), 0 8px 32px rgba(0, 0, 0, 0.04);
    min-width: 320px;
    max-width: 400px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Toggle Button */
.summary-header {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.summary-toggle {
    background: linear-gradient(135deg, var(--primary-color) 0%, #E91E63 100%);
    color: white;
    border: 3px solid white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(233, 30, 99, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.summary-toggle:hover {
    transform: scale(1.15) translateY(-2px);
    box-shadow: 0 6px 24px rgba(233, 30, 99, 0.4);
}

.summary-toggle i {
    font-size: 18px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Collapsed state: Icon zeigt nach oben */
.summary.collapsed .summary-toggle i {
    transform: rotate(0deg);
}

/* Expanded state: Icon zeigt nach unten */
.summary:not(.collapsed) .summary-toggle i {
    transform: rotate(180deg);
}

/* Immer sichtbarer Bereich */
.summary-always-visible {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Hinweis-Text - dezent und modern */
.summary-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0.625rem 1rem;
    background: transparent;
    border-radius: 8px;
    font-size: 0.8125rem;
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    letter-spacing: 0.02em;
}

.summary-hint i {
    color: var(--primary-color);
    font-size: 0.875rem;
    opacity: 0.7;
}

/* Hinweis-Text im expanded state */
.summary:not(.collapsed) .summary-hint {
    color: #888;
}

.summary:not(.collapsed) .summary-hint i {
    opacity: 0.5;
}

/* Aufklappbarer Bereich */
.summary-collapsible {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, margin-top 0.3s ease;
    margin-top: 0;
}

/* Expanded state */
.summary:not(.collapsed) .summary-collapsible {
    max-height: 500px;
    opacity: 1;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    overflow-y: auto;
}

.summary h2 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 10px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.summary h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

.price {
    margin: 0;
    text-align: center;
    position: relative;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.price:before {
    content: 'Gesamtpreis';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 0 0.75rem;
    font-size: 0.75rem;
    color: #999;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

#total-price {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color) 0%, #E91E63 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 0.25rem 0;
    letter-spacing: -0.02em;
}

.price-note {
    font-size: 0.75rem;
    color: #999;
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.9rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--border-color);
}

.summary-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.summary-label {
    color: #666;
    font-weight: 500;
}

.summary-value {
    font-weight: 600;
    color: var(--secondary-color);
}

/* PDF Export Button */
.export-pdf-btn {
    width: 100%;
    padding: 1.125rem 1.75rem;
    margin-top: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #E91E63 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    box-shadow: 0 4px 16px rgba(233, 30, 99, 0.3);
    position: relative;
    overflow: hidden;
}

.export-pdf-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.export-pdf-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(233, 30, 99, 0.4);
}

.export-pdf-btn:hover:before {
    left: 100%;
}

.export-pdf-btn:active {
    transform: translateY(-1px);
}

.export-pdf-btn i {
    font-size: 1.2rem;
}

@media (max-width: 767px) {
    :root {
        --sidebar-width: 100%;
    }

    .configurator {
        flex-direction: column;
    }

    .controls {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .summary {
        left: 0;
        border-radius: 0;
        border-left: none;
    }
}

/* Animation for price updates */
@keyframes priceUpdate {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.price-update {
    animation: priceUpdate 0.3s ease;
}

.price-loading {
    color: var(--primary-color);
    font-style: italic;
    opacity: 0.8;
}

.price-error {
    color: #dc3545;
    font-weight: bold;
}

.api-error {
    color: #856404;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    padding: 0.75rem;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    text-align: left;
    line-height: 1.4;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.api-error strong {
    color: #856404;
}

.api-error small {
    color: #6c757d;
    font-style: italic;
}

.dimension-warning {
    color: #856404;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    padding: 0.75rem;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    text-align: left;
    line-height: 1.4;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dimension-warning strong {
    color: #856404;
}

.dimension-warning small {
    color: #6c757d;
    font-style: italic;
}

/* SVG Loading Bar Styles - Full Screen Overlay */
.svg-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

/* PDF Generation Loading Overlay */
.pdf-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease-in-out;
}

.pdf-loading-overlay.show {
    display: flex;
}

.pdf-loading-content {
    background: white;
    padding: 3rem 2.5rem;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    text-align: center;
    min-width: 350px;
    max-width: 450px;
    animation: slideUp 0.3s ease-out;
}

.pdf-loading-spinner {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.pdf-loading-content h3 {
    margin: 0 0 0.5rem 0;
    color: #1a1a1a;
    font-size: 1.5rem;
    font-weight: 600;
}

.pdf-loading-content p {
    margin: 0;
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
}

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

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

.svg-loading-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    min-width: 300px;
    max-width: 400px;
}

.svg-loading-bar {
    width: 100%;
    height: 12px;
    background: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
}

.svg-loading-bar.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #007bff 25%, 
        #0056b3 50%, 
        #007bff 75%, 
        transparent 100%);
    animation: loading-shimmer 2s infinite;
}

@keyframes loading-shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.svg-loading-text {
    text-align: center;
    color: #495057;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.svg-progress-text {
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
    font-style: italic;
}

.loading-spinner {
    display: inline-block;
    margin-right: 0.5rem;
    animation: spin 1s linear infinite;
    font-size: 1.2rem;
}

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

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    background-color: white;
    margin: 5vh auto;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-header {
    padding: 1rem 1.5rem;
    background-color: white;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 1.2rem;
}

.close-button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #777;
}

.close-button:hover {
    color: var(--primary-color);
}

.modal-body {
    padding: 1.5rem;
    max-height: calc(90vh - 130px);
    overflow-y: auto;
}

#imageEditor {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}

#konvaContainer {
    width: 100%;
    height: 400px;
    background-color: #f9f9f9;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 0 1px var(--border-color);
}

.drawing-area {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px dashed var(--primary-color);
    pointer-events: none;
}

.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 4px;
    align-items: center;
}

.editor-toolbar button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background-color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.editor-toolbar button:hover {
    border-color: var(--primary-color);
    background-color: #f5f5f5;
}

.slider-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 150px;
}

.slider-container label {
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

.slider-container input[type="range"] {
    width: 100%;
    height: 5px;
    -webkit-appearance: none;
    appearance: none;
    background: #ddd;
    outline: none;
    border-radius: 5px;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
}

.slider-container input[type="range"]::-moz-range-thumb {
    width: 15px;
    height: 15px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.upload-area {
    height: 200px;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-area.drag-over {
    border-color: var(--primary-color);
    background-color: rgba(233, 22, 140, 0.05);
}

.upload-message {
    text-align: center;
    color: #777;
}

.upload-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #999;
}

.upload-button {
    display: inline-block;
    background-color: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.upload-button:hover {
    background-color: var(--primary-color);
    color: white;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.modal-footer button {
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.primary:hover {
    background-color: #d5157e;
}

button {
    background-color: white;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

button:hover {
    background-color: #f5f5f5;
}

.control-group button.upload-button {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.9rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.control-group button.upload-button:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(233, 22, 140, 0.2);
}

.control-group button.upload-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(233, 22, 140, 0.2);
}

.control-group button.upload-button i {
    font-size: 1.2rem;
}

/* Farbauswahl-Komponente */
.color-selector {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.color-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    background-color: #f9f9f9;
    flex: 1;
    min-width: 70px;
    position: relative;
}

.color-option:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.color-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
    z-index: 1;
    top: 0;
    left: 0;
}

.color-option input[type="radio"]:checked + .color-preview {
    transform: scale(1.1);
    box-shadow: 0 0 0 3px white, 0 0 0 5px var(--primary-color);
}

.color-option input[type="radio"]:checked ~ .color-name {
    color: var(--primary-color);
    font-weight: 600;
}

.color-preview {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-bottom: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.black-color {
    background-color: #1a1a1a;
}

.silver-color {
    background-color: #c0c0c0;
    background-image: linear-gradient(135deg, #c0c0c0 0%, #e0e0e0 50%, #c0c0c0 100%);
}

.white-color {
    background-color: #f8f8f8;
    border: 1px solid #E0E0E0;
}

.color-name {
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 4px;
    transition: all 0.2s ease;
}



/* Perspektivensteuerung */
.perspective-control {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 12px 10px;
    border-radius: 12px;
    z-index: 100;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
}

.perspective-button {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: #333;
    padding: 8px 10px;
    cursor: pointer;
    font-size: 13px;
    min-width: 90px;
    transition: all 0.2s ease;
    text-align: center;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.perspective-button img {
    width: 18px;
    height: 18px;
}

.perspective-button:hover {
    background-color: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.perspective-button.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Upload area styling */
#dropZone {
    width: 100%;
    height: 350px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    text-align: center;
    background-color: #f9f9f9;
    position: relative;
}

#dropZone:hover {
    border-color: #aaa;
    background-color: #f5f5f5;
}

.upload-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

.upload-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    opacity: 0.6;
}

#dropZone i {
    font-size: 64px;
    color: #aaa;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

#dropZone p {
    color: #666;
    font-size: 18px;
    margin: 0;
    line-height: 1.5;
    max-width: 80%;
}

#dropZone.drag-over {
    border-color: var(--primary-color);
    background-color: rgba(233, 22, 140, 0.05);
}

#dropZone.drag-over i, 
#dropZone.drag-over .upload-icon {
    color: var(--primary-color);
    opacity: 1;
    transform: scale(1.1);
}

/* Shape options */
.shape-options {
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.shape-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.2s ease;
    background-color: #f9f9f9;
    flex: 1;
    min-width: 120px;
    position: relative;
}

.shape-option:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.shape-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.shape-option input[type="radio"]:checked + .shape-preview {
    border-color: var(--primary-color);
    background-color: rgba(233, 22, 140, 0.1);
}

.shape-option input[type="radio"]:checked ~ .shape-name {
    color: var(--primary-color);
    font-weight: 600;
}

.shape-preview {
    width: 70px;
    height: 50px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border: 2px solid var(--border-color);
    transition: all 0.2s ease;
}

.rectangle-preview {
    border-radius: 4px;
}

.round-preview {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.shape-name {
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 4px;
    text-align: center;
    transition: all 0.2s ease;
    line-height: 1.2;
}

/* Lighting Options */
.lighting-options {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 0.5rem;
}

.lighting-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 1rem 0.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid transparent;
}

.lighting-option:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.lighting-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.lighting-option input[type="radio"]:checked + .lighting-preview {
    box-shadow: 0 0 0 2px var(--primary-color);
}

.lighting-option input[type="radio"]:checked ~ .lighting-name {
    color: var(--primary-color);
    font-weight: 600;
}

.lighting-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background-color: white;
    border-radius: 50%;
    margin-bottom: 0.8rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.lighting-preview i {
    font-size: 1.5rem;
    color: #FFD700; /* Gold color for lightbulb */
}

.lighting-name {
    font-size: 0.9rem;
    text-align: center;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-top: 0.3rem;
}

/* Variant Options */
.variant-options {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 0.5rem;
}

.variant-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 1rem 0.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid transparent;
}

.variant-option:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.variant-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.variant-option input[type="radio"]:checked + .variant-preview {
    box-shadow: 0 0 0 2px var(--primary-color);
}

.variant-option input[type="radio"]:checked ~ .variant-name {
    color: var(--primary-color);
    font-weight: 600;
}

.variant-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background-color: white;
    border-radius: 50%;
    margin-bottom: 0.8rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.variant-preview i {
    font-size: 1.5rem;
    color: #555;
}

.variant-name {
    font-size: 0.9rem;
    text-align: center;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-top: 0.3rem;
}

/* Day/Night toggle button */
.day-night-toggle {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.day-night-toggle:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: translateX(-50%) translateY(-2px);
}

.day-night-toggle.night-mode {
    background-color: rgba(255, 255, 255, 0.8);
    color: #333;
}

.day-night-toggle.night-mode:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

/* Mobile Optimierungen */
@media (max-width: 767px) {
    /* Header: Help-Section ausblenden auf Mobile */
    .header-help {
        display: none;
    }
    
    header {
        padding: 1rem;
        height: 60px;
    }
    
    /* Grundlegendes Layout */
    body {
        overflow: hidden;
        position: fixed;
        height: 100vh;
        width: 100vw;
    }
    
    html {
        position: fixed;
        height: 100vh;
        width: 100vw;
        overflow: hidden;
    }
    
    .container {
        height: 100vh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    
    main {
        display: flex;
        flex-direction: column;
        flex: 1;
        overflow: visible;
        height: auto;
    }
    
    /* Desktop-Summary-Toggle auf Mobile ausblenden */
    .summary-toggle,
    .summary-header {
        display: none !important;
    }
    
    /* Mobile: Summary immer expanded, normale Bottom-Sheet-Logik */
    .summary.collapsed .summary-collapsible,
    .summary:not(.collapsed) .summary-collapsible {
        max-height: none;
        opacity: 1;
        overflow: visible;
    }
    
    .summary-always-visible {
        display: none; /* Auf Mobile wird das über mobile-buttons-container gesteuert */
    }
    
    .configurator {
        flex-direction: column;
        height: auto;
        overflow: visible;
        display: flex;
    }
    
    /* Vorschau-Bereich */
    .preview {
        width: 100%;
        height: 50vh;
        position: relative;
        flex: 0 0 auto;
        order: 1;
        border-bottom: 1px solid var(--border-color);
        margin-bottom: 0;
    }
    
    #canvas-container {
        width: 100%;
        height: 100%;
        min-height: 0;
        position: relative;
        overflow: hidden;
        border-radius: 0;
        background-color: #f5f5f5;
    }
    
    /* Zusammenfassung */
    .summary {
        display: none; /* Initial ausblenden */
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 200;
        max-height: 70vh;
        overflow-y: auto;
        background-color: white;
        width: 100%;
        border-radius: 15px 15px 0 0;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
        padding: 1rem;
        transform: translateY(100%);
        transition: transform 0.3s ease;
    }
    
    .summary.visible {
        transform: translateY(0);
        display: block;
    }
    
    /* Licht-Toggle-Button */
    .day-night-toggle {
        position: absolute;
        left: 50%;
        right: auto;
        bottom: 15px;
        transform: translateX(-50%);
        z-index: 100;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        padding: 10px 20px;
        border-radius: 30px;
        font-size: 14px;
        background-color: rgba(0,0,0,0.8);
    }
    
    /* Kontroll-Bereich */
    .controls {
        width: 100%;
        border-right: none;
        padding: 0;
        order: 2;
        flex: 1;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        max-height: calc(50vh - 70px);
    }
    
    /* Bottom-Navigation verbessern */
    .control-tabs {
        display: flex;
        width: 100%;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: white;
        box-shadow: 0 -3px 10px rgba(0,0,0,0.1);
        z-index: 100;
        height: 70px;
        padding: 0 4px;
        margin: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-top: 1px solid rgba(0,0,0,0.05);
        gap: 2px;
    }
    
    .control-tab {
        flex: 1;
        min-width: 80px;
        max-width: 120px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 8px 2px;
        font-size: 9px;
        font-weight: 500;
        color: #666;
        border-bottom: 0;
        transition: all 0.2s ease;
        position: relative;
        gap: 4px;
        line-height: 1.1;
    }
    
    .control-tab i {
        font-size: 22px;
        color: #888;
        transition: all 0.2s ease;
        flex-shrink: 0;
    }
    
    .control-tab span {
        line-height: 1.2;
        word-break: break-word;
        max-width: 100%;
    }
    
    .control-tab.active {
        color: var(--primary-color);
        background-color: transparent;
    }
    
    .control-tab.active i {
        color: var(--primary-color);
    }
    
    .control-tab.active:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 3px;
        background-color: var(--primary-color);
        border-radius: 3px 3px 0 0;
    }
    
    /* Kontrollelemente anpassen */
    .control-group {
        display: none;
        padding: 1.5rem 1rem 1rem; /* Kein extra padding-bottom mehr */
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        border: none;
        background-color: #f9f9f9;
        min-height: calc(100vh - 50vh - 70px);
    }
    
    /* Aktive/Inaktive Tabs */
    .mobile-active-tab {
        display: block;
        overflow-y: auto;
        overflow-x: hidden;
        max-height: calc(50vh - 140px); /* 70px Tabs + 60px Button-Leiste + 10px Spacing */
        padding: 1rem;
        padding-bottom: 160px !important; /* Genug Platz für Button-Leiste + Sicherheitsabstand */
        -webkit-overflow-scrolling: touch;
    }
    
    .mobile-hidden-tab {
        display: none;
    }
    
    /* Scroll-Container für mobile Control-Groups */
    .controls .control-group {
        padding: 1rem;
    }
    
    .controls .control-group:first-child {
        padding: 0.75rem;
    }
    
    /* Größere Touch-Targets */
    .shape-option, 
    .lighting-option, 
    .variant-option, 
    .color-option,
    .wall-mount-option {
        min-height: 80px;
        padding: 15px;
    }
    
    /* Größere Formvorschau */
    .shape-preview {
        width: 100px;
        height: 70px;
        border-width: 3px;
    }
    
    .round-preview {
        width: 70px;
        height: 70px;
    }
    
    /* Input-Felder */
    .input-group label {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
    
    input[type="number"],
    input[type="text"],
    select {
        height: 50px;
        font-size: 16px;
        border-radius: 10px;
        padding: 12px 16px;
        border: 2px solid #e0e0e0;
        background-color: white;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
    }
    
    input[type="number"]:hover,
    select:hover {
        border-color: #007bff;
        background-color: #f8f9fa;
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    }
    
    input[type="number"]:focus,
    select:focus {
        outline: none;
        border-color: #007bff;
        box-shadow: 0 0 0 3px rgba(0,123,255,0.15), 0 4px 8px rgba(0,0,0,0.15);
        background-color: white;
        transform: translateY(-1px);
    }
    
    /* Bild-Upload-Button */
    .control-group button.upload-button {
        height: 60px;
        border-radius: 10px;
    }
    
    /* Button-Container für Preis - direkt über Tab-Menü */
    .mobile-buttons-container {
        position: fixed;
        bottom: 70px; /* Direkt über den Tabs (70px hoch) */
        left: 0;
        right: 0;
        z-index: 90;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 8px 15px;
        background-color: white;
        border-top: 1px solid rgba(0,0,0,0.08);
        box-shadow: 0 -2px 8px rgba(0,0,0,0.06);
    }
    
    /* Geteilter Button Container */
    .mobile-button-split {
        display: flex;
        width: 100%;
        gap: 8px;
        align-items: center;
    }
    
    /* Linker Teil: Preisanzeige */
    .price-display {
        flex: 1;
        background-color: white;
        border-radius: 20px;
        padding: 10px 14px;
        font-size: 14px;
        line-height: 1.2;
        box-shadow: 0 2px 6px rgba(0,0,0,0.12);
        color: var(--primary-color);
        font-weight: bold;
        white-space: nowrap;
        border: 1px solid rgba(0,0,0,0.05);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        cursor: pointer;
        transition: all 0.2s ease;
        height: 44px;
        box-sizing: border-box;
    }
    
    .price-display .price-icon {
        font-size: 14px;
    }
    
    .price-display .price-value:after {
        content: ' ↑';
        margin-left: 4px;
        font-size: 14px;
        transition: transform 0.3s ease;
        display: inline-block;
    }
    
    .price-display.summary-open .price-value:after {
        transform: rotate(180deg);
    }
    
    .price-display:hover, .price-display:active {
        transform: translateY(-2px);
        box-shadow: 0 5px 12px rgba(0,0,0,0.2);
    }
    
    /* Rechter Teil: CTA Button in Magenta */
    .mobile-cta-btn {
        flex: 1;
        background: linear-gradient(135deg, #E91E63 0%, #C2185B 100%);
        color: white;
        border: none;
        border-radius: 20px;
        padding: 10px 14px;
        font-size: 14px;
        line-height: 1.2;
        font-weight: bold;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        cursor: pointer;
        transition: all 0.2s ease;
        box-shadow: 0 2px 6px rgba(233, 30, 99, 0.3);
        white-space: nowrap;
        height: 44px;
        box-sizing: border-box;
    }
    
    .mobile-cta-btn:hover, .mobile-cta-btn:active {
        transform: translateY(-2px);
        box-shadow: 0 5px 12px rgba(233, 30, 99, 0.4);
        background: linear-gradient(135deg, #F50057 0%, #E91E63 100%);
    }
    
    .mobile-cta-btn i {
        font-size: 14px;
    }
    
    /* Mehr Platz für die Tabs - wird jetzt über mobile-active-tab gehandhabt */
    /* .control-group padding-bottom entfernt - stattdessen mobile-active-tab */
    
    /* Export-Button im mobilen Layout */
    .export-pdf-btn {
        padding: 0.9rem 1.2rem;
        font-size: 0.95rem;
    }
    
    /* Modal-Anpassungen */
    .modal-content {
        width: 95%;
        max-width: none;
        margin: 5vh auto;
        max-height: 90vh;
    }
    
    .editor-toolbar {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .editor-toolbar button {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    /* Größere Slider für Touch */
    .slider-container input[type="range"] {
        height: 40px;
    }
    
    .slider-container input[type="range"]::-webkit-slider-thumb {
        width: 24px;
        height: 24px;
    }
    
    .slider-container input[type="range"]::-moz-range-thumb {
        width: 24px;
        height: 24px;
    }
    
    /* Touch-Gesten-Hinweis bei erstem Laden */
    .mobile-gesture-hint {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background-color: rgba(0,0,0,0.7);
        color: white;
        padding: 15px 20px;
        border-radius: 10px;
        font-size: 14px;
        text-align: center;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.3s ease;
        animation: fadeInOut 3s ease-in-out forwards;
        z-index: 30;
        max-width: 80%;
    }
    
    @keyframes fadeInOut {
        0% { opacity: 0; }
        20% { opacity: 1; }
        80% { opacity: 1; }
        100% { opacity: 0; }
    }
    
    /* 3D-Bedienelemente für Touch optimieren */
    #canvas-container:after {
        content: '';
        position: absolute;
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23999"><path d="M10 9h4V6h3l-5-5-5 5h3v3zm-1 1H6V7l-5 5 5 5v-3h3v-4zm14 2l-5-5v3h-3v4h3v3l5-5zm-9 3h-4v3H7l5 5 5-5h-3v-3z"/></svg>');
        background-size: contain;
        opacity: 0.5;
        pointer-events: none;
    }
    
    /* Vertikale Perspektivensteuerung */
    .perspective-control {
        position: absolute;
        top: 50%;
        right: 10px;
        transform: translateY(-50%);
        display: flex;
        flex-direction: column;
        gap: 10px;
        background-color: rgba(255, 255, 255, 0.95);
        padding: 10px 8px;
        border-radius: 15px;
        z-index: 100;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        border: 1px solid var(--border-color);
    }
    
    .perspective-button {
        background: white;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        color: #333;
        padding: 8px;
        cursor: pointer;
        font-size: 12px;
        min-width: 0;
        width: 40px;
        height: 40px;
        transition: all 0.2s ease;
        text-align: center;
        font-weight: 500;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .perspective-button:hover {
        background-color: #f5f5f5;
        transform: translateX(-2px);
        box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    }
    
    .perspective-button.active {
        background-color: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
    }
}

/* Add these styles for the new product type selector */
.product-type-options {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.product-type-option {
    flex: 1;
    min-width: calc(33.333% - 10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 10px 8px;
    border-radius: 10px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.1);
}

.product-type-option:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.product-type-option input {
    position: absolute;
    opacity: 0;
}

.product-type-option input:checked + .product-type-preview {
    border-color: #e9168c;
    color: #e9168c;
}

.product-type-option input:checked ~ .product-type-name {
    color: #e9168c;
    font-weight: bold;
}

.product-type-preview {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #888;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 28px;
    color: #666;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.2);
    position: relative;
}

/* Dekupiert Icon - Buchstabe im Kasten */
.product-type-preview .fa-square {
    font-size: 32px;
}

.product-type-preview .dekupiert-inner-icon {
    position: absolute;
    font-size: 16px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.product-type-name {
    font-size: 13px;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1.2;
}

/* Font Selector */
.font-selector-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Font search functionality removed */

.font-dropdown-container {
    position: relative;
}

.font-selector {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 16px center;
    background-repeat: no-repeat;
    background-size: 18px;
    padding-right: 50px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.font-selector:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.15), 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

.font-preview-container {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 16px;
}

.font-preview-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.font-preview-text span {
    font-size: 24px;
    font-weight: 400;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.2;
}

.font-preview-text small {
    font-size: 12px;
    color: #666;
    font-weight: normal;
}

.font-loading-indicator {
    text-align: center;
    color: #666;
    font-size: 14px;
    padding: 8px;
}

.font-loading-indicator i {
    margin-right: 8px;
}

/* Google Fonts specific styling */
.google-font-option {
    font-family: inherit;
}

/* TTF Font Upload Styles */
.font-upload-container {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.font-upload-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #ffffff;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    transition: all 0.3s ease;
}

.font-upload-header:hover {
    background: #f8f9fa;
}

.font-upload-title {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
}

.toggle-font-upload-btn {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.toggle-font-upload-btn:hover {
    background: #e9ecef;
    color: #495057;
}

.toggle-font-upload-btn i {
    transition: transform 0.3s ease;
}

.toggle-font-upload-btn.expanded i {
    transform: rotate(180deg);
}

.font-upload-section {
    padding: 16px;
    background: #ffffff;
}

.font-drop-zone {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
    position: relative;
}

.font-drop-zone:hover {
    border-color: var(--primary-color);
    background: rgba(233, 22, 140, 0.05);
}

.font-drop-zone.drag-over {
    border-color: var(--primary-color);
    background: rgba(233, 22, 140, 0.1);
    transform: scale(1.02);
}

.font-upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.font-upload-content i {
    font-size: 2.5rem;
    color: #6c757d;
    transition: all 0.3s ease;
}

.font-drop-zone:hover .font-upload-content i {
    color: var(--primary-color);
    transform: scale(1.1);
}

.font-upload-content p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    line-height: 1.4;
}

.font-file-types {
    font-size: 12px;
    color: #6c757d;
    font-style: italic;
}

.font-upload-progress {
    margin-top: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #ff6b9d);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    font-size: 14px;
    color: #495057;
    text-align: center;
    font-weight: 500;
}

.font-upload-preview {
    margin-top: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.font-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.font-preview-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
}

.remove-font-btn {
    background: none;
    border: 1px solid #dc3545;
    color: #dc3545;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.remove-font-btn:hover {
    background: #dc3545;
    color: white;
}

.font-preview-sample {
    text-align: center;
    padding: 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.font-preview-sample span {
    font-size: 20px;
    font-weight: 400;
    color: #333;
    display: block;
    margin-bottom: 4px;
    line-height: 1.2;
}

.font-preview-sample small {
    font-size: 12px;
    color: #6c757d;
    font-weight: normal;
}

/* Font categories */
.font-selector optgroup {
    font-weight: bold;
    color: #666;
    font-style: normal;
}

.font-selector option {
    padding: 8px;
    font-size: 14px;
}

/* Additional color options for channel letters */
.gold-color {
    background-color: #d4af37;
}

.red-color {
    background-color: #cc0000;
}

.blue-color {
    background-color: #003d82;
}

.anthracite-color {
    background-color: #2f2f2f;
}

.bronze-color {
    background-color: #8c6239;
}

/* Input Mode Selector */
.input-mode-selector {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.mode-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    position: relative;
}

.mode-option:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.mode-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
    z-index: 1;
    top: 0;
    left: 0;
}

.mode-option input[type="radio"]:checked + .mode-name {
    color: #e9168c;
    font-weight: bold;
}

.mode-option:has(input[type="radio"]:checked) {
    border-color: #e9168c;
    background-color: rgba(233, 22, 140, 0.1);
}

.mode-name {
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Wall Mount Options */
.wall-mount-options {
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.wall-mount-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.2s ease;
    background-color: #f9f9f9;
    flex: 1;
    min-width: 120px;
    position: relative;
}

.wall-mount-option:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.wall-mount-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
    z-index: 1;
    top: 0;
    left: 0;
}

.wall-mount-option input[type="radio"]:checked + .wall-mount-preview {
    background-color: rgba(233, 22, 140, 0.1);
    border-color: var(--primary-color);
}

.wall-mount-option input[type="radio"]:checked + .wall-mount-preview i {
    color: var(--primary-color);
}

.wall-mount-option input[type="radio"]:checked ~ .wall-mount-name {
    color: var(--primary-color);
    font-weight: 600;
}

.wall-mount-preview {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.wall-mount-preview i {
    font-size: 1.5rem;
    color: #666;
    transition: all 0.2s ease;
}

.wall-mount-name {
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 4px;
    text-align: center;
    transition: all 0.2s ease;
    line-height: 1.2;
}

/* Vector Upload Area */
.vector-upload-area {
    margin-top: 10px;
}

.vector-drop-zone {
    border: 2px dashed #888;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.05);
    position: relative;
}

.vector-drop-zone:hover {
    border-color: #e9168c;
    background-color: rgba(233, 22, 140, 0.1);
}

.vector-drop-zone.drag-over {
    border-color: #e9168c;
    background-color: rgba(233, 22, 140, 0.15);
    transform: scale(1.02);
}

.vector-upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.vector-upload-content i {
    font-size: 2.5rem;
    color: #888;
    transition: all 0.3s ease;
}

.vector-drop-zone:hover .vector-upload-content i {
    color: #e9168c;
}

.vector-upload-content p {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: #ccc;
}

/* Vector mode feedback styles */
.vector-drop-zone.needs-upload {
    border-color: var(--primary-color);
    background-color: rgba(233, 22, 140, 0.1);
    animation: pulse-warning 2s infinite;
}

.vector-drop-zone.needs-upload:hover {
    border-color: var(--primary-color);
    background-color: rgba(233, 22, 140, 0.15);
}

.vector-drop-zone.needs-upload .vector-upload-content i {
    color: var(--primary-color) !important;
}

.vector-drop-zone.needs-upload .vector-upload-content p {
    color: var(--text-color) !important;
    font-weight: 600 !important;
}

.vector-drop-zone.has-upload {
    border-color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
}

.vector-drop-zone.has-upload:hover {
    border-color: #28a745;
    background-color: rgba(40, 167, 69, 0.15);
}

.vector-drop-zone.has-upload .vector-upload-content i {
    color: #28a745 !important;
}

@keyframes pulse-warning {
    0% { box-shadow: 0 0 0 0 rgba(233, 22, 140, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(233, 22, 140, 0); }
    100% { box-shadow: 0 0 0 0 rgba(233, 22, 140, 0); }
}

.file-types {
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
}

.vector-preview {
    margin-top: 15px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 1rem;
    flex-wrap: wrap;
}

.preview-title {
    font-weight: 600;
    color: #e9168c;
    font-size: 1rem;
}

/* Preview Action Buttons Container */
.preview-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Preview Button Base Styles */
.preview-btn {
    padding: 10px 18px;
    border: 2px solid;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.preview-btn i {
    font-size: 0.95rem;
}

/* Primary Button (SVG bearbeiten) */
.preview-btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.preview-btn-primary:hover {
    background: #c91270;
    border-color: #c91270;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 22, 140, 0.4);
}

/* Secondary Button (Datei ändern) */
.preview-btn-secondary {
    background: white;
    border-color: #6b7280;
    color: #6b7280;
}

.preview-btn-secondary:hover {
    background: #6b7280;
    border-color: #6b7280;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

/* Mobile Responsive for Preview Buttons */
@media (max-width: 767px) {
    .preview-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .preview-actions {
        width: 100%;
    }
    
    .preview-btn {
        flex: 1;
        justify-content: center;
        font-size: 0.85rem;
        padding: 9px 14px;
    }
}

#vectorPreviewContainer {
    width: 100%;
    height: 120px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    overflow: hidden;
    position: relative;
}

#vectorPreviewContainer svg {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Responsive scaling for different aspect ratios */
#vectorPreviewContainer.wide-aspect svg {
    max-width: 100%;
    max-height: 85%;
    width: auto;
    height: auto;
}

#vectorPreviewContainer.tall-aspect svg {
    max-width: 85%;
    max-height: 100%;
    width: auto;
    height: auto;
}

#vectorPreviewContainer.square-aspect svg {
    max-width: 95%;
    max-height: 95%;
    width: auto;
    height: auto;
}

/* Enhanced SVG scaling for better preview */
#vectorPreviewContainer svg {
    transition: all 0.3s ease;
    transform-origin: center;
}

#vectorPreviewContainer:hover svg {
    transform: scale(1.05);
}

.vector-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #aaa;
}

#vectorFileName {
    font-weight: 500;
}

#vectorDimensions {
    font-style: italic;
}

/* Mobile adjustments */
@media (max-width: 767px) {
    /* Produkttyp-Auswahl als fester Header */
    .controls > .control-group:first-child {
        position: sticky;
        top: 0;
        z-index: 100;
        background: white;
        padding: 0.75rem;
        margin: 0;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .controls > .control-group:first-child h2 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .product-type-options {
        margin: 0;
        gap: 0.5rem;
        display: flex;
        justify-content: space-between;
    }
    
    .product-type-option {
        flex: 1;
        min-width: 0;
        padding: 0.5rem 0.25rem;
    }
    
    .product-type-preview {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .product-type-name {
        font-size: 0.75rem;
    }
    
    .font-option {
        width: calc(50% - 10px);
    }
    
    .input-mode-selector {
        flex-direction: column;
        gap: 10px;
    }
    
    .mode-option {
        padding: 10px 15px;
    }
    
    .vector-drop-zone {
        padding: 20px 15px;
    }
    
    /* Mobile vector preview adjustments */
    #vectorPreviewContainer {
        height: 100px;
    }
    
    #vectorPreviewContainer.wide-aspect svg {
        max-width: 100%;
        max-height: 80%;
    }
    
    #vectorPreviewContainer.tall-aspect svg {
        max-width: 80%;
        max-height: 100%;
    }
    
    #vectorPreviewContainer.square-aspect svg {
        max-width: 90%;
        max-height: 90%;
    }
    
    .vector-upload-content i {
        font-size: 2rem;
    }
}

/* 🎨 PROFESSIONAL RAL COLOR SELECTOR */

/* Color Type Selector */
.color-type-selector {
    display: flex;
    gap: 0.3rem;
    margin-bottom: 1.5rem;
    padding: 0.4rem;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.color-type-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0;
    border-radius: 6px;
    transition: all 0.2s ease;
    flex: 1;
    text-align: center;
    justify-content: center;
    background: transparent;
    position: relative;
}

.color-type-option:hover .color-type-name {
    background: #ffffff;
    color: #374151;
}

.color-type-option input[type="radio"] {
    display: none;
}

.color-type-option input[type="radio"]:checked + .color-type-name {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 107, 157, 0.3);
}

.color-type-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.2s ease;
    padding: 0.7rem 1rem;
    border-radius: 6px;
    background: transparent;
    width: 100%;
    text-align: center;
}

/* Search and Filter Container */
.ral-search-container {
    margin-bottom: 1.5rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
}

.ral-search-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #ffffff;
    color: #374151;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.ral-search-input::placeholder {
    color: #9ca3af;
}

.ral-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 107, 157, 0.1);
}

.ral-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ral-filter-tab {
    padding: 10px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ral-filter-tab i {
    font-size: 0.9rem;
    transition: transform 0.25s ease;
}

.ral-filter-tab:hover {
    background: #fafbfc;
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(233, 22, 140, 0.15);
}

.ral-filter-tab:hover i {
    transform: scale(1.1);
}

.ral-filter-tab.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, #d81479 100%);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(233, 22, 140, 0.3);
}

.ral-filter-tab.active i {
    color: white !important;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Color Selector Grid */
.ral-color-selector {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    background: #ffffff;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Custom Scrollbar */
.ral-color-selector::-webkit-scrollbar {
    width: 6px;
}

.ral-color-selector::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 3px;
}

.ral-color-selector::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.ral-color-selector::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.ral-color-group {
    margin-bottom: 1.5rem;
}

.ral-color-group:last-child {
    margin-bottom: 0;
}

.ral-color-group h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.8rem;
    padding: 8px 12px;
    background: #f9fafb;
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
}

.ral-color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.8rem;
}

.ral-color-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.ral-color-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(233, 22, 140, 0.1), rgba(216, 20, 121, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.ral-color-option:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(233, 22, 140, 0.2);
    transform: translateY(-2px);
}

.ral-color-option:hover::before {
    opacity: 1;
}

.ral-color-option.selected {
    border-color: var(--primary-color);
    border-width: 3px;
    background: rgba(233, 22, 140, 0.08);
    box-shadow: 0 6px 16px rgba(233, 22, 140, 0.3);
    transform: translateY(-3px);
}

.ral-color-option.selected::after {
    content: '\f00c'; /* Font Awesome check icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--primary-color);
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.ral-color-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ral-color-preview {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-bottom: 0.7rem;
    border: 3px solid rgba(255, 255, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.ral-color-preview.metallic {
    background: linear-gradient(135deg, var(--color) 0%, 
                                rgba(255, 255, 255, 0.3) 25%, 
                                var(--color) 50%, 
                                rgba(0, 0, 0, 0.2) 75%, 
                                var(--color) 100%) !important;
}

.ral-color-preview.metallic::after {
    content: '\f005'; /* Font Awesome star icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    opacity: 0.9;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.ral-color-option:hover .ral-color-preview {
    border-color: var(--primary-color);
    transform: scale(1.15);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.3),
        0 0 0 3px rgba(255, 107, 157, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.ral-color-option.selected .ral-color-preview {
    border-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 
        0 6px 25px rgba(0, 0, 0, 0.3),
        0 0 0 3px var(--primary-color),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.ral-color-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.2rem;
}

.ral-code {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    background: rgba(255, 107, 157, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 107, 157, 0.2);
}

.ral-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Selected Color Display Panel */
.ral-selected-display {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 1rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.ral-selected-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), #ff6b9d, var(--primary-color));
    opacity: 0.8;
}

.ral-selected-display::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    50% { left: -100%; }
    100% { left: 100%; }
}

.ral-selected-preview {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.4);
    position: relative;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        0 0 0 2px rgba(255, 107, 157, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.ral-selected-preview:hover {
    transform: scale(1.05);
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.4),
        0 0 0 3px var(--primary-color),
        inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

.ral-selected-preview.metallic {
    background: linear-gradient(135deg, var(--color) 0%, 
                                rgba(255, 255, 255, 0.4) 25%, 
                                var(--color) 50%, 
                                rgba(0, 0, 0, 0.2) 75%, 
                                var(--color) 100%) !important;
}

.ral-selected-preview.metallic::after {
    content: '✨';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    opacity: 0.9;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    animation: sparkle 2s ease-in-out infinite;
}

.ral-selected-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.ral-selected-code {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.15), rgba(255, 107, 157, 0.1));
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 107, 157, 0.3);
    display: inline-block;
    align-self: flex-start;
    box-shadow: 0 2px 8px rgba(255, 107, 157, 0.2);
    transition: all 0.3s ease;
}

.ral-selected-code:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
}

.ral-selected-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.ral-selected-description {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Hidden state for filtered colors */
.ral-color-option.hidden {
    display: none;
}

.ral-color-group.hidden {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .color-type-selector {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .color-type-option {
        padding: 0.6rem 0.8rem;
    }
    
    .color-type-name {
        font-size: 0.85rem;
    }
    
    .ral-search-container {
        padding: 1rem;
        margin-bottom: 1rem;
        border-radius: 12px;
    }
    
    .ral-search-input {
        padding: 12px 16px 12px 40px;
        font-size: 0.85rem;
    }
    
    .ral-search-container::before {
        left: 2.1rem;
        top: 1.95rem;
        font-size: 0.9rem;
    }
    
    .ral-filter-tabs {
        justify-content: center;
        gap: 0.4rem;
    }
    
    .ral-filter-tab {
        font-size: 0.7rem;
        padding: 8px 12px;
        border-radius: 20px;
    }
    
    .ral-color-selector {
        padding: 1rem;
        max-height: 350px;
        border-radius: 12px;
    }
    
    .ral-color-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 0.8rem;
    }
    
    .ral-color-option {
        padding: 0.8rem;
        border-radius: 10px;
    }
    
    .ral-color-preview {
        width: 32px;
        height: 32px;
        border-width: 2px;
    }
    
    .ral-code {
        font-size: 0.7rem;
        padding: 1px 4px;
    }
    
    .ral-name {
        font-size: 0.75rem;
    }
    
    .ral-selected-display {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.2rem;
        border-radius: 12px;
    }
    
    .ral-selected-preview {
        width: 48px;
        height: 48px;
        border-width: 3px;
        align-self: center;
    }
    
    .ral-selected-info {
        align-items: center;
        text-align: center;
    }
    
    .ral-selected-code {
        font-size: 0.9rem;
        padding: 4px 8px;
        align-self: center;
    }
    
    .ral-selected-name {
        font-size: 1rem;
    }
    
    .ral-selected-description {
        font-size: 0.8rem;
    }
}

/* Model selector styles */
.model-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 15px;
}

.model-option {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 20px 24px;
    border: 2px solid transparent;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f9f9f9;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    gap: 20px;
}

.model-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    transition: all 0.3s ease;
}

.model-option:hover {
    border-color: rgba(233, 22, 140, 0.3);
    box-shadow: 0 4px 12px rgba(233, 22, 140, 0.08);
    transform: translateY(-2px);
    background: #f0f0f0;
}

.model-option:hover::before {
    background: transparent;
}

.model-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.model-option input[type="radio"]:checked + .model-preview {
    transform: scale(1.08);
}

.model-option input[type="radio"]:checked ~ .model-info .model-name {
    color: var(--primary-color);
    font-weight: 700;
}

.model-option:has(input[type="radio"]:checked) {
    border-color: var(--primary-color);
    background: #fef3f8;
    box-shadow: 0 4px 12px rgba(233, 22, 140, 0.15);
    transform: translateY(0);
}

.model-option:has(input[type="radio"]:checked)::before {
    background: linear-gradient(90deg, #e9168c 0%, #c7006b 100%);
}

.model-preview {
    width: 70px;
    height: 52px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    flex-shrink: 0;
}

/* Model P icon (flush design) */
.model-icon-p {
    position: relative;
    width: 56px;
    height: 42px;
}

.model-icon-p .model-frame {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #d4d4d8 0%, #a1a1aa 100%);
    border-radius: 6px;
    box-shadow: 
        0 3px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid #9ca3af;
}

.model-icon-p .model-plate.flush {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Model D icon (framed design) */
.model-icon-d {
    position: relative;
    width: 56px;
    height: 42px;
}

.model-icon-d .model-frame {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #d4d4d8 0%, #a1a1aa 100%);
    border-radius: 6px;
    box-shadow: 
        0 3px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid #9ca3af;
}

.model-icon-d .model-plate.inset {
    position: absolute;
    top: 5px;
    left: 5px;
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 3px;
    border: 1px solid #cbd5e1;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Model A icon (Acrylic - thin and flush design) */
.model-icon-a {
    position: relative;
    width: 56px;
    height: 42px;
}

.model-icon-a .model-frame.thin {
    position: absolute;
    width: 100%;
    height: 55%; /* 50% thinner than normal frame */
    top: 22.5%; /* Center vertically */
    background: linear-gradient(135deg, #d4d4d8 0%, #a1a1aa 100%);
    border-radius: 4px;
    box-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid #9ca3af;
}

.model-icon-a .model-plate.flush-thin {
    position: absolute;
    top: 22.5%; /* Align with thin frame */
    left: 0;
    width: 100%;
    height: 55%; /* Same height as thin frame */
    background: linear-gradient(135deg, #dbeafe 0%, #93c5fd 100%); /* Enhanced blue acrylic tint */
    border-radius: 4px;
    border: 1px solid #7dd3fc;
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    opacity: 0.85; /* Slightly transparent to show acrylic effect */
    backdrop-filter: blur(2px); /* Modern acrylic effect */
}

/* Model Halo icon (Back-lit design - reversed P) */
.model-icon-halo {
    position: relative;
    width: 56px;
    height: 42px;
}

.model-icon-halo .model-frame {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #d4d4d8 0%, #a1a1aa 100%);
    border-radius: 6px;
    box-shadow: 
        0 3px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid #9ca3af;
    z-index: 2; /* Frame is in front for back-lit */
}

.model-icon-halo .model-plate.back-lit {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); /* Glowing yellow for back-lit */
    border-radius: 6px;
    border: 1px solid #fbbf24;
    box-shadow: 
        0 0 10px rgba(251, 191, 36, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    z-index: 1; /* Plate is behind for back-lit effect */
}

.model-info {
    text-align: left;
    padding: 0;
    flex: 1;
}

.model-name {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.01em;
}

.model-description {
    display: block;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
    font-weight: 400;
    max-width: 100%;
    word-wrap: break-word;
    hyphens: auto;
}

/* ========================================
   MONTAGEART SELECTOR
   ======================================== */

.mounting-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 15px;
    width: 100%;
}

.mounting-type-option {
    display: block;
    cursor: pointer;
    position: relative;
    min-width: 0; /* Verhindert Overflow */
}

.mounting-type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.mounting-type-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 14px;
    border: 2px solid #e1e8ed;
    width: 100%;
    box-sizing: border-box;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    min-height: 140px;
}

.mounting-type-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    transition: all 0.3s ease;
}

.mounting-type-option:hover .mounting-type-content {
    border-color: #0066cc;
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.12);
    transform: translateY(-3px);
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
}

.mounting-type-option:hover .mounting-type-content::before {
    background: linear-gradient(90deg, #0066cc 0%, #4d9fff 100%);
}

.mounting-type-option input[type="radio"]:checked + .mounting-type-content {
    border-color: #0066cc;
    background: linear-gradient(135deg, #f0f7ff 0%, #e1f2ff 100%);
    box-shadow: 0 12px 35px rgba(0, 102, 204, 0.25);
    transform: translateY(-2px);
}

.mounting-type-option input[type="radio"]:checked + .mounting-type-content::before {
    background: linear-gradient(90deg, #0066cc 0%, #4d9fff 100%);
}

.mounting-type-icon {
    font-size: 32px;
    color: #6b7280;
    margin-bottom: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mounting-type-option input[type="radio"]:checked + .mounting-type-content .mounting-type-icon {
    color: #0066cc;
    transform: scale(1.08);
}

.mounting-type-option:hover .mounting-type-icon {
    color: #0066cc;
    transform: scale(1.05);
}

.mounting-type-info {
    text-align: center;
    width: 100%;
}

.mounting-type-name {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 6px;
    transition: all 0.3s ease;
    letter-spacing: -0.01em;
}

.mounting-type-option input[type="radio"]:checked + .mounting-type-content .mounting-type-name {
    color: #0066cc;
    font-weight: 700;
}

.mounting-type-description {
    display: block;
    font-size: 11px;
    color: #6b7280;
    line-height: 1.4;
    font-weight: 400;
    text-align: center;
    word-break: break-word;
    max-width: 100%;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .model-options {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 12px;
    }
    
    .model-option {
        flex-direction: row;
        text-align: left;
        padding: 16px;
        border-radius: 12px;
        gap: 16px;
    }
    
    .model-preview {
        margin-bottom: 0;
        margin-right: 0;
        flex-shrink: 0;
        width: 60px;
        height: 45px;
    }
    
    .model-icon-p,
    .model-icon-d,
    .model-icon-a,
    .model-icon-halo {
        width: 48px;
        height: 36px;
    }
    
    .model-info {
        text-align: left;
        flex: 1;
        padding: 0;
    }
    
    .model-name {
        font-size: 16px;
        margin-bottom: 4px;
    }
    
    /* Mounting Type Selector - Mobile */
    .mounting-type-selector {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .mounting-type-content {
        flex-direction: row;
        text-align: left;
        padding: 16px;
        min-height: auto;
        gap: 16px;
    }
    
    .mounting-type-icon {
        font-size: 28px;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .mounting-type-info {
        text-align: left;
        flex: 1;
    }
    
    .mounting-type-name {
        font-size: 14px;
    }
    
    .model-description {
        font-size: 13px;
        line-height: 1.3;
    }
}

/* SVG Loading Indicator Styles */
.svg-loading-indicator {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 2rem;
    margin: 1rem 0;
    text-align: center;
    box-shadow: 0 4px 20px rgba(233, 22, 140, 0.1);
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.loading-spinner {
    position: relative;
    width: 60px;
    height: 60px;
}

.spinner-ring {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-text h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.loading-text p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.loading-progress {
    width: 100%;
    max-width: 300px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #ff6b9d);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

#progressText {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    min-width: 35px;
}

/* Loading stages with different colors */
.loading-stage-analyzing { color: #007bff; }
.loading-stage-processing { color: #fd7e14; }
.loading-stage-rendering { color: #28a745; }
.loading-stage-finalizing { color: var(--primary-color); }

/* Responsive loading indicator */
@media (max-width: 767px) {
    .svg-loading-indicator {
        padding: 1.5rem;
    }
    
    .loading-content {
        gap: 1rem;
    }
    
    .loading-spinner {
        width: 50px;
        height: 50px;
    }
    
    .spinner-ring {
        width: 50px;
        height: 50px;
    }
}

/* ============================================
   SVG EDITOR MODAL STYLES
   ============================================ */

/* Edit SVG Button */
/* Legacy button classes removed - now using .preview-btn classes */

/* ============================================
   SVG EDITOR MODAL STYLES (Fabric.js)
   ============================================ */

/* SVG Editor Modal */
.svg-editor-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    animation: fadeIn 0.3s ease;
    overflow: hidden;
    pointer-events: all;
}

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

.svg-editor-content {
    background: white;
    border-radius: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000000;
    pointer-events: all;
}

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

/* Editor Header */
.svg-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    border-bottom: 2px solid #e0e0e0;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1000001;
}

.svg-editor-header h2 {
    font-size: 24px;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-weight: 700;
}

.svg-editor-header h2 i {
    color: var(--primary-color);
}

.close-svg-editor {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-svg-editor:hover {
    background-color: #f0f0f0;
    color: var(--secondary-color);
    transform: rotate(90deg);
}

/* Editor Toolbar */
.svg-editor-toolbar {
    display: flex;
    gap: 20px;
    padding: 20px 32px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    flex-wrap: wrap;
    align-items: center;
    min-height: 80px;
    position: relative;
    z-index: 1000001;
}

.toolbar-section {
    display: flex;
    gap: 12px;
    padding-right: 20px;
    border-right: 2px solid #d0d0d0;
}

.toolbar-section:last-child {
    border-right: none;
    margin-left: auto;
}

/* Texture Mode Toggle */
.texture-mode-toggle-container {
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 2px solid #dee2e6;
}

.texture-mode-toggle {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    user-select: none;
}

.toggle-label input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 60px;
    height: 32px;
    background: #ccc;
    border-radius: 32px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: white;
    top: 3px;
    left: 3px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-label input[type="checkbox"]:checked + .toggle-slider {
    background: var(--primary-color);
}

.toggle-label input[type="checkbox"]:checked + .toggle-slider::before {
    transform: translateX(28px);
}

.toggle-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.toggle-on,
.toggle-off {
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary-color);
    transition: opacity 0.3s ease;
}

.toggle-label input[type="checkbox"]:checked ~ .toggle-text .toggle-off {
    opacity: 0.3;
    text-decoration: line-through;
}

.toggle-label input[type="checkbox"]:not(:checked) ~ .toggle-text .toggle-on {
    opacity: 0.3;
    text-decoration: line-through;
}

.toggle-description {
    margin: 8px 0 0 0;
    font-size: 14px;
    line-height: 1.5;
    color: #6c757d;
    padding-left: 75px;
}

.toggle-description span {
    display: block;
}

/* Color Picker Section */
.toolbar-color-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 16px;
}

.color-picker-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.color-picker-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary-color);
    cursor: pointer;
    min-width: 90px;
}

.color-picker-group label i {
    font-size: 14px;
    color: var(--primary-color);
}

.color-picker {
    width: 50px;
    height: 36px;
    border: 2px solid #d0d0d0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.color-picker:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(233, 22, 140, 0.2);
}

.color-picker:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.color-remove-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid #d0d0d0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #dc3545;
    transition: all 0.2s ease;
}

.color-remove-btn:hover {
    background-color: #dc3545;
    color: white;
    border-color: #dc3545;
    transform: translateY(-1px);
}

.color-remove-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.color-remove-btn:disabled:hover {
    background: white;
    color: #dc3545;
    border-color: #d0d0d0;
}

.toolbar-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: white;
    border: 2px solid #d0d0d0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    color: var(--secondary-color);
    transition: all 0.2s ease;
    font-weight: 600;
    white-space: nowrap;
}

.toolbar-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(233, 22, 140, 0.2);
}

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

.toolbar-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f5f5f5;
}

.toolbar-btn:disabled:hover {
    background: #f5f5f5;
    color: var(--secondary-color);
    border-color: #d0d0d0;
    transform: none;
    box-shadow: none;
}

.toolbar-btn i {
    font-size: 18px;
}

.toolbar-btn-warning {
    color: #dc3545;
    border-color: #dc3545;
}

.toolbar-btn-warning:hover {
    background-color: #dc3545;
    color: white;
    border-color: #dc3545;
}

/* Canvas Container */
.svg-editor-canvas-container {
    flex: 1;
    background: #f5f5f5;
    position: relative;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

#svgEditorCanvas {
    border: 2px solid #d0d0d0;
    background: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    max-width: 100%;
    max-height: 100%;
}

/* Editor Footer */
.svg-editor-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 32px;
    background: white;
    border-top: 2px solid #e0e0e0;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1000001;
}

.editor-info {
    color: #666;
    font-size: 15px;
    font-weight: 500;
}

.editor-info i {
    color: var(--primary-color);
    margin-right: 6px;
}

.editor-actions {
    display: flex;
    gap: 12px;
}

.btn-secondary,
.btn-primary {
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    min-width: 160px;
    justify-content: center;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #d01479;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(233, 22, 140, 0.3);
}

.btn-secondary:active,
.btn-primary:active {
    transform: translateY(0);
}

/* Responsive SVG Editor */
@media (max-width: 767px) {
    .svg-editor-modal {
        padding: 0;
    }
    
    .svg-editor-content {
        border-radius: 0;
        height: 100vh;
        max-width: none;
    }
    
    .svg-editor-toolbar {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        padding: 12px 16px;
    }
    
    .toolbar-section {
        padding-right: 12px;
        gap: 6px;
    }
    
    .toolbar-btn span {
        display: none;
    }
    
    .toolbar-btn {
        padding: 10px;
        min-width: 40px;
        justify-content: center;
    }
    
    .svg-editor-footer {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .editor-info {
        text-align: center;
    }
    
    .editor-actions {
        width: 100%;
    }
    
    .btn-secondary,
    .btn-primary {
        flex: 1;
        justify-content: center;
    }
}

/* ============================================================================
   CONTACT FORM MODAL FOR PDF DOWNLOAD
   ============================================================================ */

.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

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

.contact-modal-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

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

.contact-modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #d5157e 100%);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-modal-header h2 {
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
}

.contact-modal-header h2::after {
    display: none;
}

.close-contact-modal {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 1.2rem;
}

.close-contact-modal:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.contact-modal-body {
    padding: 2rem;
}

.contact-modal-description {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group label i {
    color: var(--primary-color);
    font-size: 1rem;
}

.required {
    color: #dc3545;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(233, 22, 140, 0.1);
}

.form-group input::placeholder {
    color: #999;
}

.form-hint {
    color: #666;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    font-style: italic;
}

.form-checkbox {
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
    cursor: pointer;
    user-select: none;
    font-weight: 400 !important;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
    flex-shrink: 0;
}

.checkbox-label span {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.contact-modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.contact-modal-actions .btn-secondary,
.contact-modal-actions .btn-primary {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
}

.contact-modal-actions .btn-secondary {
    background: #f5f5f5;
    color: #666;
}

.contact-modal-actions .btn-secondary:hover {
    background: #e0e0e0;
    color: #333;
}

.contact-modal-actions .btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #d5157e 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(233, 22, 140, 0.3);
}

.contact-modal-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 22, 140, 0.4);
}

.contact-modal-actions .btn-primary:active {
    transform: translateY(0);
}

/* Google Places Autocomplete Styling */
.pac-container {
    border-radius: 8px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    margin-top: 4px;
    font-family: inherit;
    z-index: 10001 !important;
}

.pac-item {
    padding: 10px 14px;
    cursor: pointer;
    border-top: 1px solid #e0e0e0;
}

.pac-item:first-child {
    border-top: none;
}

.pac-item:hover {
    background-color: #f9f9f9;
}

.pac-item-selected,
.pac-item:hover {
    background-color: rgba(233, 22, 140, 0.05);
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .contact-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .contact-modal-header {
        padding: 1.25rem 1.5rem;
    }
    
    .contact-modal-header h2 {
        font-size: 1.1rem;
    }
    
    .contact-modal-body {
        padding: 1.5rem;
    }
    
    .contact-modal-actions {
        flex-direction: column;
    }
    
    .contact-modal-actions .btn-secondary,
    .contact-modal-actions .btn-primary {
        width: 100%;
    }
}
/* ============================================================================
   VECTORIZE MODAL STYLES
   ============================================================================ */

.vectorize-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.vectorize-modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: vectorizeSlideIn 0.3s ease-out;
}

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

.vectorize-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    border-bottom: 2px solid #f0f0f0;
}

.vectorize-modal-header h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 12px;
}

.vectorize-modal-header h2 i {
    color: #E9168C;
    font-size: 28px;
}

.vectorize-close-btn {
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
}

.vectorize-close-btn:hover {
    background: #f5f5f5;
    color: #333;
}

/* Loading State */
.vectorize-loading {
    padding: 60px 30px;
    text-align: center;
}

.vectorize-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 24px;
    border: 4px solid #f0f0f0;
    border-top: 4px solid #E9168C;
    border-radius: 50%;
    animation: vectorizeSpin 1s linear infinite;
}

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

.vectorize-loading-text {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
}

.vectorize-progress-bar {
    width: 100%;
    max-width: 400px;
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    margin: 0 auto 16px;
    overflow: hidden;
}

.vectorize-progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #E9168C, #ff4da6);
    border-radius: 3px;
    animation: vectorizeProgress 2s ease-in-out infinite;
}

@keyframes vectorizeProgress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

.vectorize-hint {
    font-size: 14px;
    color: #999;
    margin: 0;
}

/* Preview State */
.vectorize-preview {
    padding: 30px;
}

.vectorize-comparison {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: center;
    margin-bottom: 30px;
}

.vectorize-column {
    text-align: center;
}

.vectorize-column h3 {
    font-size: 18px;
    color: #333;
    margin: 0 0 16px 0;
    font-weight: 600;
}

.vectorize-image-container {
    background: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vectorize-image-container img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
}

.vectorize-label {
    margin: 12px 0 0 0;
    font-size: 13px;
    color: #666;
}

.vectorize-divider {
    font-size: 32px;
    color: #E9168C;
}

.vectorize-info {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.vectorize-info-box {
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #333;
}

.vectorize-info-box i {
    color: #E9168C;
    font-size: 20px;
}

.vectorize-modal-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.vectorize-btn-primary,
.vectorize-btn-secondary {
    padding: 14px 32px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.vectorize-btn-primary {
    background: #E9168C;
    color: white;
}

.vectorize-btn-primary:hover {
    background: #c91479;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 22, 140, 0.3);
}

.vectorize-btn-secondary {
    background: #f5f5f5;
    color: #333;
}

.vectorize-btn-secondary:hover {
    background: #e0e0e0;
}

/* Error State */
.vectorize-error {
    padding: 60px 30px;
    text-align: center;
}

.vectorize-error-icon {
    font-size: 64px;
    color: #ff5555;
    margin-bottom: 24px;
}

.vectorize-error h3 {
    font-size: 22px;
    color: #333;
    margin: 0 0 16px 0;
}

.vectorize-error p {
    font-size: 16px;
    color: #666;
    margin: 0 0 32px 0;
    line-height: 1.5;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .vectorize-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .vectorize-modal-header {
        padding: 20px;
    }
    
    .vectorize-modal-header h2 {
        font-size: 20px;
    }
    
    .vectorize-comparison {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .vectorize-divider {
        transform: rotate(90deg);
        font-size: 24px;
    }
    
    .vectorize-preview {
        padding: 20px;
    }
    
    .vectorize-modal-actions {
        flex-direction: column;
    }
    
    .vectorize-btn-primary,
    .vectorize-btn-secondary {
        width: 100%;
        justify-content: center;
    }
}