/* Outlook E-Mail Client Styling */

.outlook-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #f3f2f1;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Toolbar */
.outlook-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f8f8f8;
    border-bottom: 1px solid #d1d1d1;
}

.outlook-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #d1d1d1;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    transition: all 0.15s ease;
}

.outlook-btn:hover:not(:disabled) {
    background: #e5e5e5;
    border-color: #0078d4;
}

.outlook-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.outlook-btn.active {
    background: #e5f1fb;
    border-color: #0078d4;
    color: #0078d4;
}

.outlook-btn .icon {
    font-size: 14px;
}

.outlook-search {
    margin-left: auto;
}

.outlook-search input {
    padding: 6px 12px;
    border: 1px solid #d1d1d1;
    border-radius: 4px;
    width: 200px;
    font-size: 13px;
}

.outlook-search input:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

/* Content Area */
.outlook-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Sidebar */
.outlook-sidebar {
    width: 180px;
    background: #fff;
    border-right: 1px solid #e1e1e1;
    padding: 8px 0;
}

.outlook-folder {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    transition: background 0.15s ease;
}

.outlook-folder:hover:not(.disabled) {
    background: #f3f2f1;
}

.outlook-folder.active {
    background: #e5f1fb;
    color: #0078d4;
    font-weight: 600;
}

.outlook-folder.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.outlook-folder .icon {
    font-size: 16px;
}

.outlook-badge {
    margin-left: auto;
    background: #0078d4;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
}

/* Email List */
.outlook-email-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.outlook-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid #e1e1e1;
    font-weight: 600;
    font-size: 14px;
}

.outlook-email-count {
    font-size: 12px;
    font-weight: normal;
    color: #666;
}

.outlook-emails {
    flex: 1;
    overflow-y: auto;
    background: #fff;
}

.outlook-email-item {
    display: grid;
    grid-template-columns: 30px 140px 1fr 80px;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.15s ease;
}

.outlook-email-item:hover {
    background: #f5f5f5;
}

.outlook-email-item.unread {
    background: #e8f4fd;
    font-weight: 600;
}

.outlook-email-item.unread:hover {
    background: #d4ebfa;
}

.outlook-email-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.unread-dot {
    width: 8px;
    height: 8px;
    background: #0078d4;
    border-radius: 50%;
}

.outlook-email-from {
    font-size: 13px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.outlook-email-subject {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.outlook-email-item.unread .outlook-email-subject {
    color: #333;
}

.outlook-email-date {
    font-size: 12px;
    color: #888;
    text-align: right;
}

/* Email Detail View */
.outlook-detail-content {
    flex: 1;
    overflow-y: auto;
    background: #fff;
    padding: 20px;
}

.outlook-email-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e1e1e1;
}

.outlook-email-title {
    margin-bottom: 16px;
}

.outlook-email-title h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.priority-high {
    display: inline-block;
    background: #fde7e9;
    color: #d13438;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 8px;
}

.outlook-email-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: #666;
}

.outlook-email-meta strong {
    color: #333;
    margin-right: 8px;
}

.outlook-email-body {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    white-space: pre-wrap;
}

/* Reply Section */
.outlook-reply-section {
    margin-top: 24px;
    padding: 16px;
    background: #f8f8f8;
    border-radius: 8px;
    border: 1px solid #e1e1e1;
}

.outlook-reply-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.outlook-reply-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.outlook-reply-option {
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #d1d1d1;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    text-align: left;
    transition: all 0.15s ease;
}

.outlook-reply-option:hover {
    background: #e5f1fb;
    border-color: #0078d4;
    transform: translateX(4px);
}

/* Reply Sent Confirmation */
.outlook-reply-sent {
    text-align: center;
    padding: 40px 20px;
}

.outlook-sent-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.outlook-reply-sent h2 {
    margin: 0 0 24px 0;
    font-size: 24px;
    color: #107c10;
}

.outlook-sent-details {
    background: #f8f8f8;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    text-align: left;
}

.outlook-sent-details p {
    margin: 8px 0;
    font-size: 13px;
    color: #666;
}

.outlook-sent-message {
    padding: 20px;
    background: #e5f1fb;
    border-radius: 8px;
    border-left: 4px solid #0078d4;
}

.outlook-sent-message p {
    margin: 0;
    font-style: italic;
    color: #333;
}

/* Status Bar */
.outlook-statusbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 16px;
    background: #f0f0f0;
    border-top: 1px solid #d1d1d1;
    font-size: 12px;
    color: #666;
}

/* Responsive adjustments */
@media (max-width: 800px) {
    .outlook-sidebar {
        width: 50px;
    }

    .outlook-folder span:not(.icon):not(.outlook-badge) {
        display: none;
    }

    .outlook-email-item {
        grid-template-columns: 24px 100px 1fr 60px;
    }
}
