/**
 * Sparkles Alert/Notification Styles
 */

/* Base Alert Styles */
.sparkles-alert {
    position: relative;
    padding: 1rem;
    margin-bottom: 1rem;
    border-width: 1px;
    border-radius: .5rem;
    font-size: .875rem;
    line-height: 1.25rem;
    line-height: 1.625;
}

.sparkles-alert strong {
    font-weight: 600;
}

/* Alert Variants */
.sparkles-alert-success {
    background-color: rgba(236,253,245,var(--tw-bg-opacity,1));
    border-color: rgba(167,243,208,var(--tw-border-opacity,1));
    color: rgba(6,95,70,var(--tw-text-opacity,1));
}

.sparkles-alert-info {
    background-color: rgb(var(--color-primary-rgb) / 0.1);
    border-color: rgb(var(--color-primary-rgb) / 0.3);
    color: var(--color-primary-dark);
}

.sparkles-alert-warning {
    background-color: rgba(255,251,235,var(--tw-bg-opacity,1));
    border-color: rgba(253,230,138,var(--tw-border-opacity,1));
    color: rgba(146,64,14,var(--tw-text-opacity,1));
}

.sparkles-alert-danger,
.sparkles-alert-error {
    background-color: rgba(254,242,242,var(--tw-bg-opacity,1));
    border-color: rgba(254,202,202,var(--tw-border-opacity,1));
    color: rgba(153,27,27,var(--tw-text-opacity,1));
}

/* Alert with Icon */
.sparkles-alert-icon {
    display: flex;
    align-items: flex-start;
}

/* Dismissible Alert */
.sparkles-alert-dismissible {
    padding-right: 2.5rem;
}

.sparkles-alert-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    opacity: .5;
    transition-property: opacity;
    transition-timing-function: cubic-bezier(.4,0,.2,1);
    transition-duration: .2s;
}

.sparkles-alert-close svg {
    width: 1rem;
    height: 1rem;
}

/* Inline Alerts */
.sparkles-alert-inline {
    display: inline-flex;
    align-items: center;
}

/* Toast Notifications */
.sparkles-toast {
    z-index: var(--z-modal);
    max-width: 24rem;
    width: 100%;
    position: relative;
    margin-bottom: 1rem;
    border-radius: .5rem;
    border-width: 1px;
    padding: 1rem;
    font-size: .875rem;
    line-height: 1.25rem;
    line-height: 1.625;
    box-shadow: 0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d;
}

.sparkles-toast-container {
    position: fixed;
    z-index: var(--z-modal);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

/* Toast Positions */
.sparkles-toast-top-right {
    top: 0;
    right: 0;
}

.sparkles-toast-top-left {
    top: 0;
    left: 0;
}

.sparkles-toast-bottom-right {
    bottom: 0;
    right: 0;
}

.sparkles-toast-bottom-left {
    bottom: 0;
    left: 0;
}
