/**
 * Cart Notification Styles
 * Simple notification without blocking any popups
 */

/* Container za notifikacije */
#cart-notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999999;
    pointer-events: none;
}

/* Notifikacija */
.cart-notification {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
    min-width: 320px;
    max-width: 400px;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease-in-out;
    pointer-events: auto;
    overflow: hidden;
}

.cart-notification.show {
    opacity: 1;
    transform: translateX(0);
}

/* Success notification */
.cart-notification.success {
    border-left: 4px solid #4caf50;
}

/* Error notification */
.cart-notification.error {
    border-left: 4px solid #f44336;
}

/* Content */
.cart-notification-content {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    gap: 12px;
}

/* Icon */
.cart-notification-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-notification.success .cart-notification-icon {
    color: #4caf50;
}

.cart-notification.error .cart-notification-icon {
    color: #f44336;
}

.cart-notification-icon svg {
    width: 24px;
    height: 24px;
}

/* Text */
.cart-notification-text {
    flex: 1;
    min-width: 0;
}

.cart-notification-text strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.cart-notification-text p {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* Close button */
.cart-notification-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: #999;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.cart-notification-close:hover {
    color: #333;
}

/* Mobile responsive */
@media (max-width: 768px) {
    #cart-notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .cart-notification {
        min-width: auto;
        max-width: none;
        transform: translateY(-100px);
    }

    .cart-notification.show {
        transform: translateY(0);
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .cart-notification {
        background: #2d2d2d;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    }

    .cart-notification-text strong {
        color: #fff;
    }

    .cart-notification-text p {
        color: #ccc;
    }

    .cart-notification-close {
        color: #999;
    }

    .cart-notification-close:hover {
        color: #fff;
    }
}

