﻿body.mail-body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar-brand {
    font-weight: 700;
}

.list-group-item {
    border: none;
    border-radius: 0;
    padding: 12px 20px;
    font-size: 15px;
}

    .list-group-item:hover {
        background-color: #e7f1ff;
        color: #0d6efd;
    }

    .list-group-item.active {
        background-color: #0d6efd !important;
        color: white !important;
    }

.mail-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

    .mail-card:hover {
        background-color: #f1faff;
    }

.dark-mode .mail-card {
    background-color: #1f1f1f;
    color: #f1f1f1;
}
.mail-item {
    text-align: right;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

    .mail-item:hover {
        background-color: #f1faff;
    }

    .mail-item.active {
        background-color: #e7f1ff;
        border-left: 3px solid #0d6efd;
    }

#mailView {
    height: calc(100vh - 100px);
    overflow-y: auto;
}
/* --- تمييز الرسالة المحددة --- */
.mail-item.active {
    background-color: #e7f1ff;
    border-right: 3px solid #0d6efd;
    transition: all 0.2s ease;
}

.mail-item:hover {
    background-color: #f6faff;
}
/* نافذة الإرسال */
.compose-panel {
    position: fixed;
    bottom: 0;
    right: 20px;
    width: 420px;
    max-height: 85vh;
    display: none;
    flex-direction: column;
    z-index: 1050;
}

@media (max-width: 768px) {
    .compose-panel {
        width: 100%;
        right: 0;
        bottom: 0;
        border-radius: 0;
    }
}
.compose-container {
    max-width: 850px;
    border: 1px solid #ddd;
}

.compose-header {
    font-weight: 500;
}

    .compose-header .btn {
        border-radius: 20px;
        font-size: 0.85rem;
    }

input.form-control.rounded-pill {
    padding-right: 15px;
}

body.dark-mode .compose-container {
    background-color: #1e1e1e;
    color: #eee;
    border-color: #444;
}

body.dark-mode .compose-header {
    background-color: #0078d4;
}

body.dark-mode .form-control {
    background-color: #252526;
    color: #fff;
    border-color: #444;
}
/* تصميم قائمة المرفقات */
#attachmentList {
    border: 1px dashed #ccc;
    border-radius: 8px;
    padding: 10px;
    background-color: #f8f9fa;
}

.attachment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 6px 10px;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

    .attachment-item i {
        color: #0d6efd;
        margin-left: 6px;
    }

.remove-attachment {
    border: none;
    background: transparent;
    color: #dc3545;
    cursor: pointer;
}
/* --- أزرار Outlook Style --- */
.compose-header .btn {
    transition: all 0.2s ease-in-out;
}

    .compose-header .btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    }

    .compose-header .btn i {
        vertical-align: middle;
    }

/* --- تصميم المرفقات الحديثة --- */
#attachmentList {
    border: none;
    background-color: #f8f9fb;
    padding: 10px;
    border-radius: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.attachment-item {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 8px 12px;
    min-width: 160px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

    .attachment-item:hover {
        background-color: #f0f6ff;
    }

.remove-attachment {
    border: none;
    background: transparent;
    color: #dc3545;
    font-size: 1.1rem;
    cursor: pointer;
}

    .remove-attachment:hover {
        color: #bb2d3b;
    }
#toggleCcBtn {
    font-size: 0.85rem;
    text-decoration: none;
}

    #toggleCcBtn:hover {
        text-decoration: underline;
    }
#loadMoreBtn {
    border-radius: 25px;
    transition: all 0.2s ease-in-out;
}

    #loadMoreBtn:hover {
        transform: translateY(-2px);
    }
.mail-body {
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: #212529;
}

    .mail-body[dir="rtl"],
    .mail-body [dir="rtl"] {
        direction: rtl;
        text-align: right;
    }

    .mail-body[dir="ltr"],
    .mail-body [dir="ltr"] {
        direction: ltr;
        text-align: left;
    }

#mailContent {
    overflow-wrap: break-word;
}
