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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 40px;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
}

.dropzone {
    width: 100%;
    min-height: 400px;
    border: 3px dashed #ccc;
    border-radius: 12px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.dropzone:hover {
    border-color: #007bff;
    background: #f8f9fa;
}

.dropzone.dragover {
    border-color: #007bff;
    background: #e7f3ff;
    transform: scale(1.02);
}

.dropzone-content {
    text-align: center;
    color: #666;
    pointer-events: none;
}

.dropzone-content svg {
    margin-bottom: 16px;
    color: #999;
}

.dropzone-text {
    font-size: 18px;
    font-weight: 500;
}

.toolbox-panel {
    width: 100%;
    background: white;
    border-radius: 12px;
    padding: 12px 16px;
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.download-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.download-button:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.download-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.2);
}

.download-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.download-button svg {
    width: 20px;
    height: 20px;
}

.preview-container {
    margin-top: 20px;
    text-align: center;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#previewImage {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: block;
    margin: 0 auto;
}

.preview-placeholder {
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
}

.loading {
    color: #007bff;
    font-size: 16px;
    margin-top: 20px;
}

.error {
    color: #dc3545;
    font-size: 16px;
    margin-top: 20px;
    padding: 12px;
    background: #f8d7da;
    border-radius: 8px;
}

