/* File Upload Styling */

.file-input-container {
    margin-bottom: 20px;
}

.file-preview {
    margin-top: 15px;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
}

.file-preview h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #4a5568;
    font-size: 16px;
    font-weight: 500;
}

.file-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.file-list li {
    padding: 8px 10px;
    margin-bottom: 5px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-name {
    font-weight: 500;
    color: #2d3748;
    word-break: break-all;
}

.file-size {
    color: #718096;
    font-size: 0.9em;
    white-space: nowrap;
    margin-left: 10px;
}

.upload-status {
    margin-top: 15px;
    padding: 10px;
    background-color: #ebf8ff;
    border: 1px solid #bee3f8;
    border-radius: 4px;
    color: #2b6cb0;
    font-weight: 500;
}

/* Improved file input styling */
.custom-file-input {
    position: relative;
    display: inline-block;
    width: 100%;
    margin-bottom: 15px;
}

.custom-file-input input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 10;
}

.custom-file-button {
    display: inline-block;
    padding: 10px 15px;
    background-color: #4299e1;
    color: white;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.custom-file-button:hover {
    background-color: #3182ce;
}

.custom-file-text {
    margin-left: 10px;
    color: #718096;
}

/* Error message styling */
.upload-error {
    margin-top: 15px;
    padding: 10px;
    background-color: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 4px;
    color: #c53030;
    font-weight: 500;
}
