.notifications-container {
    position: fixed;
    top: calc(80px + 1rem);
    right: 1rem;
    max-width: 350px;
    width: calc(100% - 2rem);
    z-index: 9999;
    pointer-events: none;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    padding: 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 215, 0, 0.5) transparent;
    overflow-x: hidden;
    overflow-y: hidden;
}

.notifications-container::-webkit-scrollbar {
    width: 6px;
}

.notifications-container::-webkit-scrollbar-track {
    background: transparent;
}

.notifications-container::-webkit-scrollbar-thumb {
    background-color: rgba(255, 215, 0, 0.5);
    border-radius: 3px;
}

.notification {
    background: rgba(0, 0, 0, 0.95);
    border-left: 4px solid #FFD700;
    color: #fff;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(120%);
    opacity: 0;
    animation: slideIn 0.5s ease forwards;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    pointer-events: auto;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.notification.error {
    border-left-color: #ff4444;
    background: rgba(255, 68, 68, 0.15);
}

.notification.success {
    border-left-color: #00C851;
    background: rgba(0, 200, 81, 0.15);
}

.notification-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.notification.error .notification-icon {
    color: #ff4444;
}

.notification.success .notification-icon {
    color: #00C851;
}

.notification-content {
    flex-grow: 1;
    min-width: 0;
}

.notification-message {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #fff;
    font-family: 'Crafty Girls', cursive;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.notification-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-top: 2px;
}

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

@keyframes slideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

.notification.removing {
    animation: slideOut 0.5s ease forwards;
}

@media (max-width: 768px) {
    .notifications-container {
        top: 80px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        max-width: 300px;
        width: calc(100% - 2rem);
        max-height: auto;
        padding: 5px;
    }

    .notification {
        font-size: 0.85rem;
        padding: 8px 12px;
        margin-bottom: 5px;
        gap: 8px;
        border-radius: 6px;
    }

    .notification-message {
        font-size: 0.85rem;
        line-height: 1.3;
    }

    .notification-icon {
        font-size: 0.9rem;
        margin-top: 1px;
    }

    .notification-close {
        width: 18px;
        height: 18px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .notifications-container {
        max-width: calc(100% - 2rem);
        width: calc(100% - 2rem);
        padding: 5px;
    }

    .notification {
        padding: 8px 10px;
        gap: 6px;
        font-size: 0.8rem;
    }

    .notification-icon {
        font-size: 0.85rem;
    }

    .notification-message {
        font-size: 0.8rem;
    }

    .notification-close {
        width: 16px;
        height: 16px;
        font-size: 0.85rem;
    }
}

@media (max-width: 320px) {
    .notifications-container {
        max-width: calc(100% - 1rem);
        width: calc(100% - 1rem);
    }

    .notification {
        padding: 6px 8px;
        gap: 4px;
    }
}

@media (max-width: 768px) {
    @keyframes slideIn {
        from {
            transform: translateY(-100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    @keyframes slideOut {
        from {
            transform: translateY(0);
            opacity: 1;
        }
        to {
            transform: translateY(-100%);
            opacity: 0;
        }
    }

    .notification {
        transform: translateY(-100%);
    }
}

@media (min-height: 1024px) {
    .notifications-container {
        max-height: 70vh;
    }
}

@media (min-width: 1440px) {
    .notifications-container {
        right: 2rem;
        max-width: 400px;
    }
}

@keyframes iconPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.notification-icon {
    animation: iconPulse 0.5s ease;
}

@media (hover: none) {
    .notification-close {
        padding: 8px;
    }
}

.notification-help {
    margin-top: 0.5rem;
    font-size: 0.9em;
    opacity: 0.8;
}

.notification-help a {
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.notification-help a:hover {
    opacity: 1;
}

.notification-help i {
    margin-right: 0.3rem;
} 