.folienplotter-configurator {
    display: flex;
    gap: 30px;
    margin: 20px 0;
    font-family: Arial, sans-serif;
}

.configurator-left {
    flex: 3;
}

.configurator-right {
    flex: 2;
}

.config-section {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.config-section h3 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.form-group.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group.checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.form-group.checkbox-group input[type="checkbox"] {
    margin-right: 8px;
    width: auto;
}

.preview-section {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.preview-section h3 {
    margin-top: 0;
    color: #2c3e50;
}

.preview-container {
    position: relative;
}

.paper-sheet {
    width: 100%;
    height: 300px;
    background-color: white;
    border: 1px solid #ccc;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    background-image: 
        linear-gradient(#ccc 1px, transparent 1px),
        linear-gradient(90deg, #ccc 1px, transparent 1px);
    background-size: 10px 10px;
}

.text-preview-container {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.text-preview {
    text-align: center;
    max-width: 100%;
    word-break: break-word;
    line-height: 1.2;
    transition: all 0.3s ease;
}

.measure-horizontal {
    position: absolute;
    bottom: -30px;
    left: 0;
    width: 100%;
    height: 20px;
}

.measure-vertical {
    position: absolute;
    top: 0;
    right: -40px;
    width: 20px;
    height: 100%;
}

.measure-line {
    position: absolute;
    background-color: #333;
}

.measure-horizontal .measure-line {
    top: 10px;
    left: 0;
    width: 100%;
    height: 1px;
}

.measure-vertical .measure-line {
    left: 10px;
    top: 0;
    width: 1px;
    height: 100%;
}

.measure-arrow {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

.measure-horizontal .left {
    top: 0;
    left: 0;
    border-width: 10px 5px 0 5px;
    border-color: #333 transparent transparent transparent;
}

.measure-horizontal .right {
    top: 0;
    right: 0;
    border-width: 10px 5px 0 5px;
    border-color: #333 transparent transparent transparent;
}

.measure-vertical .top {
    top: 0;
    left: 0;
    border-width: 0 5px 10px 5px;
    border-color: transparent transparent #333 transparent;
}

.measure-vertical .bottom {
    bottom: 0;
    left: 0;
    border-width: 10px 5px 0 5px;
    border-color: #333 transparent transparent transparent;
}

.measure-text {
    position: absolute;
    font-size: 12px;
    color: #333;
    background: white;
    padding: 2px 5px;
    border-radius: 3px;
}

.measure-horizontal .measure-text {
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
}

.measure-vertical .measure-text {
    top: 50%;
    right: 5px;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: center;
}

.price-section {
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.price-section h3 {
    margin-top: 0;
    color: #2c3e50;
}

.price-details {
    margin: 20px 0;
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px dashed #ddd;
}

.price-row.total {
    font-weight: bold;
    font-size: 18px;
    border-bottom: none;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px solid #2c3e50;
}

#add-to-cart {
    width: 100%;
    background-color: #4CAF50;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s;
}

#add-to-cart:hover {
    background-color: #45a049;
}

.info-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 50%;
    background-color: #3498db;
    color: white;
    font-size: 12px;
    font-style: italic;
    cursor: help;
    margin-left: 5px;
}

.char-count {
    text-align: right;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .folienplotter-configurator {
        flex-direction: column;
    }
    
    .configurator-left, .configurator-right {
        width: 100%;
    }
}