/* 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;
}

/* SMS/Text Message Styling - iPhone-like Design */
.sms-container {
    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: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    max-width: 600px;
    margin: 0 auto;
}

.sms-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sms-contact {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sms-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: 600;
    font-size: 18px;
    flex-shrink: 0;
}

.sms-contact-info {
    display: flex;
    flex-direction: column;
}

.sms-contact-name {
    font-weight: 600;
    font-size: 15px;
    color: #202124;
    margin-bottom: 2px;
}

.sms-contact-number {
    font-size: 13px;
    color: #5f6368;
    font-family: monospace;
}

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

.sms-messages {
    padding: 20px 16px;
    background: #ffffff;
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
}

.sms-bubble {
    max-width: 85%;
    margin-bottom: 8px;
    word-wrap: break-word;
}

.sms-bubble.received {
    float: left;
    clear: both;
}

.sms-bubble.sent {
    float: right;
    clear: both;
}

.sms-bubble-text {
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 15px;
    line-height: 1.5;
    color: #202124;
    background: #e8eaed;
    display: inline-block;
}

.sms-bubble.received .sms-bubble-text {
    background: #e8eaed;
    border-bottom-left-radius: 4px;
}

.sms-bubble.sent .sms-bubble-text {
    background: #0b93f6;
    color: white;
    border-bottom-right-radius: 4px;
}

.sms-bubble-text a {
    color: #1a73e8;
    text-decoration: underline;
    word-break: break-all;
}

.sms-bubble.sent .sms-bubble-text a {
    color: #a8daff;
}

.sms-footer {
    border-top: 1px solid #e0e0e0;
    padding: 12px 16px;
    background: #ffffff;
    display: flex;
    gap: 8px;
    align-items: center;
}

.sms-input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #dadce0;
    border-radius: 20px;
    font-size: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background: #f8f9fa;
    color: #5f6368;
}

.sms-input:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.sms-send-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #0b93f6;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
}

.sms-send-btn:disabled {
    background: #dadce0;
    cursor: not-allowed;
}

/* Clear floats in SMS messages */
.sms-messages::after {
    content: "";
    display: table;
    clear: both;
}

.sms-time-stamp {
    font-size: 10px;
    color: rgba(0, 0, 0, 0.45);
    margin-top: 4px;
    text-align: right;
}

.sms-bubble.sent .sms-time-stamp {
    color: rgba(255, 255, 255, 0.7);
}

/* Audio/Voicemail Styling */
.audio-container {
    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;
    max-width: 700px;
    margin: 0 auto;
}

.audio-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.audio-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    flex-shrink: 0;
}

.audio-info {
    flex: 1;
}

.audio-title {
    font-weight: 600;
    font-size: 18px;
    color: #202124;
    margin-bottom: 8px;
}

.audio-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #5f6368;
}

.audio-from {
    font-family: monospace;
}

.audio-duration {
    display: flex;
    align-items: center;
    gap: 4px;
}

.audio-player-section {
    padding: 24px;
    background: #ffffff;
    display: flex;
    justify-content: center;
}

.audio-player-section audio {
    width: 100%;
    max-width: 500px;
    outline: none;
}

.audio-transcript {
    background: #f8f9fa;
    padding: 20px;
    border-top: 1px solid #e0e0e0;
}

.transcript-header {
    font-weight: 600;
    font-size: 14px;
    color: #202124;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.transcript-header i {
    color: #5f6368;
}

.transcript-body {
    font-size: 14px;
    color: #202124;
    line-height: 1.6;
    font-style: italic;
    padding: 12px;
    background: white;
    border-left: 3px solid #4CAF50;
    border-radius: 4px;
}

.audio-warning {
    background: #e3f2fd;
    border-top: 1px solid #2196F3;
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.audio-warning i {
    color: #2196F3;
    font-size: 20px;
    margin-top: 2px;
}

.audio-warning-text {
    flex: 1;
    font-size: 13px;
    color: #1565C0;
    line-height: 1.5;
}

.audio-warning-text strong {
    font-weight: 600;
}

/* Text Content Styling (for AI Quiz) - matches email-client style */
.text-content-container {
    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;
}

.text-content-header {
    background: #f8f9fa;
    border-bottom: 1px solid #dadce0;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.text-content-header i {
    font-size: 24px;
    color: #5f6368;
}

.text-content-platform {
    font-weight: 500;
    font-size: 14px;
    color: #202124;
}

.text-content-title {
    font-weight: 400;
    font-size: 22px;
    color: #202124;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.text-content-body {
    padding: 24px;
    font-size: 14px;
    line-height: 1.6;
    color: #202124;
    white-space: pre-wrap;
    background: #fff;
}

.text-content-warning {
    background: #e3f2fd;
    border-top: 1px solid #2196F3;
    padding: 12px 16px;
    margin: 16px 24px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 12px;
    color: #1565C0;
    border-radius: 8px;
}

.text-content-warning i {
    color: #2196F3;
    font-size: 18px;
    margin-top: 2px;
}

/* Scenario Styling (for AI Quiz) - matches email-client style */
.scenario-container {
    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;
}

.scenario-header {
    background: #f8f9fa;
    border-bottom: 1px solid #dadce0;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.scenario-header i {
    font-size: 24px;
    color: #5f6368;
}

.scenario-platform {
    font-weight: 500;
    font-size: 14px;
    color: #202124;
}

.scenario-title {
    font-weight: 400;
    font-size: 22px;
    color: #202124;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.scenario-description {
    padding: 24px;
    font-size: 14px;
    line-height: 1.6;
    color: #202124;
    white-space: pre-wrap;
    background: #fff;
}

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

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