/* General body styles */
body {
    font-family: Arial, sans-serif;
    background-image: url('images/background.png'); /* Replace with your actual image URL */
    background-size: cover;       /* Makes the image cover the entire background */
    background-repeat: no-repeat; /* Prevents tiling */
    background-position: center;  /* Center the image */
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    flex-direction: column;
}


.container {
    text-align: center;
    padding: 20px;
    background-color: rgba(255, 247, 232, 0.63);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    max-width: 600px; /* Increased from 400px to give more breathing room */
    width: 100%;
}
button {
    transition-duration: 0.3s;
    border-radius: 8px;
    border-width: 1px;
    padding: 5px;
    padding-left: 8px;
    padding-right: 8px;
    margin-left: 5px;
    margin-right: 5px;
  }
  
button:hover {
    background-color: #e9dae9; /* Green */
    color: black;
  }
input {
    margin: 10px;
}
h1 {
    font-size: 2rem;
    margin-bottom: 25px;
}

#fileList {
    text-align: left;
    display: block;
    margin: 0 auto;
    padding-left: 0;
    width: 100%; /* Ensure full width usage */
}

/* Optional: style nested items */
#fileList li {
    list-style-type: none;  /* Remove bullets */
    margin: 4px 0;
}

#fileList table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

#fileList td {
    padding: 4px;
    vertical-align: middle;
}

.filename-cell {
    text-align: left;
    width: 85%; /* Increased from 100% to allow room for download button */
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding-right: 10px; /* Add some space on the right */
    position: relative;
}

.download-cell {
    text-align: right;
    width: 15%; /* Shrink and align the button */
    white-space: nowrap;
}

.filename-cell .file-icon {
    margin-right: 5px;
}

.filename-cell .file-name {
    display: inline-block;
    vertical-align: middle;
    max-width: 100%; /* Ensure it uses the available space */
    overflow: visible; /* Allow the name to be visible if it overflows */
    text-overflow: clip; /* Don't use ellipsis, but allow text to overflow */
    white-space: normal; /* Allow wrapping if necessary */
}

.folder-toggle {
    font-weight: bold;
    cursor: pointer;
}
