:root {
    --primary-color: #4361ee;
    --primary-light: #edf2ff;
    --secondary-color: #3f37c9;
    --text-color: #333;
    --light-gray: #f8f9fa;
    --border-color: #ddd;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f5f7fa;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    max-width: 600px;
    width: 100%;
    padding: 40px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

h2 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 24px;
    font-weight: 600;
    text-align: center;
}

.drop-zone {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 40px 20px;
    margin-bottom: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--light-gray);
    position: relative;
}

.drop-zone:hover {
    border-color: var(--primary-color);
    background-color: var(--primary-light);
}

.drop-zone.dragover {
    border-color: var(--primary-color);
    background-color: var(--primary-light);
    transform: scale(1.01);
}

.drop-zone-text {
    color: #666;
    margin-bottom: 8px;
}

.drop-zone-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.file-info {
    margin-top: 16px;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 500;
}

input[type='file'] {
    display: none;
}

.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

input[type='date'] {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    font-weight: 600;
}

button:hover {
    background-color: var(--secondary-color);
}

#browseButton {
    width: auto; 
    margin-top: 16px; 
    padding: 8px 16px; 
    display: inline-block;
}

#removeFile {
    width: auto; 
    padding: 4px 8px; 
    margin-left: 8px; 
    background-color: #dc3545;
}

#messages {
    margin-top: 24px;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: none;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: none;
}

.loading {
    display: inline-block;
    margin-right: 8px;
    width: 16px;
    height: 16px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Animation for drag and drop */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.animate-pulse {
    animation: pulse 1.5s infinite;
}