body {
    font-family: Arial, sans-serif;
    background-color: #121212;  /* Dark background */
    color: #e0e0e0;  /* Light text color */
    margin: 0;
    padding: 0;
}

.container {
    width: 500px;
    margin: 50px auto;
    text-align: center;
}

h1 {
    color: #ffffff;  /* White heading color */
}

/* Drop Zone Styles */
#drop_zone {
    width: 100%;
    height: 200px;
    border: 3px dashed #444;  /* Darker border */
    border-radius: 10px;
    background-color: #1e1e1e;  /* Dark background */
    color: #777;  /* Lighter text */
    line-height: 200px;
    font-size: 18px;
    position: relative;
    margin-bottom: 20px;
    cursor: pointer;
}

#drop_zone.dragover {
    border-color: #ffffff;
    color: #ffffff;
    background-color: #333333;  /* Slightly lighter background on hover */
}

#drop_zone p {
    margin: 0;
}

#file_select_btn {
    margin-top: -100px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px 20px;
    font-size: 16px;
}

#progress {
    font-size: 16px;
    color: #cccccc;  /* Light text */
}

/* Upload Queue Styles */
#upload_queue {
    margin-top: 20px;
}

.file-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.file-name {
    flex: 1;
}

.progress-bar-container {
    width: 60%;
    background-color: #333;  /* Darker background for progress bar */
    border-radius: 4px;
    margin: 0 10px;
    overflow: hidden;
}

.progress-bar {
    height: 20px;
    width: 0%;
    background-color: #4caf50;  /* Bright green progress bar */
    transition: width 0.2s ease;
}

.progress-percent {
    width: 50px;
    text-align: right;
}

/* Login Form Styles */
form {
    max-width: 300px;
    margin: 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    font-weight: bold;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    background-color: #333;  /* Dark input background */
    color: #e0e0e0;  /* Light input text */
    border: 1px solid #444;  /* Dark border */
}

button[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: #4caf50;  /* Bright submit button */
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

button[type="submit"]:hover {
    background-color: #388e3c;  /* Darker green on hover */
}

.error {
    color: #ff6b6b;  /* Bright red error text */
    margin-bottom: 15px;
    text-align: center;
}

.error-box {
    background-color: #331111;  /* Dark red background */
    border: 1px solid #ff6b6b;  /* Red border */
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
    color: #ff6b6b;  /* Red text */
    text-align: center;
}

/* Flash Message Styles */
.flashes {
    list-style-type: none;
    padding: 0;
    margin: 10px 0;
}

.flashes li {
    background-color: #444;  /* Dark background */
    color: #e57373;  /* Light red text */
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 5px;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    color: #e0e0e0;  /* Light text color */
}

thead {
    background-color: #333;  /* Dark table header */
}

th, td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #444;  /* Darker border */
    vertical-align: middle;
}

tr:hover {
    background-color: #1e1e1e;  /* Lighter hover */
}

/* Button Styles */
button {
    padding: 5px 10px;
    background-color: #4caf50;  /* Bright button */
    border: none;
    color: white;
    cursor: pointer;
}

button:hover {
    background-color: #388e3c;  /* Darker hover */
}

a {
    color: #4caf50;  /* Bright link color */
    text-decoration: none;
    margin-right: 10px;
}

a:hover {
    text-decoration: underline;
}

/* Icon Button Styles */
.icon-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0 5px;
    font-size: 18px;
    line-height: 1;
}

.icon-button a, .icon-button button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    line-height: 1;
}

.icon-button a i, .icon-button button i {
    color: #4caf50;  /* Bright icon color */
    font-size: 18px;
    vertical-align: middle;
}

.icon-button button i {
    color: #e57373;  /* Light red for delete icon */
}

/* Additional Alignment Fixes */
td, th, .file-name {
    vertical-align: middle;
    line-height: 1.5;
}

/* Sortable Table Styles */
.sortable {
    cursor: pointer;
    position: relative;
}

.sortable i {
    margin-left: 5px;
    font-size: 0.8em;
    opacity: 0.5;
}

.sortable.asc i:before {
    content: "\f0de";  /* fa-sort-up */
    opacity: 1;
}

.sortable.desc i:before {
    content: "\f0dd";  /* fa-sort-down */
    opacity: 1;
}

/* Adjust container width for the file table */
.container {
    width: 800px;  /* Increased width to accommodate the size and date columns */
}

/* Permission Styles */
.permissions-info {
    background-color: #1e1e1e;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: left;
}

.permission-enabled {
    color: #4caf50;  /* Green */
    font-weight: bold;
}

.permission-disabled {
    color: #e57373;  /* Red */
    font-weight: bold;
}

.no-permission-message {
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
    color: #e57373;  /* Red */
    border-left: 4px solid #e57373;
}
