/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Body Styling */
body {
    background-color: #f4f7fc;
    color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
}

/* Container */
.container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 600px;
    width: 100%;
}

/* Title */
h1 {
    color: #007bff;
    font-size: 24px;
    margin-bottom: 10px;
}

/* Upload Box */
.upload-box {
    border: 2px dashed #007bff;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    cursor: pointer;
    background: #eaf1ff;
    transition: background 0.3s;
}

.upload-box:hover {
    background: #d9e7ff;
}

.upload-label {
    display: block;
    color: #007bff;
    font-weight: bold;
    cursor: pointer;
}

/* Hidden File Input */
input[type="file"] {
    display: none;
}

/* File List */
#fileList {
    margin-top: 10px;
    text-align: left;
    max-height: 100px;
    overflow-y: auto;
    padding: 5px;
}

/* File Name Styling */
.file-name {
    background: #eaf1ff;
    color: #007bff;
    padding: 5px;
    border-radius: 5px;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: bold;
}

/* Buttons */
button,
.download-btn,
.back-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s;
}

button:hover,
.download-btn:hover {
    background: #0056b3;
}

/* Back to Upload Button */
.back-btn {
    background: #6c757d;
}

.back-btn:hover {
    background: #5a6268;
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

thead {
    background: #007bff;
    color: white;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

tr:hover {
    background-color: #f1f1f1;
}

/* Editable Table Cells */
td[contenteditable="true"] {
    background-color: #f8f9fa;; /* Light yellow to indicate editability */
    outline: none;
    cursor: text;
}

/* Save Button */
.save-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: #28a745; /* Green */
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.save-btn:hover {
    background: #218838;
}
/* Flashes */
.flashes {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.flashes li {
    padding: 10px;
    margin-bottom: 5px;
    border-radius: 4px;
    color: white;
}

.flashes li.error {
    background-color: #f44336; /* Red */
}

.flashes li.warning {
    background-color: #ff9800; /* Orange */
}

.flashes li.message {
    background-color: #4CAF50; /* Green */
}
