.fl-ruby {
    --ruby-text: #ffffff;
    --ruby-text-dark: #f8fafc;
    --ruby-border-radius: 4px;
    --ruby-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.2);
    --ruby-success-gradient: linear-gradient(135deg, #059669 0%, #10b981 100%);
    --ruby-info-gradient: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    --ruby-warning-gradient: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    --ruby-error-gradient: linear-gradient(135deg, #b91c1c 0%, #ef4444 100%);
}
@keyframes rubyShine {
    0% {
        left: -100%;
        opacity: 0.6;
    }
    60% {
        left: 100%;
        opacity: 0.6;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}
@keyframes rubyIn {
    0% {
        opacity: 0;
        transform: scale(0.96);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}
.fl-ruby {
    color: var(--ruby-text);
    padding: 0;
    margin: 0.75rem 0;
    position: relative;
    box-shadow: var(--ruby-shadow);
    border-radius: var(--ruby-border-radius) var(--ruby-border-radius) 0 0;
    animation: rubyIn 0.35s cubic-bezier(0.21, 1.02, 0.73, 1);
    font-family: var(--fl-font), serif;
    will-change: transform, opacity;
    overflow: hidden;
    .fl-shine {
        position: absolute;
        top: 0;
        left: -100%;
        width: 50%;
        height: 100%;
        background: linear-gradient(
            90deg,
            rgba(255,255,255,0) 0%,
            rgba(255,255,255,0.3) 50%,
            rgba(255,255,255,0) 100%
        );
        transform: skewX(-20deg);
        animation: rubyShine 6s infinite;
        animation-delay: 1s;
        z-index: 1;
    }
    .fl-content {
        display: flex;
        align-items: center;
        padding: 0.9rem 1.1rem;
        position: relative;
        z-index: 2;
    }
    .fl-icon-circle {
        flex-shrink: 0;
        width: 2.25rem;
        height: 2.25rem;
        margin-right: 1rem;
        background-color: rgba(255, 255, 255, 0.25);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .fl-icon {
        margin: 0;
        font-size: 1rem;
        color: var(--ruby-text);
        background-color: transparent;
    }
    .fl-text {
        flex: 1;
    }
    .fl-message {
        font-size: 0.925rem;
        line-height: 1.5;
        font-weight: 500;
    }
    .fl-close {
        background: rgba(255, 255, 255, 0.2);
        border: none;
        font-size: 1.1rem;
        padding: 0.1rem;
        width: 1.6rem;
        height: 1.6rem;
        border-radius: 50%;
        cursor: pointer;
        opacity: 0.8;
        transition: all 0.2s;
        color: var(--ruby-text);
        margin-left: 0.75rem;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        &:hover, &:focus {
            opacity: 1;
            background: rgba(255, 255, 255, 0.3);
            transform: scale(1.05);
        }
    }
    .fl-progress-bar {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 5px;
        background-color: rgba(0, 0, 0, 0.1);
        overflow: hidden;
        z-index: 3;
        .fl-progress {
            height: 100%;
            width: 100%;
            background: rgba(255, 255, 255, 0.4);
        }
    }
    &.fl-success {
        background: var(--ruby-success-gradient);
    }
    &.fl-info {
        background: var(--ruby-info-gradient);
    }
    &.fl-warning {
        background: var(--ruby-warning-gradient);
    }
    &.fl-error {
        background: var(--ruby-error-gradient);
    }
    &.fl-rtl {
        direction: rtl;
        .fl-icon-circle {
            margin-right: 0;
            margin-left: 1rem;
        }
        .fl-close {
            margin-left: 0;
            margin-right: 0.75rem;
        }
        .fl-shine {
            transform: skewX(20deg);
        }
        .fl-progress .fl-progress {
            transform-origin: right center;
        }
    }
    @media (prefers-reduced-motion: reduce) {
        animation: none;
        .fl-shine {
            display: none;
        }
    }
}
