body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background-color: #fff;
    color: #333;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

h1 {
    font-size: 1.2em;
    margin-bottom: 10px;
}

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

li {
    margin: 10px 0;
}

a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

hr {
    border: 0;
    border-top: 1px solid #ccc;
    margin: 20px 0;
}

/* Letter Container */
.letter-container {
    background-color: #fff;
    width: 60%;
    padding: 40px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    border: 1px solid #e0dcb8;
    line-height: 1.8;
    position: relative;
    font-size: 1.1em;
}

.letter-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.date {
    font-size: 0.9em;
}

.letter-address {
    text-align: left;
    font-size: 0.9em;
    font-weight: bold;
    text-decoration: underline;
}

.letter-body {
    text-align: left;
}

.subject {
    font-weight: bold;
    font-size: 1em;
    margin-bottom: 35px;
    text-decoration: underline;
}

.salutation {
    margin-top: 20px;
    margin-bottom: 20px;
}

.content {
    margin-bottom: 50px;
}

.closing {
    margin-top: 45px;
    text-align: left;
}

/* Pseudo Elements */
.letter-container::before,
.letter-container::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 10px;
    background: linear-gradient(to right, #e0dcb8, #fff, #e0dcb8);
    left: 0;
}

.letter-container::before {
    top: 0;
}

.letter-container::after {
    bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .letter-container {
        width: 90%;
        padding: 20px;
    }
}

/* Sidebar Styles */
.sidebar {
    width: 25%;
    min-width: 250px;
    background-color: #f3f3f3;
    border-right: 1px solid #ccc;
    padding: 10px;
    height: 100vh;
}

.content-area {
    flex: 1;
    padding: 10px;
    width: 70%;
    height: 100vh;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Specific Classes */
.email-field {
    display: block;
    margin-bottom: 10px;
}

.email-field strong {
    display: block; 
    width: 80px; /* Adjust label width as needed */
}

.email-body {
    text-align: left;
    line-height: 1.8;
    font-size: 1.1em;
    margin-top: 20px;
}

.email-metadata {
    margin-bottom: 20px;
    width: 100%;
    display: block;
}

/* Top Navigation Bar */
.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #0078D4;
    color: white;
    padding: 10px 20px;
}

.logo {
    font-size: 1.2em;
    font-weight: bold;
}

.search-bar {
    flex: 1;
    margin: 0 20px;
    padding: 5px;
    font-size: 1em;
}

.action-icons button {
    background: none;
    border: none;
    color: white;
    margin-left: 10px;
    cursor: pointer;
}

.user-profile {
    font-size: 1em;
}

/* Three-Column Layout */
.mail-columns {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.folder-pane {
    width: 20%;
    background-color: #f3f3f3;
    border-right: 1px solid #ccc;
    padding: 10px;
    overflow-y: auto;
}

.folder-pane h1 {
    font-size: 1.2em;
    margin-bottom: 10px;
}

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

.folder-pane li {
    margin: 10px 0;
}

.folder-pane a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.message-list {
    width: 20%;
    background-color: #fff;
    border-right: 1px solid #ccc;
    padding: 10px;
    overflow-y: auto;
}

.message-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #ccc;
    cursor: pointer;
}

.message-item a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.message-item.active {
    background-color: #e0f7fa;
    font-weight: bold;
}

.message-item.thread {
    padding-left: 20px;
}

.reading-pane {
    width: 80%;
    padding: 10px;
    overflow-y: auto;
}

.email-metadata {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.email-metadata .email-field {
    display: contents;
}

.email-metadata .email-field strong {
    font-weight: bold;
    color: #0078D4;
}