ui-card {
    margin: 1rem 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.5;

    &:hover {
        box-shadow: 0 4px 12px var(--shadow-float);
        transform: translateY(-2px);
    }

    &::part(icon) {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
    }
    &::part(icon)::before {
        content: "";
        display: inline-block;
        width: 24px;
        height: 24px;
        background-color: currentColor;
        mask-repeat: no-repeat;
        mask-size: contain;
    }
        
    &::part(content) {
        flex: 1;
    }

    /*& > [slot="content"] {*/
    /*    * {*/
    /*        margin: 0;*/
    /*    }*/
    /*    p, par {*/
    /*        margin-top: 0 !important;*/
    /*        margin-bottom: 0.5rem !important;*/
    /*        &:last-child {*/
    /*            margin-bottom: 0 !important;*/
    /*        }*/
    /*    }*/
    /*    ul, ol {*/
    /*        margin: 0.5rem 0;*/
    /*        padding-left: 1.5rem;*/
    /*    }*/
    /*    li {*/
    /*        margin-bottom: 0.25rem;*/
    /*    }*/
    /*}*/

    &[type="info"] {
        background-color: var(--card-info-bg);
        border: 1px solid var(--card-info-border);
        color: var(--card-info-fg);
    }
    &[type="info"]::part(icon) {
        color: var(--card-info-icon);
    }
    &[type="info"]::part(icon)::before {
        mask-image: url("data:image/svg+xml,<svg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM13 17H11V11H13V17ZM13 9H11V7H13V9Z' fill='currentColor'/></svg>");
    }

    &[type="tip"] {
        background-color: var(--card-tip-bg);
        border: 1px solid var(--card-tip-border);
        color: var(--card-tip-fg);
    }
    &[type="tip"]::part(icon) {
        color: var(--card-tip-icon);
    }
    &[type="tip"]::part(icon)::before {
        mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 21c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-1H9v1zm3-19C8.14 2 5 5.14 5 9c0 2.38 1.19 4.47 3 5.74V17c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-2.26c1.81-1.27 3-3.36 3-5.74 0-3.86-3.14-7-7-7z'/%3E%3C/svg%3E");
    }

    &[type="attention"] {
        background-color: var(--card-attention-bg);
        border: 1px solid var(--card-attention-border);
        color: var(--card-attention-fg);
    }
    &[type="attention"]::part(icon) {
        color: var(--card-attention-icon);
    }
    &[type="attention"]::part(icon)::before {
        mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM13 17H11V15H13V17ZM13 13H11V7H13V13Z'/%3E%3C/svg%3E");
    }
}
