* {
    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;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

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

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.main-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.upload-section, .qr-settings-section, .generate-section {
    margin-bottom: 40px;
}

h2 {
    color: #4a5568;
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.upload-card {
    background: #f7fafc;
    border-radius: 15px;
    padding: 20px;
    border: 2px dashed #cbd5e0;
    transition: all 0.3s ease;
}

.upload-card:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.upload-card h3 {
    margin-bottom: 15px;
    color: #4a5568;
    font-size: 1.2rem;
}

.file-upload {
    cursor: pointer;
}

.upload-area {
    text-align: center;
    padding: 30px 20px;
    border-radius: 10px;
    background: white;
    border: 2px dashed #cbd5e0;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: #667eea;
    background: #f8faff;
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.upload-area p {
    margin-bottom: 5px;
    color: #4a5568;
}

.file-info {
    font-size: 0.9rem;
    color: #718096;
}

.preview {
    margin-top: 15px;
    text-align: center;
}

.preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.data-preview {
    margin-top: 15px;
    max-height: 200px;
    overflow-y: auto;
    background: white;
    border-radius: 10px;
    padding: 15px;
    border: 1px solid #e2e8f0;
}

.data-preview ul {
    list-style: none;
}

.data-preview li {
    padding: 5px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
    word-break: break-all;
}

/* 데이터 입력 탭 스타일 */
.data-input-tabs {
    display: flex;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.tab-btn {
    flex: 1;
    padding: 10px 15px;
    border: none;
    background: #f7fafc;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.tab-btn.active {
    background: #667eea;
    color: white;
}

.tab-btn:hover:not(.active) {
    background: #e2e8f0;
}

.tab-content {
    display: none;
}

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

/* 직접 입력 영역 */
.manual-input-area {
    background: white;
    border-radius: 10px;
    padding: 15px;
    border: 2px dashed #cbd5e0;
}

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

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
    font-size: 0.9rem;
}

#manualTextInput {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    transition: border-color 0.3s ease;
}

#manualTextInput:focus {
    outline: none;
    border-color: #667eea;
}

.input-actions {
    display: flex;
    gap: 10px;
}

.add-text-btn, .clear-text-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.add-text-btn {
    background: #48bb78;
    color: white;
}

.add-text-btn:hover {
    background: #38a169;
    transform: translateY(-1px);
}

.clear-text-btn {
    background: #f56565;
    color: white;
}

.clear-text-btn:hover {
    background: #e53e3e;
    transform: translateY(-1px);
}

/* 파일 미리보기 스타일 */
.file-preview-section {
    margin-top: 15px;
    background: white;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    width: 100%;
    box-sizing: border-box;
}

.preview-header {
    margin-bottom: 15px;
}

.preview-header h4 {
    margin: 0 0 15px 0;
    color: #4a5568;
    font-size: 1.1rem;
}

.column-selection-guide {
    margin-bottom: 15px;
    padding: 10px;
    background: #f8faff;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.column-selection-guide p {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.column-selection-guide ul {
    list-style: none;
    margin: 0;
    padding-left: 10px;
}

.column-selection-guide li {
    margin-bottom: 4px;
    font-size: 0.85rem;
}

.preview-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
}

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

.option-group label {
    font-weight: 500;
    color: #4a5568;
    font-size: 0.9rem;
    white-space: nowrap;
}

#columnSelect {
    padding: 6px 10px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
    min-width: 120px;
    transition: border-color 0.3s ease;
}

#columnSelect:focus {
    outline: none;
    border-color: #667eea;
}

.option-group input[type="checkbox"] {
    margin: 0;
    width: 16px;
    height: 16px;
    accent-color: #667eea;
}

.apply-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.apply-btn:hover {
    background: #5a67d8;
    transform: translateY(-1px);
}

.table-preview {
    max-height: 300px;
    overflow: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    width: 100%;
    max-width: 500px;
}

.preview-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    font-size: 0.85rem;
    table-layout: auto;
}

.preview-table th,
.preview-table td {
    padding: 10px 15px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
    min-width: 100px;
}

.preview-table th:last-child,
.preview-table td:last-child {
    border-right: none;
}

.preview-table th {
    background: #667eea;
    color: white;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

.preview-table th:hover {
    background: #5a67d8;
}

.preview-table tr:hover {
    background: #f1f5f9;
}

/* QR 코드용 열 선택 스타일 (파란색) */
.preview-table th.selected-qr {
    background: #667eea;
    color: white;
}

.preview-table td.selected-qr {
    background: #e6f3ff;
    border-left: 3px solid #667eea;
    font-weight: 500;
}

/* 텍스트 표시용 열 선택 스타일 (초록색) */
.preview-table th.selected-text {
    background: #10b981;
    color: white;
}

.preview-table td.selected-text {
    background: #ecfdf5;
    border-left: 3px solid #10b981;
    font-weight: 500;
}

/* 두 개의 스타일이 동시에 적용될 때 (같은 열이 QR과 텍스트 모두 선택) */
.preview-table th.selected-qr.selected-text {
    background: linear-gradient(45deg, #667eea 0%, #10b981 100%);
    color: white;
}

.preview-table td.selected-qr.selected-text {
    background: linear-gradient(45deg, #e6f3ff 0%, #ecfdf5 100%);
    border-left: 3px solid;
    border-image: linear-gradient(45deg, #667eea 0%, #10b981 100%) 1;
    font-weight: 500;
}

/* 기존 호환성을 위한 스타일 유지 */
.preview-table th.selected {
    background: #38b2ac;
    color: white;
}

.preview-table td.selected {
    background: #e6fffa;
    border-left: 3px solid #38b2ac;
    font-weight: 500;
}

/* 긴 텍스트 처리 */
.preview-table td[title] {
    cursor: help;
}

.preview-table td:hover {
    overflow: visible;
    white-space: normal;
    word-wrap: break-word;
    z-index: 5;
    position: relative;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .preview-options {
        flex-direction: column;
        align-items: stretch;
    }
    
    .option-group {
        justify-content: space-between;
    }
    
    #columnSelect {
        min-width: auto;
        flex: 1;
    }
}

.settings-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
}

.image-editor {
    background: #f7fafc;
    border-radius: 15px;
    padding: 20px;
}

.editor-container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.image-container {
    position: relative;
    display: inline-block;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

#editorImage {
    max-width: 100%;
    max-height: 400px;
    display: block;
}

.qr-overlay {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

.qr-preview {
    position: absolute;
    width: 100px;
    height: 100px;
    background: white;
    border: 2px dashed #667eea;
    border-radius: 5px;
    top: 0;
    left: 0;
    transform: translate(50px, 50px);
    pointer-events: all;
    cursor: grab;
    transition: none;
    will-change: transform;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.qr-preview:hover {
    border-color: #4c63d2;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.qr-preview .qr-image {
    max-width: calc(100% - 4px);
    max-height: calc(100% - 4px);
    border-radius: 3px;
}

/* 크기 조절 핸들 */
.resize-handle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #667eea;
    border: 1px solid white;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}

.resize-handle-nw {
    top: -4px;
    left: -4px;
    cursor: nw-resize;
}

.resize-handle-ne {
    top: -4px;
    right: -4px;
    cursor: ne-resize;
}

.resize-handle-sw {
    bottom: -4px;
    left: -4px;
    cursor: sw-resize;
}

.resize-handle-se {
    bottom: -4px;
    right: -4px;
    cursor: se-resize;
}

.resize-handle:hover {
    background: #4c63d2;
    transform: scale(1.2);
}

/* 텍스트 오버레이 */
.text-overlay {
    position: absolute;
    cursor: move;
    z-index: 12;
    padding: 4px;
    border: 2px dashed #f56565;
    border-radius: 4px;
    background: rgba(245, 101, 101, 0.1);
    min-width: 20px;
    min-height: 20px;
}

.text-overlay:hover {
    border-color: #e53e3e;
    background: rgba(229, 62, 62, 0.15);
}

.text-overlay.dragging {
    border-color: #c53030;
    background: rgba(197, 48, 48, 0.2);
    box-shadow: 0 4px 12px rgba(197, 48, 48, 0.3);
}

.text-content {
    pointer-events: none;
    display: block;
    white-space: nowrap;
    color: inherit;
    font-family: inherit;
}

.settings-panel {
    background: #f7fafc;
    border-radius: 15px;
    padding: 20px;
}

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

.setting-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
}

.setting-group input {
    width: 100%;
    padding: 10px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.setting-group input:focus {
    outline: none;
    border-color: #667eea;
}

.setting-group input[type="range"] {
    padding: 0;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    -webkit-appearance: none;
}

.setting-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #667eea;
    border-radius: 50%;
    cursor: pointer;
}

.setting-group span {
    display: inline-block;
    margin-left: 10px;
    color: #667eea;
    font-weight: 600;
}

/* 텍스트 설정 스타일 */
.text-settings {
    margin-top: 20px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.text-settings h4 {
    margin: 0 0 15px 0;
    color: #4a5568;
    font-size: 1rem;
    font-weight: 600;
}

.setting-group input[type="color"] {
    width: 50px;
    height: 35px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    background: none;
}

.setting-group input[type="color"]:focus {
    outline: none;
    border-color: #667eea;
}

.setting-group select {
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    color: #4a5568;
    font-size: 0.9rem;
    cursor: pointer;
    width: 100%;
}

.setting-group select:focus {
    outline: none;
    border-color: #667eea;
}

.setting-group label input[type="checkbox"] {
    margin-right: 8px;
}

/* 텍스트 미리보기 */
.text-preview {
    margin-top: 15px;
    padding: 10px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.text-preview h5 {
    margin: 0 0 10px 0;
    color: #4a5568;
    font-size: 0.9rem;
    font-weight: 600;
}

.text-preview-content {
    min-height: 40px;
    padding: 10px;
    background: #f9f9f9;
    border: 1px dashed #ccc;
    border-radius: 4px;
    display: flex;
    align-items: center;
}

.text-preview-content span {
    transition: all 0.3s ease;
}

.generate-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: stretch;
    width: 100%;
}

.pdf-options {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.pdf-layout-options {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.pdf-layout-options label {
    color: #4a5568;
    font-weight: 500;
}

.pdf-layout-options select {
    padding: 6px 10px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    color: #4a5568;
    font-size: 0.9rem;
    cursor: pointer;
}

.pdf-layout-options select:focus {
    outline: none;
    border-color: #667eea;
}

.generate-btn, .generate-pdf-btn {
    flex: 1;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-weight: 600;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
}

.generate-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.generate-pdf-btn {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.3);
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.generate-pdf-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 62, 62, 0.4);
}

.generate-btn:disabled, .generate-pdf-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.progress-container {
    margin-top: 20px;
    text-align: center;
}

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

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.3s ease;
}

#progressText {
    color: #4a5568;
    font-weight: 500;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .upload-grid {
        grid-template-columns: 1fr;
    }
    
    .settings-container {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 10px;
    }
    
    .main-content {
        padding: 20px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .generate-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .generate-btn, .generate-pdf-btn {
        width: 100%;
        margin: 0;
    }
    
    .pdf-options {
        width: 100%;
    }
    
    .pdf-layout-options {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* 드래그 앤 드롭 스타일 */
.dragover {
    border-color: #667eea !important;
    background: #f0f4ff !important;
    transform: scale(1.02);
}

/* 로딩 애니메이션 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading {
    animation: spin 1s linear infinite;
}

/* 다운로드 모달 */
.download-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 15px;
    padding: 0;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.download-options {
    margin: 20px 0;
    text-align: center;
}

.download-all-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.download-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.download-hint {
    margin: 15px 0;
    color: #666;
    font-size: 0.9rem;
}

.file-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.2s ease;
}

.file-item:last-child {
    border-bottom: none;
}

.file-item:hover {
    background: #f1f5f9;
}

.file-name {
    font-weight: 500;
    color: #4a5568;
    flex: 1;
    margin-right: 15px;
    word-break: break-all;
}

.download-btn {
    background: #48bb78;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.download-btn:hover {
    background: #38a169;
    transform: translateY(-1px);
}

/* 미리보기 섹션 스타일 */
.preview-section {
    margin: 20px 0;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.preview-section h4 {
    margin: 0 0 15px 0;
    color: #374151;
    font-size: 1rem;
    font-weight: 600;
}

.preview-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    border-radius: 6px;
    padding: 15px;
    border: 1px solid #e2e8f0;
}

.preview-image {
    max-width: 100%;
    max-height: 300px;
    width: auto;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* 새로운 직접 입력 스타일 */
.text-input-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.text-input {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.text-input:focus {
    outline: none;
    border-color: #667eea;
}

.text-list-container {
    margin-top: 15px;
    background: #f8fafc;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #e2e8f0;
}

.text-list-container h4 {
    margin: 0 0 10px 0;
    color: #4a5568;
    font-size: 1rem;
}

.text-list {
    max-height: 200px;
    overflow-y: auto;
}

.empty-message {
    color: #a0aec0;
    font-style: italic;
    text-align: center;
    margin: 20px 0;
}

.text-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.text-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.text-item-content {
    flex: 1;
    margin-right: 10px;
    word-break: break-all;
    font-size: 0.9rem;
    color: #4a5568;
}

.text-item-actions {
    display: flex;
    gap: 5px;
}

.edit-text-btn, .delete-text-btn {
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.edit-text-btn {
    background: #4299e1;
    color: white;
}

.edit-text-btn:hover {
    background: #3182ce;
}

.delete-text-btn {
    background: #f56565;
    color: white;
}

.delete-text-btn:hover {
    background: #e53e3e;
}

.text-item.editing {
    background: #fef5e7;
    border-color: #ed8936;
}

.text-item.editing .text-input {
    flex: 1;
    margin-right: 10px;
    padding: 6px 8px;
    border: 1px solid #ed8936;
    border-radius: 4px;
    font-size: 0.9rem;
}

.text-item.editing .text-item-actions {
    gap: 5px;
}

.save-text-btn, .cancel-text-btn {
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.save-text-btn {
    background: #48bb78;
    color: white;
}

.save-text-btn:hover {
    background: #38a169;
}

.cancel-text-btn {
    background: #a0aec0;
    color: white;
}

.cancel-text-btn:hover {
    background: #718096;
}

.editor-tips {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
}

.editor-tips p {
    margin: 0 0 10px 0;
    color: #374151;
    font-weight: 500;
}

.editor-tips ul {
    margin: 0;
    padding-left: 20px;
    color: #6b7280;
}

.editor-tips li {
    margin-bottom: 5px;
    line-height: 1.4;
}

.editor-tips strong {
    color: #059669;
} 