body {
    font-family: sans-serif;
    background-color: #f3f4f6;
    margin: 0;
}

.color-red {
    color: #850000;
}

.color-black {
    color: #111729;
}

.header {
    background-color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow:
        0 1px 3px 0 rgb(0 0 0 / 0.1),
        0 1px 2px -1px rgb(0 0 0 / 0.1);
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}

.header h1 {
    font-size: 1.5rem;
    color: #374151;
}

.logout-btn {
    background-color: #850000;
    color: white;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    border: none;
    cursor: pointer;
}

h2 {
    font-size: 1.25rem;
    color: #4b5563;
    margin-bottom: 1.5rem;
}

.buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    justify-content: flex-end;
}

.back-button {
    background-color: #111729;
    color: white;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    border: none;
    cursor: pointer;
}

.create-folder-btn,
.upload-file-btn {
    background-color: #111729;
    color: white;
    font-weight: medium;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    border: none;
    cursor: pointer;
}

.upload-file-btn {
    background-color: #111729;
}

.modal {
    position: fixed;
    z-index: 10;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: 0.5rem;
    text-align: left;
    overflow: hidden;
    box-shadow:
        0 20px 25px -5px rgb(0 0 0 / 0.1),
        0 8px 10px -6px rgb(0 0 0 / 0.1);
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    margin: 2rem auto;
    max-width: 32rem;
    width: 80%;
}

.modal-header {
    padding: 1.25rem;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 500;
    color: #374151;
}

.modal-body {
    padding: 1rem;
}

.modal-body input[type="text"] {
    box-shadow:
        0 1px 3px 0 rgb(0 0 0 / 0.1),
        0 1px 2px -1px rgb(0 0 0 / 0.1);
    appearance: none;
    border: 1px solid #e5e7eb;
    border-radius: 0.25rem;
    width: calc(100% - 1.5rem); /* Adjusted width to account for padding */
    padding: 0.5rem 0.75rem;
    color: #374151;
    line-height: 1.25;
    font-size: 1rem;
    outline: none;
}

.modal-body input[type="email"] {
    box-shadow:
        0 1px 3px 0 rgb(0 0 0 / 0.1),
        0 1px 2px -1px rgb(0 0 0 / 0.1);
    appearance: none;
    border: 1px solid #e5e7eb;
    border-radius: 0.25rem;
    width: calc(100% - 1.5rem); /* Adjusted width to account for padding */
    padding: 0.5rem 0.75rem;
    color: #374151;
    line-height: 1.25;
    font-size: 1rem;
    outline: none;
}

.modal-footer {
    padding: 1rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    background-color: #f9fafb;
}

.modal-footer button {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
}

.modal-footer button:first-child {
    background-color: #22c55e;
    color: white;
}

.modal-footer button:last-child {
    background-color: white;
    color: #374151;
    border: 1px solid #d1d5db;
}

.files-container {
    margin-top: 1rem;
}

.file-item {
    background-color: white;
    padding: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
}

.file-info-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
}

.file-info-container .font-bold {
    font-weight: regular;
}

.file-info {
    font-size: 0.875rem;
    color: #6b7280;
}

#email-list {
    margin-top: 0.5rem;
}

#email-list div {
    background-color: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    margin-right: 0.25rem;
    display: inline-block;
}

.file-actions {
    display: flex;
}

.file-actions button {
    background-color: #111729;
    color: white;
    font-weight: medium;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    border: none;
    cursor: pointer;
    margin-left: 0.5rem;
}

.file-actions button:last-child {
    background-color: #850000;
}

.share-btn {
    background-color: #2563eb !important;
}

.ri-share-line {
    color: white;
}

.folder-link {
    cursor: pointer;
}

.folder-link:hover {
    text-decoration: underline;
}

.ri-logout-box-line,
.ri-folder-add-line,
.ri-upload-2-line,
.ri-arrow-left-line,
.ri-download-2-line,
.ri-delete-bin-line,
.ri-folder-line,
.ri-file-line,
.ri-share-line {
    font-size: 1.5em;
    vertical-align: middle;
}

/* Styles for index.html */
.login-container {
    background-color: white;
    padding: 2.5rem;
    border-radius: 0.5rem;
    box-shadow:
        0 20px 25px -5px rgb(0 0 0 / 0.1),
        0 8px 10px -6px rgb(0 0 0 / 0.1);
    text-align: center;
    width: 80%;
    max-width: 32rem;
    position: absolute; /* Use absolute positioning */
    top: 50%; /* Position at 50% from the top */
    left: 50%; /* Position at 50% from the left */
    transform: translate(-50%, -50%); /* Center the element */
}

.login-container h1 {
    font-size: 2rem;
    color: #111729;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.login-container p {
    color: #111729;
    margin-bottom: 2rem;
}

.login-button {
    background-color: #111729;
    color: white;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    border: none;
    cursor: pointer;
}

@media (max-width: 640px) {
    .file-actions {
        flex-direction: column; /* Stack buttons vertically */
        align-items: flex-start; /* Align buttons to the start */
    }

    .file-actions button {
        margin-left: 0; /* Remove left margin */
        margin-bottom: 0.5rem; /* Add bottom margin for spacing */
        width: 100%; /* Make buttons full width */
        box-sizing: border-box; /* Include padding and border in the element's total width and height */
    }
}
