﻿/* ===================================
   NOTIFICATION SYSTEM STYLES
   =================================== */

.aks-notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 420px;
    pointer-events: none;
}

.aks-notification {
    pointer-events: auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transform: translateX(calc(100% + 40px));
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.aks-notification--visible {
    transform: translateX(0);
    opacity: 1;
}

.aks-notification--dismissing {
    transform: translateX(calc(100% + 40px));
    opacity: 0;
}

.aks-notification__content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    position: relative;
}

.aks-notification__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
}

.aks-notification__message {
    flex: 1;
    color: #2d3748;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
}

.aks-notification__close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: #718096;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
    padding: 0;
}

    .aks-notification__close:hover {
        background-color: rgba(0, 0, 0, 0.05);
        color: #2d3748;
    }

.aks-notification__progress {
    height: 3px;
    background: currentColor;
    opacity: 0.3;
    animation: notification-progress linear forwards;
}

@keyframes notification-progress {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

/* ===================================
   TYPE VARIANTS
   =================================== */

.aks-notification--success {
    border-left: 4px solid #48bb78;
}

    .aks-notification--success .aks-notification__icon {
        background-color: #c6f6d5;
        color: #22543d;
    }

    .aks-notification--success .aks-notification__progress {
        color: #48bb78;
    }

.aks-notification--error {
    border-left: 4px solid #f56565;
}

    .aks-notification--error .aks-notification__icon {
        background-color: #fed7d7;
        color: #742a2a;
    }

    .aks-notification--error .aks-notification__progress {
        color: #f56565;
    }

.aks-notification--warning {
    border-left: 4px solid #ed8936;
}

    .aks-notification--warning .aks-notification__icon {
        background-color: #feebc8;
        color: #7c2d12;
    }

    .aks-notification--warning .aks-notification__progress {
        color: #ed8936;
    }

.aks-notification--info {
    border-left: 4px solid #4299e1;
}

    .aks-notification--info .aks-notification__icon {
        background-color: #bee3f8;
        color: #2c5282;
    }

    .aks-notification--info .aks-notification__progress {
        color: #4299e1;
    }

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 640px) {
    .aks-notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .aks-notification__content {
        padding: 12px;
        gap: 10px;
    }

    .aks-notification__message {
        font-size: 13px;
    }
}

/* ===================================
   DARK MODE SUPPORT (Optional)
   =================================== */

@media (prefers-color-scheme: dark) {
    .aks-notification {
        background: #2d3748;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    }

    .aks-notification__message {
        color: #e2e8f0;
    }

    .aks-notification__close {
        color: #a0aec0;
    }

        .aks-notification__close:hover {
            background-color: rgba(255, 255, 255, 0.1);
            color: #e2e8f0;
        }
}
