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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
}

.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Image display styles */
.image-container {
    text-align: center;
}

.sticker-image {
    max-width: 100%;
    max-height: 80vh;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
}

/* Upload interface styles */
.upload-container {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.upload-container h2 {
    margin-bottom: 10px;
    color: #333;
}

.upload-container p {
    margin-bottom: 30px;
    color: #666;
}

.upload-container code {
    background-color: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9em;
}

.upload-box {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 40px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fafafa;
    margin-bottom: 20px;
}

.upload-box:hover {
    border-color: #007bff;
    background-color: #f0f8ff;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.upload-hint {
    font-size: 0.9em;
    color: #888;
    margin: 5px 0;
}

.upload-form {
    width: 100%;
}

/* Button styles */
button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

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

.progress-fill {
    height: 100%;
    background-color: #007bff;
    width: 0%;
    transition: width 0.3s ease;
}

#progressContainer {
    margin-top: 20px;
}

#progressText {
    margin-bottom: 0;
    font-size: 0.9em;
    color: #666;
}

/* Error text */
.error-text {
    color: #dc3545;
    margin-top: 15px;
    font-size: 0.9em;
}

/* Responsive design */
@media (max-width: 480px) {
    .upload-container {
        padding: 30px 20px;
    }

    .upload-box {
        padding: 30px 15px;
    }

    .sticker-image {
        max-height: 60vh;
    }
}
