body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.page {
    background: #fff;
    padding: 20px 40px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 800px;
    text-align: center;
    box-sizing: border-box; /* Include padding in width calculation */
}

/* Auth Page */
#auth-page {
    max-width: 400px;
}
.auth-forms div {
    margin-bottom: 20px;
}
input[type="email"],
input[type="password"] {
    width: calc(100% - 22px); /* Account for padding/border */
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box; /* Include padding in width calculation */
}
button {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 5px;
}
button:hover {
    background-color: #0056b3;
}
.error {
    color: red;
    margin-top: 10px;
    font-size: 0.9em;
}
.success {
    color: green;
    margin-top: 10px;
    font-size: 0.9em;
}

/* Dashboard Page */
#dashboard-page {
    text-align: left;
}
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}
header h1 {
    margin: 0;
    font-size: 1.5em;
}
#userEmailDisplay {
    font-weight: bold;
    color: #555;
    margin-right: 15px;
}
header #logoutBtn {
    background-color: #dc3545;
}
header #logoutBtn:hover {
    background-color: #c82333;
}
.folders {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.folder-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background-color: #f9f9f9;
}
.folder-card h3 {
    margin-top: 0;
    color: #333;
    font-size: 1.2em;
}
.folder-card button {
    margin-top: 10px;
    width: 100%;
}
.file-list {
    margin-top: 15px;
    max-height: 200px; /* Scrollable area for files */
    overflow-y: auto;
    border-top: 1px solid #eee;
    padding-top: 10px;
}
.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    font-size: 0.9em;
}
.file-item:last-child {
    border-bottom: none;
}
.file-item span {
    flex-grow: 1;
    word-break: break-all;
    margin-right: 10px;
}
.file-item button {
    background-color: #28a745; /* Download button */
    margin-left: 5px;
    padding: 5px 10px;
    font-size: 0.8em;
    width: auto; /* Override 100% width */
    flex-shrink: 0; /* Prevent buttons from shrinking */
}
.file-item button.delete-btn {
    background-color: #dc3545;
}
.file-item button:hover {
    opacity: 0.9;
}
