body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, #00467f, #0094cb);
    color: #333;
}

#login-container,
#email-container {
    width: 400px;
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.hidden {
    display: none;
}

h1 {
    text-align: center;
    color: #00467f;
    font-weight: 700;
    margin-bottom: 20px;
}

label {
    font-weight: 500;
    margin-bottom: 5px;
    display: block;
    color: #333;
}

input[type="text"],
input[type="password"] {
    width: calc(100% - 40px);
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

.username-container span {
    font-size: 0.9rem;
    margin-left: 5px;
    color: #555;
    display: inline-block;
    align-self: center;
}

.password-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.password-container button {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #0078d4;
}

button[type="submit"] {
    width: 100%;
    background: #0078d4;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 0;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background: #005ba1;
}

button[type="submit"]:disabled {
    background: #c7d2d8;
    cursor: not-allowed;
}

#error-message {
    color: #d93025;
    font-size: 0.9rem;
    text-align: center;
}

#email-container {
    width: 800px;
    padding: 20px;
    background: #f8f9fa;
    position: relative;
}

#warning-banner {
    background: #ffcc00;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    color: #333;
    position: fixed;
    top: 2rem;
    width: 770px;
}

#warning-banner button {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #555;
}

#user-info {
    position: absolute;
    top: -0.3rem;
    right: -3rem;
    cursor: pointer;
    border-radius: 0 0 0 6px;
    background: #f8f9fa;
    margin-bottom: 2rem;
    border-radius: 12px;
    padding: 10px;
}

.round-avatar {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    margin-right: 10px;
}

.card {
    user-select: none;
    border: 1px solid #ddd;
    padding: 15px;
    margin: 10px 0;
    border-radius: 6px;
    background: white;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card.unread {
    position: relative;
}

.card.unread::before {
    content: "🔵";
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 0.8rem;
    color: #007bff;
}

.card.attachment {
    position: relative;
}

.read.attachment::after {
    content: "🔗";
    position: absolute;
    bottom: 5px;
    right: 5px;
    font-size: 1.5rem;
    color: #555;
}
.unread.attachment::after {
    content: "🔗";
    position: absolute;
    bottom: 5px;
    right: 5px;
    font-size: 1.5rem;
    color: #555;
}

.card.read {
    background-color: #e8ecef;
}

.card-content {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #555;
}

@media (max-width: 768px) {
    #email-container {
        width: 95%;
    }
}

img.round-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #ccc;
    object-fit: cover;
    transition: all 0.3s ease;
}

.profile-card-container {
    user-select: none;
}

.profile-card-container .display-info img.round-avatar {
    width: 72px;
    height: 72px;
}

.display-info {
    display: flex;
    align-items: center;
}

#email-content {
    display: flex;
    height: 80vh;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
}

#email-list {
    width: 30%;
    background-color: #f7f7f7;
    border-right: 1px solid #ddd;
    overflow-y: auto;
    padding: 10px;
}

#email-list .card {
    cursor: pointer;
    transition: background-color 0.2s;
}

#email-list .card:hover {
    background-color: #e0e0e0;
}

#email-details {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    width: 70%;
}

#email-details p {
    font-size: 1rem;
    color: #555;
}

.active-email {
    border-left: 3px solid #0078d4;
    background-color: aliceblue !important;
}

.card .date {
    margin-left: auto;
}

a {
    color: #0078d4;
}

.logout-button {
    background: none;
    border: 1px solid #0078d4;
    font-size: 1.2rem;
    padding: 5px 0px;
    cursor: pointer;
    color: #0078d4;
    border-radius: 6px;
}

.logout-button:hover {
    background: #0078d4;
    color: white;
}

.logout-button:active {
    background: #005ba1;
    color: white;
}

.email-signature {
    font-size: 0.8rem;
    color: #555;
    margin-top: 20px;
    font-style: italic;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

::-webkit-scrollbar-corner {
    background: #f1f1f1;
}

#company-title {
    position: absolute;
    top: 42%;
    left: 0;
    transform: translateX(-500px) rotate(-90deg);
    font-size: 4rem;
    font-weight: 700;
    color: rgba(240, 248, 255, 0.293);
    text-align: center;
    width: 100vh;
    margin-top: 20px;
    text-transform: uppercase;
}

html,
body {
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

* {
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

#email-container {
    word-wrap: break-word;
    overflow-wrap: break-word;
}


.in-email-list .card p {
    padding: 0px 4px;
    margin: 0px;
}

clue {
    color: #0078d4;
    font-weight: 700;
}

/*  if an anchor element has the download attribute, make it like a round cornered button thing to be ovious it's an attachment */
a[download] {
    display: inline-block;
    padding: 5px 10px;
    border: 1px solid #0078d4;
    color: #0078d4;
    text-decoration: none;
    margin-top: 10px;
}

a[download]:hover {
    background: #0078d4;
    color: white;
}

a[download]:active {
    background: #005ba1;
}

a[download]::before {
    content: "🔗";
    margin-right: 5px;
}
