:root {
    --sidebar-width: 240px;
}

body {
    background-color: #f4f6f9;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.navbar-brand {
    font-size: 1.3rem;
    letter-spacing: -0.5px;
}

.mailbox-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border: 1px solid #dee2e6;
}
.mailbox-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12) !important;
}

.card {
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}
.card-header {
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
}

.email-body {
    max-width: 100%;
    overflow-x: auto;
}
.email-body img {
    max-width: 100%;
    height: auto;
}

.list-group-item:hover {
    background-color: #f8f9fa;
}

[contenteditable="true"]:focus {
    outline: 2px solid #0d6efd;
    outline-offset: -1px;
    border-radius: 4px;
}

.table th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
}

/* Page login */
.card.shadow {
    border-radius: 16px;
}

/* ─── Antidote modal ─────────────────────────────────────────────────────── */
.antidote-modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.45);
    display: flex; align-items: center; justify-content: center; z-index: 9999;
}
.antidote-modal-box {
    background: #fff; border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,.25);
    width: min(700px, 96vw); max-height: 90vh; display: flex; flex-direction: column;
    overflow: hidden;
}
.antidote-modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: .75rem 1.25rem; background: #1a73e8; color: #fff; font-weight: 600;
}
.antidote-close-btn {
    background: none; border: none; color: #fff; font-size: 1.5rem;
    line-height: 1; cursor: pointer; padding: 0;
}
.antidote-help { padding: .5rem 1.25rem 0; margin: 0; font-size: .875rem; color: #555; }
.antidote-textarea {
    flex: 1; margin: .75rem 1.25rem; padding: .75rem; border: 1px solid #dee2e6;
    border-radius: 8px; resize: none; font-size: 1rem; min-height: 280px;
    font-family: inherit; line-height: 1.6;
}
.antidote-modal-footer {
    padding: .75rem 1.25rem; border-top: 1px solid #dee2e6;
    display: flex; gap: .5rem; justify-content: flex-end;
}

/* Quill overrides */
.ql-container { font-size: 1rem; font-family: 'Segoe UI', system-ui, sans-serif; }
.ql-toolbar.ql-snow { border-radius: 6px 6px 0 0; background: #f8fafc; }
.ql-container.ql-snow { border-radius: 0 0 6px 6px; }

/* ─── Alertes auto-dismiss ────────────────────────────────────────────────── */
/* Alertes auto-dismiss */
.alert {
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
