.btn {
    border-radius: var(--radius-sm);
    padding: 0.5rem 1.625rem;
    font-size: 0.9375rem;
    border-color: var(--border-color);
    background-color: var(--bg-base);
    color: var(--color-body);
    
    &:hover, &:focus, &:active, &.active {
        -webkit-box-shadow: none !important;
        box-shadow: none !important;
        color: var(--color-primary);
        background-color: var(--bg-secondary);
        
        i {
            color: var(--color-primary);
        }
    }
    
    &.disabled, &:disabled {
        color: var(--color-muted);
        border-color: var(--border-color);
        background-color: var(--bg-body);
    }
}

.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--border-color);
    color: var(--color-light);
    
    &:hover, &:focus, &:active {
        background-color: var(--color-primary);
        color: #fff;
    }
}

.btn-link {
    color: var(--color-muted);
    text-decoration: none;
    background-color: transparent;
    border-color: transparent;
    
    &:hover, &:focus, &.active, &:active {
        color: var(--color-primary);
    }
    
    &.active, &:active {
        i {
            color: #fff;
        }
    }
    
    &:disabled {
        color: var(--color-muted);
        border-color: var(--border-color);
        background-color: var(--bg-body);
    }
}

.btn-sm {
    font-size: 0.875rem;
    padding: 0.3125rem 1.25rem;
}

.btn-lg {
    padding: 0.75rem 2.5rem;
    font-size: 1rem;
}

.btn-block {
    display: block;
    width: 100%;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.btn-rounded {
    border-radius: 4rem;
    padding-left: 1.75rem;
    padding-right: 1.75rem;
}

@media (max-width: 767.98px) {
    .btn-sm {
        padding: 0.3125rem 1rem 0.25rem;
        border-radius: var(--radius-xs);
    }
    .btn-rounded {
        border-radius: 4rem;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .btn-sm {
        border-radius: var(--radius-xs);
    }
    .btn-rounded {
        border-radius: 4rem;
    }
}

.btn-icon {
    text-align: center;
    width: 2.125rem;
    height: 2.125rem;
    padding: 0 !important;
    position: relative;
    font-size: 1.125rem;
    -ms-flex-negative: 0;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    
    span {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        display: -ms-flexbox;
        display: -webkit-box;
        display: -webkit-flex;
        display: flex;
        -webkit-box-align: center;
        -ms-flex-align: center;
        -webkit-align-items: center;
        align-items: center;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        -webkit-justify-content: center;
        justify-content: center;
    }
    
    &.btn-md {
        font-size: 1.5rem;
        width: 3rem;
        height: 3rem;
    }
    
    &.btn-lg {
        font-size: 1.5rem;
        width: 3.125rem;
        height: 3.125rem;
    }
    
    &.btn-block {
        width: 100%;
    }
} 