.font-preview-container {
    border: 1px solid #eaeaea;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.font-preview-controls {
    margin-bottom: 20px;
}

.font-preview-controls h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
}

.control-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.control-row label {
    width: 100px;
    font-weight: 600;
    color: #2c3e50;
}

.control-row input[type="text"],
.control-row select {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.control-row input[type="range"] {
    flex: 1;
    margin: 0 10px;
}

.control-row input[type="color"] {
    width: 40px;
    height: 40px;
    padding: 2px;
}

.value-display {
    min-width: 50px;
    text-align: right;
    color: #3498db;
    font-weight: 600;
}

.font-preview-display {
    padding: 30px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px dashed #ddd;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-text {
    font-size: 36px;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 100%;
    overflow-wrap: break-word;
}

.font-preview-error {
    padding: 20px;
    background: #ffecec;
    border: 1px solid #ffb8b8;
    border-radius: 5px;
    color: #e00;
}

@media (max-width: 768px) {
    .control-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .control-row label {
        margin-bottom: 5px;
        width: 100%;
    }
    
    .control-row input,
    .control-row select {
        width: 100%;
        margin-bottom: 10px;
    }
}