.gmail-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

#messagelist.gmail-messages-list {
    border-collapse: collapse;
    width: 100% !important;
    table-layout: fixed;
    margin: 0;
    padding: 0;
    border: none;
}

#messagelist.gmail-messages-list thead {
    display: none;
}

#messagelist.gmail-messages-list tbody {
    width: 100% !important;
    display: table;
    table-layout: fixed;
}

.gmail-message-row {
    background-color: #fff;
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    width: 100% !important;
    display: table-row;
}

.gmail-message-row:hover {
    background-color: #f8f9fa;
    border-left-color: #1a73e8;
}

.gmail-message-row.selected {
    background-color: #e8f0fe;
    border-left-color: #1a73e8;
}

.gmail-message-row.unread .gmail-subject-line {
    font-weight: bold;
}

.gmail-message-cell {
    padding: 12px 16px !important;
    border-bottom: 1px solid #f1f3f4;
    width: 100% !important;
    display: table-cell;
    box-sizing: border-box;
}

.gmail-subject-line {
    color: #202124;
    font-size: 14px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    display: block;
}

.gmail-from-line {
    color: #5f6368;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.gmail-subject-cell {
    width: 100% !important;
    padding-right: 0 !important;
    box-sizing: border-box;
}

.gmail-content-frame {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 20px;
    padding: 20px;
    background: white;
    min-height: 300px;
    max-height: 80vh;
    overflow: auto;
}

.gmail-message-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.gmail-message-header .subject {
    font-size: 18px;
    margin-bottom: 10px;
}

.gmail-message-header .meta {
    color: #666;
    font-size: 13px;
}

.gmail-message-body {
    padding: 10px 0;
    overflow: auto;
}

.gmail-message-body img {
    max-width: 100%;
    height: auto;
}

.gmail-message-body pre {
    white-space: pre-wrap;
    background: #f5f5f5;
    padding: 10px;
    border-radius: 4px;
}

.gmail-attachments-list {
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 15px;
}

.gmail-attachment-item {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 10px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f8f9fa;
}

.gmail-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.gmail-error {
    background: #ffeaea;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
}

.date {
    color: #777;
    font-size: 12px;
}

.gmail-debug {
    font-family: monospace;
    padding: 10px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    margin-top: 20px;
    white-space: pre-wrap;
    word-break: break-all;
    font-size: 12px;
    color: #333;
    max-height: 200px;
    overflow: auto;
}

.gmail-mailbox-name {
    font-weight: bold;
    color: #1a73e8;
}

#gmail-message-view {
    padding: 0;
    margin: 0;
}

.gmail-email-header {
    margin-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 0;
}

.gmail-email-body {
    padding: 0;
}

#gmail-message-frame {
    width: 100%;
    height: auto;
    min-height: 100vh;
    border: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
} 