body {
    font-family: Arial, sans-serif;
    background: linear-gradient(to top, #f9e5c9, #66c7cc);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    margin: 0;
}

.container {
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 80%;
    max-width: 700px;
    padding: 20px;
    text-align: left;
    margin-top: 100px; /* Adjusted to leave space for the background color */

}

h1 {
    font-size: 1.5em;
    margin-bottom: 20px;
}

/* Styled buttons */
.styled-button {
    background-color: #f77f65;
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 10px 5px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
   
}

.styled-button:hover {
    background-color: #f55f4a;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 25px;
    margin: 10px 0;
    height: 20px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: #66c7cc;
    width: 0;
    transition: width 0.3s;
}

/* Storage Bar */
.storage-bar {
    background-color: #e0e0e0;
    border-radius: 25px;
    height: 20px;
    width: 100%;
    margin: 10px 0;
    overflow: hidden;
}

.storage-used {
    height: 100%;
    background-color: #66c7cc;
    width: 0;
    transition: width 0.3s;
}

.file-list {
    height: 400px; /* Fixed height for the file list */
    overflow-y: auto; /* Enable scrolling */
}

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

.file-list li {
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

/* File Entry with dynamically adjusted name */
.file-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-name {
    max-width: calc(100% - 150px);  /* Adjust the available width based on screen size */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    color: #007bff;
}

.file-name:hover {
    text-decoration: underline;
}

.file-info {
    font-size: 0.9em;
    color: gray;
    text-align: right;
    padding-left: 10px;
}

/* Storage info text */
.storage-info {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 10px;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    .container {
        width: 85%;
        margin-top: 80px; /* More space to show the background on smaller screens */
    }
    .file-list {
        height: 320px; /* Reduced height to save space */
    }
    .styled-button {
        padding: 10px 22px;
        font-size: 14px;
        margin: 10px 5px;
    }
    .storage-info {
    font-size: 0.7em;
    }
    .file-info {
    font-size: 0.7em;
    }
    .file-name {
    font-size: 0.8em;
    }


}
