body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f6;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.container {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 900px;
    width: 100%;
    text-align: center;
}

h1 { color: #333; margin-bottom: 5px; }
p { color: #666; margin-bottom: 25px; }

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

.upload-section:hover, .upload-section.dragover {
    border-color: #4a90e2;
    background-color: #f0f7ff;
}

.upload-section p {
    margin-bottom: 15px;
    color: #333;
}

button, .btn {
    background-color: #4a90e2;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s;
}

button:hover, .btn:hover {
    background-color: #357abd;
}

#cropContainer { margin-top: 30px; }

.img-container {
    max-width: 100%;
    margin-bottom: 20px;
    max-height: 600px;
    overflow: hidden;
}

#previewImg { max-width: 100%; }

.actions { margin-top: 15px; }

#resultContainer {
    margin-top: 40px;
    padding: 25px;
    background: #e7f3ff;
    border-radius: 8px;
}

.download-links {
    margin: 20px 0;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.info { font-size: 0.9em; color: #888; margin-top: 15px; }

/* Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

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

#loading {
    padding: 20px;
    margin-top: 20px;
}
