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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 24px;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

.main-content {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.edit-area {
    flex: 1;
    min-width: 300px;
}

.preview-area {
    flex: 1;
    min-width: 300px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
}

.options {
    margin-bottom: 20px;
}

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

.option-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: bold;
    font-size: 14px;
}

.radio-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.radio-group input[type="radio"] {
    display: none;
}

.radio-group label {
    padding: 6px 12px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: normal;
}

.radio-group input[type="radio"]:checked + label {
    background: #4a90e2;
    color: white;
    border-color: #4a90e2;
}

.upload-area {
    border: 2px dashed #4a90e2;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.upload-area.dragover {
    background: #e3f2fd;
    border-color: #2196f3;
}

.upload-icon {
    font-size: 32px;
    color: #4a90e2;
    margin-bottom: 8px;
}

.upload-text {
    color: #666;
    font-size: 14px;
}

.file-list {
    margin: 15px 0;
    max-height: 300px;
    overflow-y: auto;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 8px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin-bottom: 8px;
    cursor: move;
    user-select: none;
    transition: all 0.2s ease;
}

.file-item.dragging {
    opacity: 0.5;
    background: #e9ecef;
    transform: scale(0.98);
}

.file-item.drag-over {
    border: 2px dashed #4a90e2;
    margin-top: 20px;
}

.file-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 10px;
}

.file-item .file-name {
    flex: 1;
    font-size: 13px;
    color: #333;
}

.file-item .remove-btn {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 16px;
}

.preview-area h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 16px;
}

.result-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.action-button {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    background: #4a90e2;
    color: white;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
}

.action-button:hover {
    background: #357abd;
}

.action-button:disabled {
    background: #adb5bd;
    cursor: not-allowed;
}

#shareBtn {
    background: #28a745;
}

#shareBtn:hover {
    background: #218838;
}

#shareBtn:disabled {
    background: #adb5bd;
}

.preview-container {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 10px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    width: 100%;
    height: 100%;
    min-height: 280px;
    border: 2px dashed #dee2e6;
}

.preview-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    color: #adb5bd;
}

.preview-text {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
}

.preview-container img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.primary-button, .secondary-button {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.primary-button {
    background: #4a90e2;
    color: white;
}

.primary-button:hover {
    background: #357abd;
}

.secondary-button {
    background: #f8f9fa;
    color: #4a90e2;
    border: 1px solid #4a90e2;
}

.secondary-button:hover {
    background: #e9ecef;
}

.file-item .drag-handle {
    color: #adb5bd;
    margin-right: 10px;
    cursor: move;
    font-size: 16px;
} 
.footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
    color: #6c757d;
    font-size: 14px;
}

.footer a {
    color: #4a90e2;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: #357abd;
    text-decoration: underline;
} 
