/* 
 * Premium Notification Toasts - Redesign
 * Part of coach.viclix.com Dark Theme
 */

:root {
    --toast-bg: #080708;
    --toast-border: rgba(255, 255, 255, 0.1);
    --toast-success: #10b981;
    --toast-error: #f43f5e;
    --toast-warning: #f59e0b;
    --toast-info: #6366f1;
}

.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    width: calc(100% - 48px);
    pointer-events: none;
}

.toast {
    position: relative;
    display: flex;
    align-items: flex-start;
    padding: 16px;
    background: rgba(8, 7, 8, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--toast-border);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    color: #fff;
    pointer-events: auto;
    overflow: hidden;
    opacity: 0;
    transform: translateX(60px) scale(0.9);
    transition: 
        opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.toast.hide {
    opacity: 0;
    transform: translateX(60px) scale(0.9);
}

/* Subtle bottom glow matching the toast type */
.toast::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 15%;
    right: 15%;
    height: 4px;
    background: currentColor;
    filter: blur(12px);
    opacity: 0.6;
    z-index: -1;
    pointer-events: none;
}

/* Color assignments per type */
.toast.success { color: var(--toast-success); }
.toast.error { color: var(--toast-error); }
.toast.warning { color: var(--toast-warning); }
.toast.info { color: var(--toast-info); }

.toast-icon {
    flex-shrink: 0;
    margin-right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.toast-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.toast-content {
    flex-grow: 1;
    margin-right: 12px;
}

.toast-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 2px;
    color: #fff;
    letter-spacing: -0.01em;
}

.toast-message {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
}

.toast-close {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    padding: 4px;
    margin-top: -2px;
    margin-right: -4px;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.toast-close svg {
    width: 18px;
    height: 18px;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.03);
}

.toast-progress-bar {
    height: 100%;
    width: 100%;
    background: currentColor;
    transform-origin: left;
    transform: scaleX(1);
    transition: transform linear;
}

/* Custom scrollbar for container if many toasts appear */
.toast-container::-webkit-scrollbar {
    width: 4px;
}

.toast-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

/* Responsive: Center toasts on mobile */
@media (max-width: 480px) {
    .toast-container {
        top: auto;
        bottom: 24px;
        right: 16px;
        left: 16px;
        width: auto;
        max-width: none;
        align-items: center;
    }\n\n    .toast {\n        width: 100%;\n        transform: translateY(20px) scale(0.95);\n    }\n\n    .toast.show {\n        transform: translateY(0) scale(1);\n    }\n\n    .toast.hide {\n        transform: translateY(20px) scale(0.95);\n    }\n}\n