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

body {
    font-family: Arial, sans-serif;
    background: #f5f7fb;
    color: #1e293b;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */

header {
    background: white;
    padding: 22px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
}

header h2 {
    font-size: 25px;
}

header h2 span {
    color: #6366f1;
}

header p {
    color: #64748b;
    font-size: 14px;
}

/* Main section */

main {
    flex: 1;
    padding: 70px 20px;
}

.hero {
    text-align: center;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 38px;
    margin-bottom: 15px;
}

.hero p {
    color: #64748b;
    font-size: 17px;
}

/* Upload container */

.upload-container {
    max-width: 650px;
    margin: auto;
    background: white;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.06);
}

.upload-box {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 55px 20px;
    text-align: center;
    transition: 0.3s;
}

.upload-box.dragover {
    border-color: #6366f1;
    background: #eef2ff;
}

.upload-icon {
    font-size: 45px;
    color: #6366f1;
    margin-bottom: 15px;
}

.upload-box h3 {
    margin-bottom: 12px;
}

.upload-box p {
    color: #94a3b8;
    margin-bottom: 15px;
}

button {
    background: #6366f1;
    color: white;
    border: none;
    padding: 13px 25px;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: 0.2s;
}

button:hover {
    background: #4f46e5;
    transform: translateY(-2px);
}

.upload-box small {
    display: block;
    margin-top: 20px;
    color: #94a3b8;
}

/* Image preview */

#previewContainer {
    text-align: center;
    margin-top: 25px;
}

#imagePreview {
    max-width: 100%;
    max-height: 350px;
    object-fit: contain;
    border-radius: 10px;
    background:
        conic-gradient(#e5e7eb 25%, white 0 50%, #e5e7eb 0 75%, white 0);
    background-size: 20px 20px;
}

#fileName {
    margin: 15px 0;
    color: #64748b;
}

#removeButton {
    background: #ef4444;
}

#removeButton:hover {
    background: #dc2626;
}

#statusMessage {
    text-align: center;
    margin-top: 20px;
    color: #6366f1;
}

/* Footer */

footer {
    text-align: center;
    padding: 25px;
    color: #94a3b8;
    font-size: 14px;
}

/* Mobile responsiveness */

@media (max-width: 600px) {
    header {
        flex-direction: column;
        gap: 10px;
    }

    .hero h1 {
        font-size: 28px;
    }

    main {
        padding: 45px 15px;
    }

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