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

body {
    background-color: #f5f5f7;
    font-family: 'Helvetica', sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 40px;
    border-radius: 20px;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.container:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

h1 {
    font-size: 2.2em;
    font-weight: 500;
    color: #1c1c1e;
    margin-bottom: 25px;
}

/* Form styling */
#uploadForm {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

input[type="file"], input[type="text"] {
    padding: 12px;
    border: 1px solid #e0e0e5;
    border-radius: 8px;
    background-color: #fafafa;
    width: 100%;
    transition: border-color 0.3s ease;
}

input[type="file"]:focus, input[type="text"]:focus {
    outline: none;
    border-color: #0071e3;
}

button {
    padding: 12px 25px;
    background-color: #0071e3;
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s;
    width: 100%;
}

button:hover {
    background-color: #005bb5;
    transform: translateY(-3px);
}

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

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

/* Upload status messages */
.hidden {
    display: none;
}

#statusMessage {
    font-size: 1.2em;
    margin-top: 10px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.success {
    color: green;
}

.failure {
    color: red;
}
