@import 'tailwindcss';
@reference "./app.css";

.btn-primary {
    @apply min-h-10 text-white rounded-lg px-4 py-2 bg-primary font-semibold transition-all hover:bg-primary-hover focus:ring-4 ring-input-ring
}

.btn-large {
    @apply h-12 leading-8
}

.btn-secondary {
    @apply rounded-lg px-4 py-2 border border-input-border-focus font-medium transition-all hover:bg-secondary-hover focus:ring-4 ring-input-ring
}

.btn-danger {
    @apply h-10 text-white rounded-lg px-4 py-2 bg-red-500 font-semibold transition-all hover:bg-red-600 focus:ring-4 ring-red-100
}

.btn-disabled {
    @apply bg-menu-item-background-hover border-none text-gray-500 hover:bg-menu-item-background-hover
}

.btn-icon {
    @apply rounded-full aspect-square h-8 text-lg hover:bg-secondary-hover focus:ring-4 ring-input-ring transition-colors;
}

.tab {
    @apply mr-4 py-2 border-b-2 border-transparent rounded-t-lg
}

.tab:hover {
    @apply border-menu-item-background-focus;
}

.tab-active {
    @apply font-semibold
}

.tab-active:hover {
    @apply border-transparent;
}

.tooltip {
    position: relative;
}

.tooltip:before,
.tooltip:after {
    display: block;
    opacity: 0;
    pointer-events: none;
    position: absolute;

    transform: translate3d(0, -10px, 0);
    transition: all .15s ease-in-out;
    z-index: 10;
}

.tooltip:before {
    background: rgba(36, 39, 52, 0.75);
    border-radius: 4px;
    color: #fff;
    content: attr(data-title);
    font-size: 12px;
    padding: 6px 10px;
    top: 24px;
    white-space: nowrap;
    z-index: 10
}

.tooltip:hover:after,
.tooltip:hover:before {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.spinner {
    display: inline-block;
    width: 32px;
    height: 32px;
}

.spinner:after {
    content: " ";
    display: block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 6px solid rgba(var(--content));
    border-color: rgba(var(--content)) transparent rgba(var(--content)) transparent;
    animation: spinner 1.2s linear infinite;
}

.spinner-dark:after {
    border: 6px solid rgba(var(--primary));
    border-color: rgba(var(--primary)) transparent rgba(var(--primary)) transparent;
}

.spinner-light:after {
    border: 6px solid #fff;
    border-color: #fff transparent #fff transparent;
}

.spinner-small {
    width: 24px;
    height: 24px;
    display: grid;
    align-content: center;
    justify-content: center;
}

.spinner-small:after {
    border-width: 2px;
    width: 16px;
    height: 16px;
}

@keyframes spinner {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.mention {
    @apply bg-blue-100 dark:bg-slate-700 rounded-md text-sm;
    padding: 0.1rem 0.3rem;
}