body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f7f6;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
}

.container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 600px;
    width: 100%;
}

h1 {
    color: #333;
    margin-bottom: 10px;
}

p {
    color: #666;
    margin-bottom: 30px;
}

.upload-area {
    border: 2px dashed #007bff;
    border-radius: 8px;
    padding: 40px 20px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.upload-area.dragover {
    background-color: #e9f5ff;
    border-color: #0056b3;
}

.upload-area p {
    margin: 0;
    color: #007bff;
    font-weight: bold;
}

.browse-btn {
    color: #0056b3;
    text-decoration: underline;
}

#file-list {
    margin-bottom: 20px;
    text-align: left;
}

.file-item {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 10px 15px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-item span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 10px;
}

.remove-file-btn {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 1.2em;
    cursor: pointer;
    padding: 0 5px;
}

button[type="submit"] {
    background-color: #007bff;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

button[type="submit"]:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

button[type="submit"]:not(:disabled):hover {
    background-color: #0056b3;
}

#upload-progress {
    margin-top: 20px;
}

#upload-progress h2 {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 10px;
}

progress {
    width: 100%;
    height: 20px;
    border-radius: 10px;
    overflow: hidden; /* Ensures the fill respects the border radius */
}

/* Style the progress bar background */
progress::-webkit-progress-bar {
    background-color: #e9ecef;
    border-radius: 10px;
}

/* Style the progress bar value */
progress::-webkit-progress-value {
    background-color: #28a745;
    border-radius: 10px;
    transition: width 0.4s ease;
}

/* Firefox specific styles */
progress {
    background-color: #e9ecef;
    border: none; /* Remove default border */
}

progress::-moz-progress-bar {
    background-color: #28a745;
    border-radius: 10px;
}


#progress-text {
    display: block;
    margin-top: 5px;
    font-weight: bold;
    color: #28a745;
}

#share-link-container {
    margin-top: 30px;
    background-color: #e9f5ff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #b8daff;
}

#share-link-container h2 {
    color: #0056b3;
    margin-bottom: 10px;
    font-size: 1.3em;
}

#share-link-container p {
    color: #333;
    margin-bottom: 15px;
}

#share-link {
    width: calc(100% - 110px); /* Adjust width considering the button */
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    margin-right: 10px;
    font-size: 0.95em;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

#copy-link-btn {
    background-color: #28a745;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95em;
    transition: background-color 0.3s ease;
}

#copy-link-btn:hover {
    background-color: #218838;
}

.error {
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 4px;
    margin-top: 20px;
}