/* Email Client Styling - Realistic Gmail-like Design */

.email-client {
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15);
    overflow: hidden;
    font-family: 'Roboto', 'Helvetica', 'Arial', sans-serif;
}

.email-toolbar {
    background: #f8f9fa;
    border-bottom: 1px solid #dadce0;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.email-toolbar-btn {
    background: transparent;
    border: none;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    color: #5f6368;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
}

.email-toolbar-btn:hover {
    background: #e8eaed;
}

.email-toolbar-btn i {
    font-size: 16px;
}

.email-subject-line {
    padding: 20px 24px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.email-subject-line h2 {
    font-size: 22px;
    font-weight: 400;
    margin: 0;
    color: #202124;
    line-height: 28px;
}

.email-header-details {
    padding: 16px 24px;
    background: #fff;
}

.sender-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.sender-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
    font-size: 16px;
    flex-shrink: 0;
}

.sender-info {
    flex: 1;
    min-width: 0;
}

.sender-name {
    font-weight: 500;
    font-size: 14px;
    color: #202124;
    margin-bottom: 2px;
}

.sender-email {
    font-size: 12px;
    color: #5f6368;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sender-email-address {
    font-family: monospace;
}

.warning-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 12px;
    font-size: 11px;
    color: #856404;
    margin-left: 8px;
}

.warning-badge i {
    font-size: 10px;
}

.email-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: #5f6368;
    margin-top: 8px;
}

.email-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.recipient-info {
    font-size: 12px;
    color: #5f6368;
    margin-top: 8px;
}

.recipient-label {
    font-weight: 500;
    color: #70757a;
}

.email-body-container {
    padding: 24px;
    background: #fff;
    line-height: 1.6;
    color: #202124;
    font-size: 14px;
}

.email-body-container p {
    margin: 12px 0;
}

.email-body-container a {
    color: #1a73e8;
    text-decoration: none;
}

.email-body-container a:hover {
    text-decoration: underline;
}

/* URL Hover Preview - Browser Style */
.url-hover-container {
    position: relative;
}

.url-hover-preview {
    position: fixed;
    bottom: 50px;
    left: 12px;
    background: rgba(32, 33, 36, 0.95);
    color: #e8eaed;
    padding: 8px 12px;
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    border-radius: 4px;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    max-width: 90%;
    word-break: break-all;
}

.url-hover-preview.show {
    opacity: 1;
}

.email-body-container a {
    position: relative;
    cursor: pointer;
}

.email-body-container a:hover {
    text-decoration: underline;
}

.email-attachment {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #dadce0;
    border-radius: 8px;
    margin: 16px 0;
    background: #f8f9fa;
}

.attachment-icon {
    width: 40px;
    height: 40px;
    background: #e8eaed;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #5f6368;
}

.attachment-icon.danger {
    background: #fce8e6;
    color: #d93025;
}

.attachment-info {
    flex: 1;
}

.attachment-name {
    font-size: 14px;
    font-weight: 500;
    color: #202124;
    margin-bottom: 2px;
}

.attachment-size {
    font-size: 12px;
    color: #5f6368;
}

.attachment-warning {
    background: #fce8e6;
    color: #d93025;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.email-signature {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
    color: #5f6368;
    font-size: 13px;
}

.signature-name {
    font-weight: 500;
    color: #202124;
}

.external-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 16px 24px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.external-warning i {
    color: #856404;
    font-size: 18px;
    margin-top: 2px;
}

.external-warning-content {
    flex: 1;
}

.external-warning-title {
    font-weight: 500;
    color: #856404;
    margin-bottom: 4px;
    font-size: 13px;
}

.external-warning-text {
    font-size: 12px;
    color: #856404;
    line-height: 1.4;
}

.verified-sender {
    background: #e6f4ea;
    border: 1px solid #34a853;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.verified-sender i {
    color: #34a853;
    font-size: 18px;
}

.verified-sender-text {
    flex: 1;
    font-size: 12px;
    color: #137333;
}

.verified-sender-text strong {
    font-weight: 500;
}

/* Suspicious elements highlighting */
.suspicious-link {
    position: relative;
    display: inline-block;
}

.suspicious-link::after {
    content: '⚠️';
    margin-left: 4px;
    font-size: 10px;
}

.urgency-text {
    color: #d93025;
    font-weight: 500;
}

.generic-greeting {
    font-style: italic;
    color: #5f6368;
}

/* Company Branding Styles */
.amazon-button {
    background: #ff9900 !important;
    color: #111 !important;
    font-weight: 600;
    border-radius: 8px;
    padding: 10px 24px;
    text-decoration: none;
    display: inline-block;
}

.amazon-header {
    background: #232f3e;
    padding: 12px 20px;
    margin: -24px -24px 20px -24px;
}

.amazon-logo {
    color: #ff9900;
    font-size: 24px;
    font-weight: bold;
}

.google-button {
    background: #1a73e8;
    color: white;
    padding: 10px 24px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
}

.chase-blue {
    color: #117ACA;
}

.linkedin-button {
    background: #0077b5;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
}
