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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.header {
    text-align: center;
    margin-bottom: 40px;
}

.header h1 {
    color: #2d3748;
    font-size: 2.5em;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header p {
    color: #718096;
    font-size: 1.1em;
}

.preset-menu {
    margin-top: 25px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.preset-menu h3 {
    color: #2d3748;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.3em;
}

.tab-navigation {
    display: flex;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tab-navigation::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    flex: 1;
    padding: 15px 20px;
    border: none;
    background: #f8f9fa;
    color: #4a5568;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom: 3px solid transparent;
    margin-right: 5px;
    white-space: nowrap;
    min-width: 120px;
}

.tab-btn:last-child {
    margin-right: 0;
}

.tab-btn:hover {
    background: #e9ecef;
    color: #2d3748;
}

.tab-btn.active {
    background: white;
    color: #667eea;
    border-bottom-color: #667eea;
    transform: translateY(2px);
}

.tab-content {
    min-height: 120px;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

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

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

.preset-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    .tab-navigation {
        flex-direction: column;
        border-bottom: none;
        gap: 5px;
        margin-bottom: 20px;
        padding-bottom: 15px;
    }

    .tab-btn {
        flex: none;
        margin-right: 0;
        margin-bottom: 0;
        border-radius: 10px;
        border-bottom: none;
        text-align: center;
        min-width: auto;
        padding: 12px 15px;
        font-size: 0.9em;
    }

    .tab-btn.active {
        transform: none;
        background: linear-gradient(135deg, #667eea, #764ba2);
        color: white;
        border-bottom: none;
    }

    .tab-btn:hover {
        background: #e9ecef;
        color: #2d3748;
    }

    .tab-btn.active:hover {
        background: linear-gradient(135deg, #667eea, #764ba2);
        color: white;
    }

        min-height: auto;
    }
}

/* Small mobile screens */
@media (max-width: 480px) {
    .tab-btn {
        padding: 10px 12px;
        font-size: 0.85em;
    }

    .preset-buttons {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .preset-btn {
        padding: 12px;
    }

    .preset-icon {
        font-size: 1.5em;
        margin-right: 10px;
        width: 35px;
    }

    .preset-name {
        font-size: 1em;
    }

    .preset-price {
        font-size: 0.85em;
    }
}

.preset-btn {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.preset-btn:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.preset-btn.active {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.preset-icon {
    font-size: 2em;
    margin-right: 15px;
    width: 50px;
    text-align: center;
}

.preset-info {
    flex: 1;
}

.preset-name {
    font-weight: 600;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.preset-price {
    opacity: 0.8;
    font-size: 0.9em;
}

.preset-description {
    text-align: center;
    padding: 15px;
    background: #f7fafc;
    border-radius: 10px;
    color: #4a5568;
    font-style: italic;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
}

.configurator {
    display: grid;
    gap: 20px;
}

.component-section {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.component-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.component-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.component-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.component-title {
    font-size: 1.3em;
    font-weight: 600;
    color: #2d3748;
}

.component-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1em;
    background: white;
    transition: border-color 0.3s ease;
}

.component-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.component-select:disabled {
    background-color: #f8f9fa;
    border-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.7;
}

.component-section.locked {
    background: #f8f9fa;
    border-color: #dee2e6;
}

.component-section.locked .component-title::after {
    content: " 🔒";
    color: #6c757d;
    font-size: 0.8em;
}

.component-info {
    margin-top: 10px;
    padding: 10px;
    background: #f7fafc;
    border-radius: 8px;
    font-size: 0.9em;
    color: #4a5568;
}

.summary {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.summary h2 {
    color: #2d3748;
    margin-bottom: 20px;
    font-size: 1.5em;
    text-align: center;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.summary-item:last-child {
    border-bottom: none;
    font-weight: 600;
    font-size: 1.1em;
    color: #2d3748;
}

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

.summary-value {
    color: #2d3748;
    font-weight: 600;
}

.total-price {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin-top: 20px;
    font-size: 1.2em;
    font-weight: 700;
}

.save-pdf-btn {
    width: 100%;
    padding: 15px;
    margin-top: 15px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.3);
}

.save-pdf-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(40, 167, 69, 0.4);
    background: linear-gradient(135deg, #218838, #1ea589);
}

.save-pdf-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(40, 167, 69, 0.3);
}

.email-quote-btn {
    width: 100%;
    padding: 15px;
    margin-top: 10px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 123, 255, 0.3);
}

.email-quote-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 123, 255, 0.4);
    background: linear-gradient(135deg, #0056b3, #004085);
}

.customer-form {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    margin: 15px 0;
    border: 2px solid #e9ecef;
    animation: slideDown 0.3s ease-out;
}

.customer-form h3 {
    color: #2d3748;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.3em;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #4a5568;
    font-weight: 600;
    font-size: 0.9em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.email-send-btn {
    flex: 2;
    padding: 12px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.email-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.form-cancel-btn {
    flex: 1;
    padding: 12px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-cancel-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

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

.extras-container {
    margin-top: 10px;
}

.extra-option {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.extra-option:hover {
    background: #e9ecef;
    border-color: #667eea;
}

.extra-option input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #667eea;
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.extra-option input[type="checkbox"]:checked + .checkmark {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #667eea;
}

.extra-option input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 3px;
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.extra-text {
    color: #2d3748;
    font-weight: 500;
    font-size: 1em;
}

.extra-option input[type="checkbox"]:checked ~ .extra-text {
    color: #667eea;
    font-weight: 600;
}

.compatibility-warning {
    background: #fed7d7;
    color: #c53030;
    padding: 10px;
    border-radius: 8px;
    margin-top: 10px;
    font-size: 0.9em;
    border-left: 4px solid #c53030;
}

.compatibility-good {
    background: #c6f6d5;
    color: #2f855a;
    padding: 10px;
    border-radius: 8px;
    margin-top: 10px;
    font-size: 0.9em;
    border-left: 4px solid #2f855a;
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .summary {
        position: static;
    }

    .preset-buttons {
        grid-template-columns: 1fr;
    }

    .summary-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 0;
        gap: 5px;
    }

    .summary-label {
        font-size: 0.9em;
        margin-bottom: 3px;
    }

    .summary-value {
        font-size: 0.95em;
        line-height: 1.4;
        word-wrap: break-word;
        overflow-wrap: break-word;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .summary-item {
        padding: 12px 0;
    }

    .summary-label {
        font-size: 0.85em;
    }

    .summary-value {
        font-size: 0.9em;
        line-height: 1.3;
    }
}
        margin-top: 25px;
        padding-top: 15px;
        border-top: 1px solid #f1f3f4;
        position: relative;
    }

    .tab-content::before {
        content: '';
        position: absolute;
        top: -8px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 2px;
        background: #cbd5e0;
        border-radius: 1px;
    }

    .preset-buttons {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 10px;
    }

    .tab-content {