/* =============================================
   Premium Notification System
   Toast (success/info) + Error Overlay (error/warning)
   ============================================= */

/* --- Toast --- */
.dz-toast-container {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    min-width: 280px;
    max-width: 420px;
    pointer-events: none;
}

.dz-toast {
    display: flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    pointer-events: auto;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 200ms ease-out, transform 200ms ease-out;
}

.dz-toast.dz-toast-visible {
    opacity: 1;
    transform: translateY(0);
}

.dz-toast.dz-toast-hiding {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 150ms ease-in, transform 150ms ease-in;
}

.dz-toast-accent {
    width: 4px;
    align-self: stretch;
    flex-shrink: 0;
}

.dz-toast-accent.dz-accent-success { background: #22c55e; }
.dz-toast-accent.dz-accent-info { background: #3b82f6; }

.dz-toast-icon {
    flex-shrink: 0;
    margin-left: 12px;
    font-size: 16px;
    line-height: 1;
}

.dz-toast-icon.dz-accent-success { color: #22c55e; }
.dz-toast-icon.dz-accent-info { color: #3b82f6; }

.dz-toast-message {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    padding: 12px;
    line-height: 1.4;
}

/* --- Error Overlay --- */
.dz-error-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 150ms ease-out;
}

.dz-error-overlay.dz-overlay-visible {
    opacity: 1;
}

.dz-error-overlay.dz-overlay-hiding {
    opacity: 0;
    transition: opacity 150ms ease-in;
}

.dz-error-card {
    background: #fff;
    border-radius: 12px;
    max-width: 380px;
    width: calc(100% - 32px);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    transform: scale(0.95);
    opacity: 0;
    transition: transform 200ms ease-out, opacity 200ms ease-out;
}

.dz-error-overlay.dz-overlay-visible .dz-error-card {
    transform: scale(1);
    opacity: 1;
}

.dz-error-overlay.dz-overlay-hiding .dz-error-card {
    transform: scale(0.95);
    opacity: 0;
    transition: transform 150ms ease-in, opacity 150ms ease-in;
}

.dz-error-accent-bar {
    height: 3px;
    width: 100%;
}

.dz-error-accent-bar.dz-accent-error { background: #ef4444; }
.dz-error-accent-bar.dz-accent-warning { background: #f59e0b; }

.dz-error-body {
    padding: 24px 24px 0;
    text-align: center;
}

.dz-error-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.dz-error-icon-circle.dz-accent-error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.dz-error-icon-circle.dz-accent-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.dz-error-icon-circle i {
    font-size: 24px;
}

.dz-error-title {
    color: #1a1a2e;
    font-weight: 700;
    font-size: 16px;
    margin: 0 0 8px;
}

.dz-error-message {
    color: #555;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.dz-error-footer {
    padding: 20px 24px;
}

.dz-error-dismiss {
    width: 100%;
    padding: 12px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    height: 44px;
    transition: filter 150ms ease;
}

.dz-error-dismiss:hover {
    filter: brightness(1.1);
}

.dz-error-dismiss.dz-accent-error { background: #ef4444; }
.dz-error-dismiss.dz-accent-warning { background: #f59e0b; }

/* --- Mobile --- */
@media (max-width: 480px) {
    .dz-toast-container {
        min-width: 0;
        max-width: none;
        width: calc(100% - 24px);
        left: 12px;
        transform: none;
    }
}
