@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&family=Playfair+Display:wght@400;700&display=swap');

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #f4f7f9;
    color: #333;
}

.body-content {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.content-section {
    display: flex;
    background-color: #1a1a1a;
    color: #ffffff;
    justify-content: center;
    align-items: flex-start;
    padding: 80px 5%;
}

.description {
    flex: 1;
    padding-right: 40px;
}

.upload-form-container {
    flex: 1;
    background-color: #fff;
    color: #333;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-field {
    margin-bottom: 20px;
}

.form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="file"],
textarea#note {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-field input[type="text"]:focus,
.form-field input[type="email"]:focus,
.form-field input[type="file"]:focus,
textarea#note:focus {
    outline: none;
    border-color: #007BFF;
}

textarea#note {
    height: 150px;
    resize: vertical;
}

textarea#note::placeholder {
    color: #999;
    font-style: italic;
}

#uploadButton, #submitNewCaseButton {
    background-color: #007BFF;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

#uploadButton:hover, #submitNewCaseButton:hover {
    background-color: #0056b3;
}

.description h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: #fff;
    margin-bottom: 24px;
}

.description p {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #e0e0e0;
}

.site-footer {
    width: 100%;
    background-color: #ffffff;
    color: #333;
    text-align: center;
    padding: 20px 0;
    position: fixed;
    bottom: 50px;
    left: 0;
    right: 0;
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .content-section {
        flex-direction: column;
        align-items: center;
        padding: 60px 5%;
    }

    .description,
    .upload-form-container {
        width: 100%;
        max-width: 500px;
        padding: 30px;
    }
    
    .description {
        padding-bottom: 40px;
    }

    .form-field label,
    .form-field input,
    .form-field textarea {
        font-size: 14px;
    }
}

.button-container {
    position: relative;
}

.spinner {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid #007BFF;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

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

#submitNewCaseButton {
    margin-top: 20px;
    display: none;
}

.file-list {
    margin-top: 10px;
    padding-left: 0;
}

.file-list li {
    list-style-type: none;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-list li button {
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 12px;
}

.file-list li button:hover {
    background-color: #ff3333;
}
