/* TBP Button Widget */

.tbp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    border-style: solid;
    border-width: 0;
    transition: all 0.3s ease;
}

.tbp-button-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tbp-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.tbp-button-icon svg {
    width: 1em;
    height: 1em;
}

.tbp-button-text {
    white-space: nowrap;
}

/* Size Defaults - Small */
.tbp-button-size-small {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    padding: 8px 16px;
    min-height: 32px;
    border-radius: 6px;
}

.tbp-button-size-small .tbp-button-content {
    gap: 6px;
}

.tbp-button-size-small .tbp-button-icon {
    font-size: 14px;
}

.tbp-button-size-small .tbp-button-icon svg {
    width: 14px;
    height: 14px;
}

/* Size Defaults - Base */
.tbp-button-size-base {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    padding: 12px 24px;
    min-height: 44px;
    border-radius: 8px;
}

.tbp-button-size-base .tbp-button-content {
    gap: 8px;
}

.tbp-button-size-base .tbp-button-icon {
    font-size: 18px;
}

.tbp-button-size-base .tbp-button-icon svg {
    width: 18px;
    height: 18px;
}

/* Size Defaults - Large */
.tbp-button-size-large {
    font-size: 17px;
    font-weight: 500;
    line-height: 1.2;
    padding: 16px 32px;
    min-height: 52px;
    border-radius: 10px;
}

.tbp-button-size-large .tbp-button-content {
    gap: 10px;
}

.tbp-button-size-large .tbp-button-icon {
    font-size: 22px;
}

.tbp-button-size-large .tbp-button-icon svg {
    width: 22px;
    height: 22px;
}

/* Variant Defaults - Filled */
.tbp-button-variant-filled {
    background-color: #6366f1;
    color: #ffffff;
    border-color: transparent;
}

.tbp-button-variant-filled svg {
    fill: #ffffff;
}

.tbp-button-variant-filled:hover {
    background-color: #4f46e5;
    color: #ffffff;
}

.tbp-button-variant-filled:hover svg {
    fill: #ffffff;
}

/* Variant Defaults - Outlined */
.tbp-button-variant-outlined {
    background-color: transparent;
    color: #6366f1;
    border-style: solid;
    border-width: 2px;
    border-color: #6366f1;
}

.tbp-button-variant-outlined svg {
    fill: #6366f1;
}

.tbp-button-variant-outlined:hover {
    background-color: #6366f1;
    color: #ffffff;
    border-color: #6366f1;
}

.tbp-button-variant-outlined:hover svg {
    fill: #ffffff;
}

/* Variant Defaults - Ghost */
.tbp-button-variant-ghost {
    background-color: transparent;
    color: #6366f1;
    border-color: transparent;
}

.tbp-button-variant-ghost svg {
    fill: #6366f1;
}

.tbp-button-variant-ghost:hover {
    background-color: rgba(99, 102, 241, 0.1);
    color: #4f46e5;
}

.tbp-button-variant-ghost:hover svg {
    fill: #4f46e5;
}

/* Focus State */
.tbp-button:focus {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

.tbp-button:focus:not(:focus-visible) {
    outline: none;
}

.tbp-button:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}
