/* Custom Modern Snackbar Styles */
.custom-snackbar-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    max-width: 400px;
}

.custom-snackbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08);
    pointer-events: auto;
    min-width: 300px;
    max-width: 400px;
    opacity: 0;
    transform: translateX(420px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    line-height: 1.5;
    backdrop-filter: blur(10px);
    border-left: 4px solid;
}

.custom-snackbar.show {
    opacity: 1;
    transform: translateX(0);
}

.custom-snackbar-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.custom-snackbar-content {
    flex: 1;
    color: #1e293b;
    font-weight: 500;
}

.custom-snackbar-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #64748b;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 14px;
    padding: 0;
}

.custom-snackbar-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #1e293b;
}

/* Success variant */
.custom-snackbar-success {
    border-left-color: #10b981;
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

.custom-snackbar-success .custom-snackbar-icon {
    color: #10b981;
}

/* Error variant */
.custom-snackbar-error {
    border-left-color: #ef4444;
    background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
}

.custom-snackbar-error .custom-snackbar-icon {
    color: #ef4444;
}

/* Warning variant */
.custom-snackbar-warning {
    border-left-color: #f59e0b;
    background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
}

.custom-snackbar-warning .custom-snackbar-icon {
    color: #f59e0b;
}

/* Info variant */
.custom-snackbar-info {
    border-left-color: #3b82f6;
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
}

.custom-snackbar-info .custom-snackbar-icon {
    color: #3b82f6;
}

/* Responsive design */
@media (max-width: 640px) {
    .custom-snackbar-container {
        right: 12px;
        bottom: 12px;
        left: 12px;
        max-width: calc(100% - 24px);
    }

    .custom-snackbar {
        min-width: 100%;
        max-width: 100%;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .custom-snackbar {
        background: #1e293b;
    }

    .custom-snackbar-content {
        color: #f1f5f9;
    }

    .custom-snackbar-close {
        color: #94a3b8;
    }

    .custom-snackbar-close:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #f1f5f9;
    }

    .custom-snackbar-success {
        background: linear-gradient(135deg, #1e293b 0%, #064e3b 100%);
    }

    .custom-snackbar-error {
        background: linear-gradient(135deg, #1e293b 0%, #7f1d1d 100%);
    }

    .custom-snackbar-warning {
        background: linear-gradient(135deg, #1e293b 0%, #78350f 100%);
    }

    .custom-snackbar-info {
        background: linear-gradient(135deg, #1e293b 0%, #1e3a8a 100%);
    }
}
