/* ============================================================
   DroidTester Notifier — Toast & Modal
   ============================================================ */

/* ═══════════ TOAST CONTAINER ═══════════ */
.dt-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: 380px;
    width: calc(100% - 40px);
}

.dt-toast {
    background: white;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.05);
    padding: 14px 16px 14px 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    pointer-events: auto;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transform: translateX(calc(100% + 40px));
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.25s ease;
    border-left: 4px solid var(--primary, #1B7A43);
}

.dt-toast.show { transform: translateX(0); opacity: 1; }
.dt-toast.hide { transform: translateX(calc(100% + 40px)); opacity: 0; }

.dt-toast-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
    color: white;
}

.dt-toast-content { flex: 1; min-width: 0; }
.dt-toast-title {
    font-weight: 700;
    font-size: 14px;
    color: #1A1A1A;
    margin-bottom: 2px;
    line-height: 1.35;
    word-wrap: break-word;
}
.dt-toast-message {
    font-size: 13px;
    color: #6B6B6B;
    line-height: 1.45;
    word-wrap: break-word;
}
.dt-toast-close {
    width: 24px; height: 24px;
    border: none; background: transparent;
    cursor: pointer; color: #999;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s;
    font-size: 14px; padding: 0;
}
.dt-toast-close:hover { background: #f0f0f0; color: #1A1A1A; }

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

/* Type variants */
.dt-toast-success { border-left-color: #1B7A43; }
.dt-toast-success .dt-toast-icon { background: #1B7A43; }
.dt-toast-success .dt-toast-progress { background: #1B7A43; }

.dt-toast-error { border-left-color: #E85050; }
.dt-toast-error .dt-toast-icon { background: #E85050; }
.dt-toast-error .dt-toast-progress { background: #E85050; }

.dt-toast-warning { border-left-color: #E8983E; }
.dt-toast-warning .dt-toast-icon { background: #E8983E; }
.dt-toast-warning .dt-toast-progress { background: #E8983E; }

.dt-toast-info { border-left-color: #4A90D9; }
.dt-toast-info .dt-toast-icon { background: #4A90D9; }
.dt-toast-info .dt-toast-progress { background: #4A90D9; }

/* ═══════════ CONFIRM MODAL ═══════════ */
.dt-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 15, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    padding: 20px;
}
.dt-modal-backdrop.show { opacity: 1; }

.dt-modal {
    background: white;
    border-radius: 24px;
    padding: 32px 28px 24px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.dt-modal-backdrop.show .dt-modal { transform: scale(1); }

.dt-modal-icon {
    width: 72px; height: 72px;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 36px; color: white;
}
.dt-modal-success .dt-modal-icon { background: #1B7A43; }
.dt-modal-error .dt-modal-icon { background: #E85050; }
.dt-modal-warning .dt-modal-icon { background: #E8983E; }
.dt-modal-info .dt-modal-icon { background: #4A90D9; }

.dt-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 8px;
}
.dt-modal-message {
    font-size: 14px;
    color: #6B6B6B;
    margin-bottom: 20px;
    line-height: 1.5;
}
.dt-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.dt-modal-btn {
    padding: 11px 24px;
    border-radius: 30px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    min-width: 110px;
}
.dt-modal-btn-confirm {
    background: var(--primary, #1B7A43);
    color: white;
}
.dt-modal-btn-confirm:hover { background: #15613A; transform: translateY(-1px); }
.dt-modal-btn-cancel {
    background: #f0f0f0;
    color: #1A1A1A;
}
.dt-modal-btn-cancel:hover { background: #e5e5e5; }
.dt-modal-btn-danger { background: #E85050; }
.dt-modal-btn-danger:hover { background: #D04040; }

/* ═══════════ MOBILE ═══════════ */
@media (max-width: 480px) {
    .dt-toast-container {
        top: 12px; right: 12px; left: 12px;
        width: auto; max-width: none;
    }
    .dt-toast { padding: 12px; }
    .dt-modal { padding: 24px 20px 20px; border-radius: 20px; }
    .dt-modal-icon { width: 60px; height: 60px; font-size: 30px; }
    .dt-modal-title { font-size: 18px; }
    .dt-modal-btn { padding: 10px 20px; font-size: 13px; }
}
