.khung-test {
    background: #f8f8f9;
    padding: 20px;
    border-radius: 5px;
    border: 2px dashed #ddd;
}

.font-name {
    color: #ec0000;
}
.khung-test h2 {
    margin: 0 0 20px 0;
}
textarea {
    width: 100%!important;
    box-sizing: border-box;
    padding: 10px;
    font-size: 14px;
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
}

.controls {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin: 15px 0;
    align-items: center;
    font-size: 14px;
}

.size-controls {
    display: flex;
    gap: 10px;
	align-items: center;
}

.size-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    border-radius: 3px;
}

.size-btn:hover {
    background: #f0f0f0;
}

.size-btn.active {
    background: #ec0000;
    color: #fff;
    border-color: #ec0000;
}

.loading {
    display: none;
    text-align: center;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 4px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #ec0000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-bottom: 10px;
}

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

.view-image img {
    max-width: 100%;
    border-radius: 3px;
    display: none;
}

.error-message {
    display: none;
    color: #dc3232;
    background: #fef5f5;
    padding: 10px;
    border-left: 3px solid #dc3232;
}