
.date-navigation-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 16px;
}

.date-nav-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
    min-width: 120px;
}

.date-nav-btn:hover:not(:disabled) {
    background: #2563eb;
    transform: translateY(-1px);
}

.date-nav-btn:disabled {
    background: #cbd5e1;
    color: #94a3b8;
    cursor: not-allowed;
    transform: none;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    flex: 1;
    text-align: center;
}

.email-header {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.email-info {
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.email-info strong {
    color: #1e293b;
    font-weight: 600;
    min-width: 80px;
    flex-shrink: 0;
}

.email-info span {
    color: #64748b;
    word-break: break-word;
}

/* Badge SaveToDrive compact */
.savetodrive-badge {
    background: linear-gradient(135deg, #28a745, #218838);
    color: white !important;
    border: none;
    padding: 4px 8px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 500;
    cursor: help;
    margin-left: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.savetodrive-badge:hover {
    background: linear-gradient(135deg, #218838, #1e7e34);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.4);
}

.email-view-buttons {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.blacklist-keywords-detected {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 16px;
    padding: 8px 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    flex-wrap: wrap;
}

.blacklist-label {
    font-size: 13px;
    font-weight: 600;
    color: #dc2626;
    white-space: nowrap;
}

.blacklist-keyword-tag {
    background: #dc2626;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.blacklist-keyword-remove {
    cursor: pointer;
    font-weight: bold;
    padding: 0 2px;
    border-radius: 2px;
    transition: background-color 0.2s;
    font-size: 10px;
    line-height: 1;
}

.attachment-indicator {
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    background-color: #7c3aed;
    color: white;
}

.attachment-details {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 16px;
    padding: 8px 12px;
    background: #f8faff;
    border: 1px solid #c7d2fe;
    border-radius: 6px;
    flex-wrap: wrap;
}

.attachment-label {
    font-size: 13px;
    font-weight: 600;
    color: #5b21b6;
    white-space: nowrap;
}

.attachment-count {
    background: #7c3aed;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.attachment-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
    width: 100%;
}

.attachment-name {
    background: #e0e7ff;
    color: #5b21b6;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attachment-name.clickable {
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.attachment-name.clickable:hover {
    background: #c7d2fe;
    border-color: #7c3aed;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(124, 58, 237, 0.2);
}

.view-button {
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    background: #e2e8f0;
    color: #64748b;
}

.view-button.active {
    background: #3b82f6;
    color: white;
}

.view-button:hover:not(.active) {
    background: #d1d5db;
}

.email-body-container {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    height: 300px;
    overflow: hidden;
}

.clean-view {
    padding: 24px;
    line-height: 1.6;
    color: #374151;
    font-size: 16px;
    display: block;
    height: 100%;
    overflow-y: auto;
}

.clean-view pre {
    white-space: pre-line;
    font-family: inherit;
    margin: 0;
    word-wrap: break-word;
}

.html-view {
    padding: 0;
    background: #f9fafb;
    height: 100%;
    display: none;
    overflow: hidden;
}

.email-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
}

.raw-view {
    padding: 20px;
    background: #1e293b;
    color: #e2e8f0;
    font-size: 12px;
    font-family: 'Courier New', monospace;
    height: 100%;
    overflow-y: auto;
    display: none;
}

.raw-view pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-all;
}

.email-list-container {
    margin-top: 20px;
}

.email-item {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 16px;
    margin: 8px 0;
}
