/**
 * Frontend Styles
 */

.spa-notification-container {
    position: fixed;
    z-index: 999999;
    pointer-events: none;
}

.spa-notification-container.top-left {
    top: 20px;
    left: 20px;
}

.spa-notification-container.top-right {
    top: 20px;
    right: 20px;
}

.spa-notification-container.bottom-left {
    bottom: 20px;
    left: 20px;
}

.spa-notification-container.bottom-right {
    bottom: 20px;
    right: 20px;
}

.spa-notification-box {
    pointer-events: auto;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
}

.spa-notification-content {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.spa-notification-content.right {
    flex-direction: row-reverse;
}

.spa-notification-content.text-only .spa-notification-image {
    display: none;
}

.spa-notification-content a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.spa-notification-content.right a {
    flex-direction: row-reverse;
}

.spa-notification-image {
    flex-shrink: 0;
}

.spa-notification-image img {
    display: block;
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.spa-notification-image.square img {
    border-radius: 4px;
}

.spa-notification-image.circle img {
    border-radius: 50%;
}

.spa-notification-message {
    flex: 1;
    line-height: 1.5;
}

.spa-close-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    color: #666;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.spa-close-btn:hover {
    background: #f5f5f5;
    transform: scale(1.1);
}

.spa-time {
    opacity: 0.7;
    font-size: 0.85em;
    display: inline-block;
}

/* Animation: Fade Up */
.spa-notification-box.spa-anim-fade-up {
    opacity: 0;
    transform: translateY(20px);
}

.spa-notification-box.spa-anim-fade-up.spa-active {
    opacity: 1;
    transform: translateY(0);
}

.spa-notification-box.spa-anim-fade-up.spa-hiding {
    opacity: 0;
    transform: translateY(20px);
}

/* Animation: Fade Left */
.spa-notification-box.spa-anim-fade-left {
    opacity: 0;
    transform: translateX(-20px);
}

.spa-notification-box.spa-anim-fade-left.spa-active {
    opacity: 1;
    transform: translateX(0);
}

.spa-notification-box.spa-anim-fade-left.spa-hiding {
    opacity: 0;
    transform: translateX(-20px);
}

/* Animation: Fade Right */
.spa-notification-box.spa-anim-fade-right {
    opacity: 0;
    transform: translateX(20px);
}

.spa-notification-box.spa-anim-fade-right.spa-active {
    opacity: 1;
    transform: translateX(0);
}

.spa-notification-box.spa-anim-fade-right.spa-hiding {
    opacity: 0;
    transform: translateX(20px);
}

/* Animation: Slide Up */
.spa-notification-box.spa-anim-slide-up {
    opacity: 0;
    transform: translateY(100%);
}

.spa-notification-box.spa-anim-slide-up.spa-active {
    opacity: 1;
    transform: translateY(0);
}

.spa-notification-box.spa-anim-slide-up.spa-hiding {
    opacity: 0;
    transform: translateY(100%);
}

/* Animation: Slide Left */
.spa-notification-box.spa-anim-slide-left {
    opacity: 0;
    transform: translateX(-100%);
}

.spa-notification-box.spa-anim-slide-left.spa-active {
    opacity: 1;
    transform: translateX(0);
}

.spa-notification-box.spa-anim-slide-left.spa-hiding {
    opacity: 0;
    transform: translateX(-100%);
}

/* Animation: Slide Right */
.spa-notification-box.spa-anim-slide-right {
    opacity: 0;
    transform: translateX(100%);
}

.spa-notification-box.spa-anim-slide-right.spa-active {
    opacity: 1;
    transform: translateX(0);
}

.spa-notification-box.spa-anim-slide-right.spa-hiding {
    opacity: 0;
    transform: translateX(100%);
}

/* Animation: Zoom In */
.spa-notification-box.spa-anim-zoom-in {
    opacity: 0;
    transform: scale(0.3);
}

.spa-notification-box.spa-anim-zoom-in.spa-active {
    opacity: 1;
    transform: scale(1);
}

.spa-notification-box.spa-anim-zoom-in.spa-hiding {
    opacity: 0;
    transform: scale(0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .spa-notification-container {
        left: 10px !important;
        right: 10px !important;
        top: auto !important;
        bottom: 10px !important;
    }

    .spa-notification-box {
        max-width: 100% !important;
        width: 100% !important;
    }
}
