/* ===== TOAST STACK ===== */
#dockToastContainer {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 10050;
    display: flex;
    flex-direction: column;
    gap: .65rem;
    max-width: min(420px, calc(100vw - 2rem));
    pointer-events: none;
}

.dock-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .85rem 1rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(15, 23, 42, .12), 0 2px 8px rgba(15, 23, 42, .06);
    border-left: 4px solid #64748b;
    animation: dockToastIn .35s cubic-bezier(.21, 1.02, .73, 1) forwards;
    position: relative;
    overflow: hidden;
}

.dark-mode .dock-toast {
    background: #2b2b3d;
    color: #f1f5f9;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
}

.dock-toast.is-leaving {
    animation: dockToastOut .25s ease forwards;
}

.dock-toast--success { border-left-color: #20c997; }
.dock-toast--danger  { border-left-color: #ef4444; }
.dock-toast--warning { border-left-color: #f59e0b; }
.dock-toast--info    { border-left-color: #3b82f6; }

.dock-toast__icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
}

.dock-toast--success .dock-toast__icon { background: #d1fae5; color: #059669; }
.dock-toast--danger  .dock-toast__icon { background: #fee2e2; color: #dc2626; }
.dock-toast--warning .dock-toast__icon { background: #fef3c7; color: #d97706; }
.dock-toast--info    .dock-toast__icon { background: #dbeafe; color: #2563eb; }

.dock-toast__body { flex: 1; min-width: 0; padding-right: 1.25rem; }
.dock-toast__title {
    font-weight: 700;
    font-size: .85rem;
    line-height: 1.2;
    margin-bottom: .15rem;
}
.dock-toast__msg {
    font-size: .82rem;
    line-height: 1.45;
    color: #64748b;
    word-break: break-word;
}
.dark-mode .dock-toast__msg { color: #94a3b8; }

.dock-toast__close {
    position: absolute;
    top: .45rem;
    right: .55rem;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    padding: .15rem .35rem;
    border-radius: 6px;
}
.dock-toast__close:hover { color: #475569; background: rgba(0,0,0,.05); }

.dock-toast__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    opacity: .35;
    animation: dockToastProgress linear forwards;
}

@keyframes dockToastIn {
    from { opacity: 0; transform: translateX(1.5rem); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes dockToastOut {
    to { opacity: 0; transform: translateX(1.5rem); }
}
@keyframes dockToastProgress {
    from { width: 100%; }
    to   { width: 0%; }
}

/* ===== MODAL CONFIRM / ALERT ===== */
.dock-notify-modal .modal-dialog {
    max-width: 440px;
}

.dock-notify-modal .modal-content {
    border: none;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(15, 23, 42, .2);
}

.dock-notify-modal .modal-body {
    padding: 0 1.75rem 1.25rem;
    text-align: center;
}

.dock-notify-modal__icon {
    width: 4rem;
    height: 4rem;
    margin: 1.5rem auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
}

.dock-notify-modal__icon--success { background: #d1fae5; color: #059669; }
.dock-notify-modal__icon--danger  { background: #fee2e2; color: #dc2626; }
.dock-notify-modal__icon--warning { background: #fef3c7; color: #d97706; }
.dock-notify-modal__icon--info    { background: #dbeafe; color: #2563eb; }
.dock-notify-modal__icon--question { background: #e0f2fe; color: #1e3a5f; }

.dock-notify-modal__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: .5rem;
}

.dock-notify-modal__text {
    font-size: .92rem;
    color: #64748b;
    line-height: 1.55;
    margin: 0;
}

.dock-notify-modal .modal-footer {
    border-top: none;
    padding: .75rem 1.75rem 1.5rem;
    justify-content: center;
    gap: .65rem;
}

.dock-notify-modal .btn-dock {
    min-width: 120px;
    border-radius: 10px;
    font-weight: 600;
    padding: .55rem 1.25rem;
    border: none;
    transition: transform .15s, box-shadow .15s;
}

.dock-notify-modal .btn-dock:active { transform: scale(.98); }

.btn-dock-primary {
    background: linear-gradient(135deg, #20c997, #17a589);
    color: #fff;
    box-shadow: 0 4px 14px rgba(32, 201, 151, .35);
}
.btn-dock-primary:hover { color: #fff; box-shadow: 0 6px 20px rgba(32, 201, 151, .45); }

.btn-dock-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    box-shadow: 0 4px 14px rgba(239, 68, 68, .35);
}
.btn-dock-danger:hover { color: #fff; }

.btn-dock-secondary {
    background: #f1f5f9;
    color: #475569;
}
.btn-dock-secondary:hover { background: #e2e8f0; color: #334155; }

/* ===== MODAIS DO APP (DC-e, PIX, perfil…) ===== */
.modal.dock-app-modal .modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .18);
}

.modal.dock-app-modal .modal-header {
    border-bottom: 1px solid rgba(0,0,0,.06);
    padding: 1rem 1.25rem;
}

.modal.dock-app-modal .modal-header.bg-danger,
.modal.dock-app-modal .modal-header.bg-success,
.modal.dock-app-modal .modal-header.bg-dark {
    border-bottom: none;
}

.modal.dock-app-modal .modal-footer {
    border-top: 1px solid rgba(0,0,0,.06);
    padding: .85rem 1.25rem;
}

.modal.dock-app-modal .modal-title {
    font-weight: 700;
}

/* Info card (substitui alert estático) */
.dock-info-card {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: .85rem 1rem;
    font-size: .88rem;
    color: #92400e;
    margin-bottom: 1rem;
}

.dark-mode .dock-info-card {
    background: rgba(245, 158, 11, .12);
    border-color: rgba(245, 158, 11, .3);
    color: #fcd34d;
}
