/**
 * CRM Notifications — Toast & Confirm Modal
 * Design integrado com o tema ITHLUX
 */

/* ─── Toast Container ─── */
.crm-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 420px;
    width: 100%;
    pointer-events: none;
}

.crm-toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 6px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-left: 4px solid #a08052;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    font-family: 'Hind', sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: #e8dece;
    pointer-events: auto;
    opacity: 0;
    transform: translateX(40px);
    animation: crm-toast-in 0.3s ease forwards;
}

.crm-toast.crm-toast-out {
    animation: crm-toast-out 0.25s ease forwards;
}

.crm-toast-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-top: 1px;
}

.crm-toast-body {
    flex: 1;
    min-width: 0;
}

.crm-toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0 0 0 8px;
    margin-top: -2px;
    transition: color 0.15s;
}
.crm-toast-close:hover { color: #ccc; }

/* Tipos */
.crm-toast-success { border-left-color: #27ae60; }
.crm-toast-success .crm-toast-icon { color: #27ae60; }

.crm-toast-error { border-left-color: #e74c3c; }
.crm-toast-error .crm-toast-icon { color: #e74c3c; }

.crm-toast-info { border-left-color: #a08052; }
.crm-toast-info .crm-toast-icon { color: #c9a56e; }

@keyframes crm-toast-in {
    to { opacity: 1; transform: translateX(0); }
}
@keyframes crm-toast-out {
    to { opacity: 0; transform: translateX(40px); }
}

/* ─── Confirm Modal ─── */
.crm-confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 999998;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: crm-overlay-in 0.2s ease;
}

.crm-confirm-modal {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    max-width: 440px;
    width: 90%;
    box-shadow: 0 16px 48px rgba(0,0,0,0.6);
    font-family: 'Hind', sans-serif;
    overflow: hidden;
    animation: crm-modal-in 0.25s ease;
}

.crm-confirm-header {
    padding: 18px 22px 0;
}

.crm-confirm-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #c9a56e;
    font-family: 'Hind', sans-serif;
}

.crm-confirm-body {
    padding: 12px 22px 20px;
}

.crm-confirm-body p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #ccc;
    font-family: 'Hind', sans-serif;
}

.crm-confirm-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 22px;
    border-top: 1px solid #2a2a2a;
    background: #111;
}

.crm-confirm-btn {
    padding: 8px 20px;
    border-radius: 4px;
    font-family: 'Hind', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s, border-color 0.15s;
}

.crm-confirm-btn-cancel {
    background: transparent;
    color: #999;
    border-color: #444;
}
.crm-confirm-btn-cancel:hover {
    background: #2a2a2a;
    color: #ccc;
}

.crm-confirm-btn-primary {
    background: #a08052;
    color: #fff;
}
.crm-confirm-btn-primary:hover {
    background: #c9a56e;
}

.crm-confirm-btn-danger {
    background: #c0392b;
    color: #fff;
}
.crm-confirm-btn-danger:hover {
    background: #e74c3c;
}

@keyframes crm-overlay-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes crm-modal-in {
    from { opacity: 0; transform: scale(0.95) translateY(-10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
