/*! DroidTester Notifier — custom toast system (no deps) */
.dt-notify-stack {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 380px;
    pointer-events: none;
}
.dt-notify-stack.left { left: 24px; right: auto; }
.dt-notify-stack.bottom { top: auto; bottom: 24px; }

.dt-notify {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px 14px 14px;
    background: #FFFFFF;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(27, 122, 67, 0.12), 0 2px 6px rgba(0,0,0,0.06);
    border: 1px solid rgba(27, 122, 67, 0.08);
    border-left: 4px solid var(--primary, #1B7A43);
    min-width: 280px;
    max-width: 380px;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2), opacity 0.25s ease;
    position: relative;
    overflow: hidden;
}
.dt-notify.show { transform: translateX(0); opacity: 1; }
.dt-notify.hide { transform: translateX(120%); opacity: 0; }

.dt-notify-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
}
.dt-notify-content { flex: 1; min-width: 0; padding-top: 2px; }
.dt-notify-title {
    font-size: 14px;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 2px;
    line-height: 1.3;
}
.dt-notify-msg {
    font-size: 13px;
    color: #6B6B6B;
    line-height: 1.5;
    word-wrap: break-word;
}
.dt-notify-close {
    background: transparent;
    border: none;
    color: #999;
    font-size: 18px;
    line-height: 1;
    padding: 2px 6px;
    margin: -2px -4px -2px 0;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.15s;
    flex-shrink: 0;
}
.dt-notify-close:hover { background: #f0f0f0; color: #1A1A1A; }

/* Progress bar */
.dt-notify-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--primary, #1B7A43);
    width: 100%;
    transform-origin: left center;
    animation: dt-notify-countdown linear forwards;
}
@keyframes dt-notify-countdown {
    from { transform: scaleX(1); }
    to   { transform: scaleX(0); }
}

/* Variants */
.dt-notify.success { border-left-color: #1B7A43; }
.dt-notify.success .dt-notify-icon { background: linear-gradient(135deg, #1B7A43, #2D9B5A); }
.dt-notify.success .dt-notify-progress { background: #1B7A43; }

.dt-notify.error { border-left-color: #E85050; }
.dt-notify.error .dt-notify-icon { background: linear-gradient(135deg, #E85050, #FF6B6B); }
.dt-notify.error .dt-notify-progress { background: #E85050; }

.dt-notify.warning { border-left-color: #E8983E; }
.dt-notify.warning .dt-notify-icon { background: linear-gradient(135deg, #E8983E, #F5A623); }
.dt-notify.warning .dt-notify-progress { background: #E8983E; }

.dt-notify.info { border-left-color: #4A90D9; }
.dt-notify.info .dt-notify-icon { background: linear-gradient(135deg, #4A90D9, #2196F3); }
.dt-notify.info .dt-notify-progress { background: #4A90D9; }

/* Dialog / confirm modal */
.dt-dialog-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(3px);
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.dt-dialog-backdrop.show { opacity: 1; }
.dt-dialog {
    background: #fff;
    border-radius: 20px;
    padding: 28px 24px 24px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    transform: scale(0.92);
    transition: transform 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.dt-dialog-backdrop.show .dt-dialog { transform: scale(1); }
.dt-dialog-emoji { font-size: 64px; margin-bottom: 10px; line-height: 1; }
.dt-dialog-title { font-size: 20px; font-weight: 800; color: var(--primary, #1B7A43); margin-bottom: 8px; }
.dt-dialog-msg   { font-size: 14px; color: #6B6B6B; margin-bottom: 22px; line-height: 1.6; }
.dt-dialog-btns  { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.dt-dialog-btn {
    padding: 11px 24px; border-radius: 30px; border: none;
    font-size: 14px; font-weight: 600; cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.15s ease;
}
.dt-dialog-btn:active { transform: translateY(1px); }
.dt-dialog-btn-primary { background: var(--primary, #1B7A43); color: #fff; }
.dt-dialog-btn-primary:hover { box-shadow: 0 4px 12px rgba(27,122,67,0.3); }
.dt-dialog-btn-secondary { background: #F5F5F5; color: #333; }
.dt-dialog-btn-secondary:hover { background: #ECECEC; }
.dt-dialog-btn-danger { background: #E85050; color: #fff; }

/* Mobile */
@media (max-width: 520px) {
    .dt-notify-stack { left: 12px; right: 12px; max-width: none; top: 12px; }
    .dt-notify { min-width: 0; max-width: none; }
    .dt-dialog { padding: 24px 20px; border-radius: 18px; }
}
