/* Outlook Mockup Container */
.outlook-mockup {
    width: 100%;
    max-width: 800px;
    /* Wider for desktop look */
    height: 470px;
    background: #f3f2f1;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;
    border: 1px solid #d0d0d0;
    text-align: left;
    margin: 0 auto;
    position: relative;
}

/* Title Bar */
.outlook-title-bar {
    background: #0078d4;
    color: white;
    height: 48px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 600;
    justify-content: space-between;
}

.outlook-title-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.outlook-app-icon {
    font-size: 18px;
}

.outlook-window-controls {
    display: flex;
    gap: 16px;
}

.window-control {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

/* Ribbon (Simplified) */
.outlook-ribbon {
    background: #f3f2f1;
    border-bottom: 1px solid #e1dfdd;
    padding: 8px 16px;
    display: flex;
    gap: 24px;
    height: 85px;
    align-items: center;
}

.ribbon-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #323130;
    font-size: 12px;
    cursor: pointer;
}

.ribbon-btn-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 4px;
    margin-top: 4px;
}

.ribbon-btn-large:hover {
    background: #e1dfdd;
}

.ribbon-icon-large {
    font-size: 24px;
    color: #0078d4;
}

.ribbon-icon-send {
    color: #0078d4;
    margin-left: 4px;
}

/* Compose Area */
.outlook-compose-area {
    flex: 1;
    background: white;
    display: flex;
    flex-direction: column;
    padding: 10px 30px;
    overflow-y: auto;
}

.compose-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.compose-field {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e1dfdd;
    padding-bottom: 0;
    height: 40px;
}

.field-label {
    width: 45px;
    color: #605e5c;
    font-size: 14px;
    font-weight: 500;
}

.field-input {
    flex: 1;
    font-size: 14px;
    color: #323130;
    margin-left: 10px;
    display: flex;
    align-items: center;
    min-height: 20px;
}

.field-value {
    background: #e1dfdd;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 13px;
    display: inline-block;
}

.field-value-text {
    font-size: 14px;
}

/* Email Body */
.email-body {
    flex: 1;
    font-size: 15px;
    line-height: 1.5;
    color: #323130;
    white-space: pre-wrap;
    font-family: 'Calibri', 'Segoe UI', sans-serif;
}

.cursor-blink {
    display: inline-block;
    width: 1px;
    height: 1em;
    background-color: #000;
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom;
    margin-left: 1px;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Send Button Animation State */
.ribbon-btn-large.sending {
    background: #c7e0f4;
    border-radius: 3px !important;
}

/* Success Overlay */
.sent-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 100;
}

.sent-overlay.active {
    opacity: 1;
}

.sent-icon {
    font-size: 64px;
    color: #0078d4;
    margin-bottom: 20px;
    transform: scale(0.5);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sent-overlay.active .sent-icon {
    transform: scale(1);
}

.sent-text {
    font-size: 24px;
    color: #323130;
    font-weight: 600;
}